HTSP Client freezes at PMT switching

Hi,

my system is Odroid C2 with CoreELEC 9.2.5 watching TV through the HTSP client Addon. TVheadend runs on another machine with 4.2.8 using SAT/IP as a source.

In Germany there are regional broadcasts, which are switched temporary to specific regions via a PMT change. One channel to test the dynamic PMT switching is “TEST-R”.
I have the issue that the playback stuck at the switching moment each time and a restart of the playback is necessary. This is really annoying if you watch such a regional show once a day and the playback stuck at the start and the end of this show.

Playback with VLC works fine and switches probably.

Has anyone an idea to get a solution or a workaround?

Thanks & Br,
Matthias

Hi,

nobody an idea so far?

Here the extract of the kodi.log, when the issue occurs:

2020-11-20 18:58:59.506 T:4093993536 NOTICE: VideoPlayer::OpenFile: pvr://channels/tv/Alle Kanäle/pvr.hts_375778797.pvr
2020-11-20 18:58:59.632 T:3656344448 NOTICE: Creating InputStream
2020-11-20 18:58:59.634 T:3656344448 NOTICE: Creating Demuxer
2020-11-20 18:58:59.635 T:3656344448 NOTICE: Closing stream player 2
2020-11-20 18:58:59.635 T:3656344448 NOTICE: waiting for video thread to exit
2020-11-20 18:58:59.635 T:3631166336 ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true
2020-11-20 18:58:59.635 T:3631166336 NOTICE: thread end: video_thread
2020-11-20 18:58:59.635 T:3656344448 NOTICE: deleting video codec
2020-11-20 18:58:59.676 T:3656344448 NOTICE: Closing stream player 1
2020-11-20 18:58:59.677 T:3656344448 NOTICE: Waiting for audio thread to exit
2020-11-20 18:58:59.681 T:3647951744 NOTICE: thread end: CVideoPlayerAudio::OnExit()
2020-11-20 18:58:59.681 T:3656344448 NOTICE: Closing audio device
2020-11-20 18:58:59.682 T:3656344448 NOTICE: Deleting audio codec
2020-11-20 18:58:59.683 T:3656344448 NOTICE: Closing stream player 3
2020-11-20 18:58:59.683 T:3656344448 NOTICE: Closing stream player 4
2020-11-20 18:58:59.683 T:3656344448 NOTICE: waiting for teletext data thread to exit
2020-11-20 18:58:59.683 T:3639559040 ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true (-1)
2020-11-20 18:58:59.683 T:3639559040 NOTICE: thread end: data_thread
2020-11-20 18:58:59.687 T:3656344448 NOTICE: Closing stream player 5
2020-11-20 18:58:59.688 T:3656344448 NOTICE: Radio UECP (RDS) Processor - waiting for data thread to exit
2020-11-20 18:58:59.688 T:3677336448 ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true (-1)
2020-11-20 18:58:59.688 T:3677336448 NOTICE: Radio UECP (RDS) Processor - thread end
2020-11-20 18:59:00.940 T:3656344448 NOTICE: Opening stream: 1136 source: 256
2020-11-20 18:59:00.940 T:3656344448 WARNING: OpenStream - Unsupported stream 1136. Stream disabled.
2020-11-20 18:59:00.940 T:3656344448 NOTICE: Opening stream: 1139 source: 256
2020-11-20 18:59:00.940 T:3656344448 NOTICE: Finding audio codec for: 86019
2020-11-20 18:59:00.941 T:3656344448 NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder ac3
2020-11-20 18:59:00.941 T:3656344448 NOTICE: Creating audio thread
2020-11-20 18:59:00.941 T:3677336448 NOTICE: running thread: CVideoPlayerAudio::Process()
2020-11-20 18:59:00.942 T:3656344448 NOTICE: Opening stream: 1002 source: 256
2020-11-20 18:59:00.942 T:4093993536 NOTICE: Whitelist search for: width: 1280, height: 720, fps: 50.000, 3D: false
2020-11-20 18:59:00.942 T:3656344448 NOTICE: Opening stream: 1001 source: 256
2020-11-20 18:59:00.942 T:3656344448 NOTICE: waiting for teletext data thread to exit
2020-11-20 18:59:00.943 T:4093993536 NOTICE: Display resolution ADJUST : 1920x1080 @ 50.00 - Full Screen (29) (weight: 0.000)
2020-11-20 18:59:00.944 T:3656344448 NOTICE: Creating teletext data thread
2020-11-20 18:59:00.944 T:3639559040 NOTICE: running thread: CDVDTeletextData
2020-11-20 18:59:00.949 T:3656344448 NOTICE: Opening stream: 1136 source: 256
2020-11-20 18:59:00.949 T:3656344448 NOTICE: CVideoPlayerVideo::OpenStream - Creating codec: 27
2020-11-20 18:59:00.949 T:3656344448 NOTICE: Creating video thread
2020-11-20 18:59:00.950 T:3647951744 NOTICE: running thread: video_thread
2020-11-20 18:59:00.950 T:3656344448 NOTICE: Opening stream: 1139 source: 256
2020-11-20 18:59:00.950 T:3656344448 NOTICE: Finding audio codec for: 86019
2020-11-20 18:59:00.951 T:3656344448 NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder ac3
2020-11-20 18:59:00.951 T:3656344448 NOTICE: Closing stream player 3
2020-11-20 18:59:00.951 T:3656344448 NOTICE: Opening stream: 1002 source: 256
2020-11-20 18:59:00.952 T:3656344448 NOTICE: Opening stream: 1001 source: 256
2020-11-20 18:59:00.953 T:4093993536 NOTICE: Whitelist search for: width: 1280, height: 720, fps: 50.000, 3D: false
2020-11-20 18:59:00.954 T:4093993536 NOTICE: Display resolution ADJUST : 1920x1080 @ 50.00 - Full Screen (29) (weight: 0.000)
2020-11-20 18:59:00.968 T:3647951744 NOTICE: CAMLCodec::OpenDecoder - using V4L2 pts format: 64Bit
2020-11-20 18:59:01.043 T:3677336448 NOTICE: Creating audio stream (codec id: 86019, channels: 2, sample rate: 48000, no pass-through)
2020-11-20 19:30:01.571 T:3656344448 NOTICE: Opening stream: 1140 source: 256
2020-11-20 19:30:01.571 T:3656344448 WARNING: OpenStream - Unsupported stream 1140. Stream disabled.
2020-11-20 19:30:01.571 T:3656344448 NOTICE: Closing stream player 2
2020-11-20 19:30:01.571 T:3656344448 NOTICE: CDVDMessageQueue(video)::WaitUntilEmpty
2020-11-20 19:30:01.576 T:4093993536 NOTICE: Whitelist search for: width: 1280, height: 720, fps: 50.000, 3D: false
2020-11-20 19:30:01.578 T:4093993536 NOTICE: Display resolution ADJUST : 1920x1080 @ 50.00 - Full Screen (29) (weight: 0.000)
2020-11-20 19:30:02.055 T:3677336448 NOTICE: CVideoPlayerAudio::Process - stream stalled pts:1859.730 clock:1859.738
2020-11-20 19:30:03.312 T:3656344448 NOTICE: waiting for video thread to exit
2020-11-20 19:30:03.312 T:3647951744 ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true
2020-11-20 19:30:03.312 T:3647951744 NOTICE: thread end: video_thread
2020-11-20 19:30:03.314 T:3656344448 NOTICE: deleting video codec
2020-11-20 19:30:03.345 T:3656344448 NOTICE: Opening stream: 1141 source: 256
2020-11-20 19:30:03.345 T:3656344448 NOTICE: Finding audio codec for: 86016
2020-11-20 19:30:03.384 T:3656344448 NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder mp2
2020-11-20 19:30:03.384 T:3656344448 NOTICE: Closing stream player 3
2020-11-20 19:30:03.386 T:3656344448 NOTICE: Opening stream: 1002 source: 256
2020-11-20 19:30:03.386 T:3656344448 NOTICE: Opening stream: 1001 source: 256
2020-11-20 19:30:03.416 T:3656344448 NOTICE: Opening stream: 1140 source: 256
2020-11-20 19:30:03.417 T:3656344448 NOTICE: CVideoPlayerVideo::OpenStream - Creating codec: 27
2020-11-20 19:30:03.417 T:3656344448 NOTICE: Creating video thread
2020-11-20 19:30:03.417 T:3818337152 NOTICE: running thread: video_thread
2020-11-20 19:30:03.417 T:3656344448 NOTICE: Opening stream: 1141 source: 256
2020-11-20 19:30:03.417 T:3656344448 NOTICE: Finding audio codec for: 86016
2020-11-20 19:30:03.417 T:4093993536 NOTICE: Whitelist search for: width: 1280, height: 720, fps: 50.000, 3D: false
2020-11-20 19:30:03.417 T:3656344448 NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder mp2
2020-11-20 19:30:03.417 T:3656344448 NOTICE: Closing stream player 3
2020-11-20 19:30:03.418 T:3656344448 NOTICE: Opening stream: 1002 source: 256
2020-11-20 19:30:03.418 T:3656344448 NOTICE: Opening stream: 1001 source: 256
2020-11-20 19:30:03.418 T:4093993536 NOTICE: Display resolution ADJUST : 1920x1080 @ 50.00 - Full Screen (29) (weight: 0.000)
2020-11-20 19:30:03.431 T:3677336448 NOTICE: Creating audio stream (codec id: 86016, channels: 2, sample rate: 48000, no pass-through)
2020-11-20 19:30:03.433 T:3818337152 NOTICE: CAMLCodec::OpenDecoder - using V4L2 pts format: 64Bit
2020-11-20 19:30:03.561 T:4071990144 WARNING: ActiveAE - large audio sync error: 1858362.944024
2020-11-20 19:30:03.565 T:4071990144 WARNING: ActiveAE - large audio sync error: 1858360.072232
2020-11-20 19:30:03.569 T:4071990144 WARNING: ActiveAE - large audio sync error: 1858355.335773
2020-11-20 19:30:03.572 T:4071990144 WARNING: ActiveAE - large audio sync error: 1858352.566816
2020-11-20 19:30:03.773 T:4071990144 WARNING: ActiveAE - large audio sync error: 1858153.128772
2020-11-20 19:30:03.777 T:4071990144 WARNING: ActiveAE - large audio sync error: 1858110.443274
2020-11-20 19:30:03.782 T:4071990144 WARNING: ActiveAE - large audio sync error: 1858071.066648
2020-11-20 19:30:03.786 T:4071990144 WARNING: ActiveAE - large audio sync error: 1858030.343649
2020-11-20 19:30:03.791 T:4071990144 WARNING: ActiveAE - large audio sync error: 1857987.642566
2020-11-20 19:30:03.795 T:4071990144 WARNING: ActiveAE - large audio sync error: 1857944.975357
2020-11-20 19:30:03.800 T:4071990144 WARNING: ActiveAE - large audio sync error: 1857897.274982
2020-11-20 19:30:03.804 T:4071990144 WARNING: ActiveAE - large audio sync error: 1857854.609232
2020-11-20 19:30:03.816 T:4071990144 WARNING: ActiveAE - large audio sync error: 1857811.791899
2020-11-20 19:30:03.858 T:4071990144 WARNING: ActiveAE - large audio sync error: 1857768.962481
2020-11-20 19:30:03.900 T:4071990144 WARNING: ActiveAE - large audio sync error: 1857726.180564
2020-11-20 19:30:03.946 T:4071990144 WARNING: ActiveAE - large audio sync error: 1857680.799561
2020-11-20 19:30:03.988 T:4071990144 WARNING: ActiveAE - large audio sync error: 1857638.236186
2020-11-20 19:30:04.028 T:4071990144 WARNING: ActiveAE - large audio sync error: 1857595.491769
2020-11-20 19:30:04.071 T:4071990144 WARNING: ActiveAE - large audio sync error: 1857552.348228
2020-11-20 19:30:04.114 T:4071990144 WARNING: ActiveAE - large audio sync error: 1857509.572519
2020-11-20 19:30:04.157 T:4071990144 WARNING: ActiveAE - large audio sync error: 1857467.485643
2020-11-20 19:30:04.200 T:4071990144 WARNING: ActiveAE - large audio sync error: 1857424.416519
2020-11-20 19:30:04.242 T:4071990144 WARNING: ActiveAE - large audio sync error: 1857381.546102
2020-11-20 19:30:04.284 T:4071990144 WARNING: ActiveAE - large audio sync error: 1857339.013852
2020-11-20 19:30:04.328 T:4071990144 WARNING: ActiveAE - large audio sync error: 1857296.437019
2020-11-20 19:30:04.370 T:4071990144 WARNING: ActiveAE - large audio sync error: 1857253.739437
2020-11-20 19:30:04.413 T:4071990144 WARNING: ActiveAE - large audio sync error: 1857211.024685
2020-11-20 19:30:04.455 T:4071990144 WARNING: ActiveAE - large audio sync error: 1857168.255977
2020-11-20 19:30:04.498 T:4071990144 WARNING: ActiveAE - large audio sync error: 1857125.518061
2020-11-20 19:30:04.541 T:4071990144 WARNING: ActiveAE - large audio sync error: 1857080.261336
2020-11-20 19:30:04.583 T:4071990144 WARNING: ActiveAE - large audio sync error: 1857037.663711
2020-11-20 19:30:04.625 T:4071990144 WARNING: ActiveAE - large audio sync error: 1856995.010711
2020-11-20 19:30:04.669 T:4071990144 WARNING: ActiveAE - large audio sync error: 1856952.164794
2020-11-20 19:30:04.711 T:4071990144 WARNING: ActiveAE - large audio sync error: 1856909.489586
2020-11-20 19:30:04.754 T:4071990144 WARNING: ActiveAE - large audio sync error: 1856867.002253
2020-11-20 19:30:04.797 T:4071990144 WARNING: ActiveAE - large audio sync error: 1856824.227627
2020-11-20 19:30:04.840 T:4071990144 WARNING: ActiveAE - large audio sync error: 1856781.629377
2020-11-20 19:30:04.882 T:4071990144 WARNING: ActiveAE - large audio sync error: 1856738.874336
2020-11-20 19:30:04.925 T:4071990144 WARNING: ActiveAE - large audio sync error: 1856696.295711
2020-11-20 19:30:04.967 T:4071990144 WARNING: ActiveAE - large audio sync error: 1856653.679668
2020-11-20 19:30:05.011 T:4071990144 WARNING: ActiveAE - large audio sync error: 1856611.007919
2020-11-20 19:30:05.053 T:4071990144 WARNING: ActiveAE - large audio sync error: 1856568.191419
2020-11-20 19:30:05.095 T:4071990144 WARNING: ActiveAE - large audio sync error: 1856525.484045
2020-11-20 19:30:05.138 T:4071990144 WARNING: ActiveAE - large audio sync error: 1856482.988461
2020-11-20 19:30:05.181 T:4071990144 WARNING: ActiveAE - large audio sync error: 1856442.632078
2020-11-20 19:30:05.223 T:4071990144 WARNING: ActiveAE - large audio sync error: 1856400.099494
2020-11-20 19:30:05.266 T:4071990144 WARNING: ActiveAE - large audio sync error: 1856357.290954
2020-11-20 19:30:05.308 T:4071990144 WARNING: ActiveAE - large audio sync error: 1856314.653829
2020-11-20 19:30:05.352 T:4071990144 WARNING: ActiveAE - large audio sync error: 1856272.083703
2020-11-20 19:30:05.394 T:4071990144 WARNING: ActiveAE - large audio sync error: 1856229.329995
2020-11-20 19:30:05.437 T:4071990144 WARNING: ActiveAE - large audio sync error: 1856186.547120
2020-11-20 19:30:05.479 T:4071990144 WARNING: ActiveAE - large audio sync error: 1856144.057870
2020-11-20 19:30:05.522 T:4071990144 WARNING: ActiveAE - large audio sync error: 1856101.318995
2020-11-20 19:30:05.565 T:4071990144 WARNING: ActiveAE - large audio sync error: 1856058.575702
2020-11-20 19:30:05.603 T:3677336448 ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer
2020-11-20 19:30:05.607 T:4071990144 WARNING: ActiveAE - large audio sync error: 1856015.903661
2020-11-20 19:30:05.650 T:4071990144 WARNING: ActiveAE - large audio sync error: 1855973.299620
2020-11-20 19:30:05.693 T:4071990144 WARNING: ActiveAE - large audio sync error: 1855930.697786
2020-11-20 19:30:05.736 T:4071990144 WARNING: ActiveAE - large audio sync error: 1855887.936036
2020-11-20 19:30:05.778 T:4071990144 WARNING: ActiveAE - large audio sync error: 1855845.321695
2020-11-20 19:30:05.821 T:4071990144 WARNING: ActiveAE - large audio sync error: 1855802.744487
2020-11-20 19:30:05.864 T:4071990144 WARNING: ActiveAE - large audio sync error: 1855760.025611
2020-11-20 19:30:05.907 T:4071990144 WARNING: ActiveAE - large audio sync error: 1855717.748945
2020-11-20 19:30:05.918 T:4093993536 NOTICE: VideoPlayer::OpenFile: pvr://channels/tv/Alle Kanäle/pvr.hts_1156260878.pvr
2020-11-20 19:30:05.949 T:4071990144 WARNING: ActiveAE - large audio sync error: 1855696.636361
2020-11-20 19:30:05.991 T:4071990144 WARNING: ActiveAE - large audio sync error: 1855654.051904

Regards,
Matthias

The “large sync” error happen because the ongoing pts of the stream does make a “jump”. Maybe forward or to negative number. I see no way to solve this. You can ask at the devs of pvr.hts or you can try Amlogic-ng if possible as there is the negative pts handling “a bit” better.

Other solution should be to stop the stream and to start it again.

Yes, that what I did first and raised an issue in pvr.hts in github, but without response there.

How could do an automatic restart in that case?
The manual restart is that we are doing today.

Thanks & Br,
Matthias

About | FAQ | Terms of Service | Privacy Policy | Legal Notice