Bug #5346
No audio when already recording the same channel
Start date:
2018-11-23
Due date:
% Done:
0%
Estimated time:
Found in version:
4.2 github branch
Affected Versions:
Description
Hi,
Sometimes I'm missing audio when tuning to an already recording channel.
[ TRACE]:globalheaders: stream 2 MPEG2AUDIO dut (PID 107) complete time 0 disabled
See full log in attachment.
It's important to note that this only happens when the channel (or maybe mux) is already tuned.
There is also 1 continuity error just before globalheaders disables the stream, I'm not getting this continuity error on fresh tunes.
I can't reproduce this with master as my tuner is not working correctly, possible https://tvheadend.org/issues/5328#change-27964
Files
History
Updated by Jaroslav Kysela about 6 years ago
Add parser to traces (--trace parser,globalheaders).
Updated by glenn ch about 6 years ago
With parser trace enabled this time.
Again, this only happens when channel "Canvas HD" is recording.
2018-12-02 11:12:41.639 [ INFO]:subscription: 0009: "192.168.1.130 [ | Kodi Media Center ]" subscribing on channel "Canvas HD", weight: 125, adapter: "TurboSight TBS 6985 DVBS/S2 frontend #2 : DVB-S #0", network: "23.5", mux: "12187H", provider: "M7 Group", service: "Canvas HD", profile="htsp", hostname="192.168.1.130", username="", client="Kodi Media Center" 2018-12-02 11:12:41.662 [ TRACE]:parser: deliver (pkt stream 3 TELETEXT dts 4231566043 pts 4231566043 dur 0 len 323 err 0) 2018-12-02 11:12:41.662 [ TRACE]:parser: deliver (pkt stream 3 TELETEXT dts 4231569643 pts 4231569643 dur 0 len 323 err 0) 2018-12-02 11:12:41.699 [ TRACE]:parser: deliver (pkt stream 1 H264 type I dts 4231173200 pts 4231180400 dur 3600 len 71543 err 0) 2018-12-02 11:12:41.699 [ TRACE]:globalheaders: hold receive (pkt stream 1 H264 type I dts 0 pts 7200 dur 3600 len 71543 err 0) 2018-12-02 11:12:41.699 [ TRACE]:parser: deliver (pkt stream 3 TELETEXT dts 4231573243 pts 4231573243 dur 0 len 323 err 0) 2018-12-02 11:12:41.699 [WARNING]:tsfix: The timediff for TELETEXT is big (400043), using current dts 2018-12-02 11:12:41.699 [ TRACE]:globalheaders: hold receive (pkt stream 3 TELETEXT dts 0 pts 0 dur 0 len 323 err 0) 2018-12-02 11:12:41.699 [ TRACE]:parser: deliver (pkt stream 1 H264 type P dts 4231639400 pts 4231657400 dur 3600 len 15960 err 0) 2018-12-02 11:12:41.699 [ ERROR]:tsfix: transport stream H264, DTS discontinuity. DTS = 466200, last = 0 2018-12-02 11:12:41.699 [ TRACE]:globalheaders: hold receive (pkt stream 1 H264 type P dts 466200 pts 484200 dur 3600 len 15960 err 0) 2018-12-02 11:12:41.699 [ DEBUG]:globalheaders: gh disable stream 2 MPEG2AUDIO dut (PID 104) threshold 1 qd 0 qd_max 466200 2018-12-02 11:12:41.699 [ TRACE]:globalheaders: stream 1 H264 (PID 516) complete time 466200 2018-12-02 11:12:41.699 [ TRACE]:*globalheaders: stream 2 MPEG2AUDIO dut (PID 104) complete time 0 disabled* 2018-12-02 11:12:41.699 [ TRACE]:globalheaders: stream 3 TELETEXT (PID 36) complete time 0 2018-12-02 11:12:41.699 [ TRACE]:globalheaders: stream 4 CA (PID 2005) complete time 0 2018-12-02 11:12:41.699 [ TRACE]:globalheaders: stream 5 CA (PID 1825) complete time 0 2018-12-02 11:12:41.699 [ TRACE]:globalheaders: stream 6 CA (PID 1845) complete time 0 2018-12-02 11:12:41.699 [ TRACE]:globalheaders: stream 7 CA (PID 3125) complete time 0
On a successful channel switch I get something like this:
2018-12-02 11:12:19.913 [ INFO]:subscription: 0006: "192.168.1.130 [ | Kodi Media Center ]" subscribing on channel "Canvas HD", weight: 125, adapter: "TurboSight TBS 6985 DVBS/S2 frontend #2 : DVB-S #0", network: "23.5", mux: "12187H", provider: "M7 Group", service: "Canvas HD", profile="htsp", hostname="192.168.1.130", username="", client="Kodi Media Center" 2018-12-02 11:12:20.558 [ TRACE]:parser: deliver (pkt stream 3 TELETEXT dts 4229672443 pts 4229672443 dur 0 len 323 err 0) 2018-12-02 11:12:20.595 [ TRACE]:parser: deliver (pkt stream 3 TELETEXT dts 4229676043 pts 4229676043 dur 0 len 323 err 0) 2018-12-02 11:12:20.970 [ TRACE]:parser: deliver (pkt stream 3 TELETEXT dts 4229679643 pts 4229679643 dur 0 len 323 err 0) 2018-12-02 11:12:20.971 [ TRACE]:parser: deliver (pkt stream 3 TELETEXT dts 4229683243 pts 4229683243 dur 0 len 323 err 0) 2018-12-02 11:12:20.971 [ TRACE]:parser: deliver (pkt stream 3 TELETEXT dts 4229686843 pts 4229686843 dur 0 len 323 err 0) 2018-12-02 11:12:20.972 [ TRACE]:parser: deliver (pkt stream 3 TELETEXT dts 4229690443 pts 4229690443 dur 0 len 323 err 0) 2018-12-02 11:12:20.972 [ TRACE]:parser: deliver (pkt stream 2 MPEG2AUDIO dts 4229684240 pts 4229684240 dur 2160 len 480 err 0) 2018-12-02 11:12:20.972 [ TRACE]:parser: deliver (pkt stream 2 MPEG2AUDIO dts 4229686400 pts 4229686400 dur 2160 len 480 err 0) 2018-12-02 11:12:20.972 [ TRACE]:parser: deliver (pkt stream 2 MPEG2AUDIO dts 4229688560 pts 4229688560 dur 2160 len 480 err 0) 2018-12-02 11:12:20.972 [ TRACE]:parser: deliver (pkt stream 2 MPEG2AUDIO dts 4229690720 pts 4229690720 dur 2160 len 480 err 0) 2018-12-02 11:12:20.972 [ TRACE]:parser: deliver (pkt stream 2 MPEG2AUDIO dts 4229692880 pts 4229692880 dur 2160 len 480 err 0) 2018-12-02 11:12:20.972 [ TRACE]:parser: deliver (pkt stream 2 MPEG2AUDIO dts 4229695040 pts 4229695040 dur 2160 len 480 err 0) 2018-12-02 11:12:20.973 [ TRACE]:parser: deliver (pkt stream 3 TELETEXT dts 4229694043 pts 4229694043 dur 0 len 323 err 0) 2018-12-02 11:12:20.974 [ TRACE]:parser: deliver (pkt stream 3 TELETEXT dts 4229697643 pts 4229697643 dur 0 len 323 err 0) 2018-12-02 11:12:20.974 [ TRACE]:parser: deliver (pkt stream 3 TELETEXT dts 4229701243 pts 4229701243 dur 0 len 323 err 0) 2018-12-02 11:12:20.974 [ TRACE]:parser: deliver (pkt stream 2 MPEG2AUDIO dts 4229697200 pts 4229697200 dur 2160 len 480 err 0) 2018-12-02 11:12:20.974 [ TRACE]:parser: deliver (pkt stream 2 MPEG2AUDIO dts 4229699360 pts 4229699360 dur 2160 len 480 err 0) 2018-12-02 11:12:20.974 [ TRACE]:parser: deliver (pkt stream 2 MPEG2AUDIO dts 4229701520 pts 4229701520 dur 2160 len 480 err 0) 2018-12-02 11:12:20.974 [ TRACE]:parser: deliver (pkt stream 2 MPEG2AUDIO dts 4229703680 pts 4229703680 dur 2160 len 480 err 0) 2018-12-02 11:12:20.974 [ TRACE]:parser: deliver (pkt stream 2 MPEG2AUDIO dts 4229705840 pts 4229705840 dur 2160 len 480 err 0) 2018-12-02 11:12:20.974 [ TRACE]:parser: deliver (pkt stream 2 MPEG2AUDIO dts 4229708000 pts 4229708000 dur 2160 len 480 err 0) 2018-12-02 11:12:20.974 [ TRACE]:parser: deliver (pkt stream 3 TELETEXT dts 4229704843 pts 4229704843 dur 0 len 323 err 0) 2018-12-02 11:12:20.975 [ TRACE]:parser: deliver (pkt stream 3 TELETEXT dts 4229708443 pts 4229708443 dur 0 len 323 err 0) 2018-12-02 11:12:21.027 [ TRACE]:parser: deliver (pkt stream 3 TELETEXT dts 4229712043 pts 4229712043 dur 0 len 323 err 0) 2018-12-02 11:12:21.028 [ TRACE]:parser: deliver (pkt stream 3 TELETEXT dts 4229715643 pts 4229715643 dur 0 len 323 err 0) 2018-12-02 11:12:21.054 [ TRACE]:parser: deliver (pkt stream 2 MPEG2AUDIO dts 4229710160 pts 4229710160 dur 2160 len 480 err 0) 2018-12-02 11:12:21.054 [ TRACE]:parser: deliver (pkt stream 2 MPEG2AUDIO dts 4229712320 pts 4229712320 dur 2160 len 480 err 0) 2018-12-02 11:12:21.054 [ TRACE]:parser: deliver (pkt stream 2 MPEG2AUDIO dts 4229714480 pts 4229714480 dur 2160 len 480 err 0) 2018-12-02 11:12:21.054 [ TRACE]:parser: deliver (pkt stream 2 MPEG2AUDIO dts 4229716640 pts 4229716640 dur 2160 len 480 err 0) 2018-12-02 11:12:21.054 [ TRACE]:parser: deliver (pkt stream 2 MPEG2AUDIO dts 4229718800 pts 4229718800 dur 2160 len 480 err 0) 2018-12-02 11:12:21.054 [ TRACE]:parser: deliver (pkt stream 2 MPEG2AUDIO dts 4229720960 pts 4229720960 dur 2160 len 480 err 0) 2018-12-02 11:12:21.080 [ TRACE]:parser: deliver (pkt stream 3 TELETEXT dts 4229719243 pts 4229719243 dur 0 len 323 err 0) 2018-12-02 11:12:21.122 [ TRACE]:parser: deliver (pkt stream 3 TELETEXT dts 4229722843 pts 4229722843 dur 0 len 323 err 0) 2018-12-02 11:12:21.148 [ TRACE]:parser: deliver (pkt stream 1 H264 type I dts 4229762000 pts 4229769200 dur 3600 len 125207 err 0) 2018-12-02 11:12:21.148 [ TRACE]:globalheaders: hold receive (pkt stream 3 TELETEXT dts 2603 pts 2603 dur 0 len 323 err 0) 2018-12-02 11:12:21.148 [ TRACE]:globalheaders: hold receive (pkt stream 3 TELETEXT dts 6203 pts 6203 dur 0 len 323 err 0) 2018-12-02 11:12:21.148 [ TRACE]:globalheaders: hold receive (pkt stream 2 MPEG2AUDIO dts 0 pts 0 dur 2160 len 480 err 0) 2018-12-02 11:12:21.148 [ TRACE]:globalheaders: hold receive (pkt stream 2 MPEG2AUDIO dts 2160 pts 2160 dur 2160 len 480 err 0) 2018-12-02 11:12:21.148 [ TRACE]:globalheaders: hold receive (pkt stream 2 MPEG2AUDIO dts 4320 pts 4320 dur 2160 len 480 err 0) 2018-12-02 11:12:21.148 [ TRACE]:globalheaders: hold receive (pkt stream 2 MPEG2AUDIO dts 6480 pts 6480 dur 2160 len 480 err 0) 2018-12-02 11:12:21.148 [ TRACE]:globalheaders: hold receive (pkt stream 2 MPEG2AUDIO dts 8640 pts 8640 dur 2160 len 480 err 0) 2018-12-02 11:12:21.149 [ TRACE]:globalheaders: hold receive (pkt stream 2 MPEG2AUDIO dts 10800 pts 10800 dur 2160 len 480 err 0) 2018-12-02 11:12:21.149 [ TRACE]:globalheaders: hold receive (pkt stream 3 TELETEXT dts 9803 pts 9803 dur 0 len 323 err 0) 2018-12-02 11:12:21.149 [ TRACE]:globalheaders: hold receive (pkt stream 3 TELETEXT dts 13403 pts 13403 dur 0 len 323 err 0) 2018-12-02 11:12:21.149 [ TRACE]:globalheaders: hold receive (pkt stream 3 TELETEXT dts 17003 pts 17003 dur 0 len 323 err 0) 2018-12-02 11:12:21.149 [ TRACE]:globalheaders: hold receive (pkt stream 2 MPEG2AUDIO dts 12960 pts 12960 dur 2160 len 480 err 0) 2018-12-02 11:12:21.149 [ TRACE]:globalheaders: hold receive (pkt stream 2 MPEG2AUDIO dts 15120 pts 15120 dur 2160 len 480 err 0) 2018-12-02 11:12:21.149 [ TRACE]:globalheaders: hold receive (pkt stream 2 MPEG2AUDIO dts 17280 pts 17280 dur 2160 len 480 err 0) 2018-12-02 11:12:21.149 [ TRACE]:globalheaders: hold receive (pkt stream 2 MPEG2AUDIO dts 19440 pts 19440 dur 2160 len 480 err 0) 2018-12-02 11:12:21.149 [ TRACE]:globalheaders: hold receive (pkt stream 2 MPEG2AUDIO dts 21600 pts 21600 dur 2160 len 480 err 0) 2018-12-02 11:12:21.149 [ TRACE]:globalheaders: hold receive (pkt stream 2 MPEG2AUDIO dts 23760 pts 23760 dur 2160 len 480 err 0) 2018-12-02 11:12:21.149 [ TRACE]:globalheaders: hold receive (pkt stream 3 TELETEXT dts 20603 pts 20603 dur 0 len 323 err 0) 2018-12-02 11:12:21.149 [ TRACE]:globalheaders: hold receive (pkt stream 3 TELETEXT dts 24203 pts 24203 dur 0 len 323 err 0) 2018-12-02 11:12:21.149 [ TRACE]:globalheaders: hold receive (pkt stream 3 TELETEXT dts 27803 pts 27803 dur 0 len 323 err 0) 2018-12-02 11:12:21.149 [ TRACE]:globalheaders: hold receive (pkt stream 3 TELETEXT dts 31403 pts 31403 dur 0 len 323 err 0) 2018-12-02 11:12:21.149 [ TRACE]:globalheaders: hold receive (pkt stream 2 MPEG2AUDIO dts 25920 pts 25920 dur 2160 len 480 err 0) 2018-12-02 11:12:21.149 [ TRACE]:globalheaders: hold receive (pkt stream 2 MPEG2AUDIO dts 28080 pts 28080 dur 2160 len 480 err 0) 2018-12-02 11:12:21.149 [ TRACE]:globalheaders: hold receive (pkt stream 2 MPEG2AUDIO dts 30240 pts 30240 dur 2160 len 480 err 0) 2018-12-02 11:12:21.149 [ TRACE]:globalheaders: hold receive (pkt stream 2 MPEG2AUDIO dts 32400 pts 32400 dur 2160 len 480 err 0) 2018-12-02 11:12:21.149 [ TRACE]:globalheaders: hold receive (pkt stream 2 MPEG2AUDIO dts 34560 pts 34560 dur 2160 len 480 err 0) 2018-12-02 11:12:21.149 [ TRACE]:globalheaders: hold receive (pkt stream 2 MPEG2AUDIO dts 36720 pts 36720 dur 2160 len 480 err 0) 2018-12-02 11:12:21.149 [ TRACE]:globalheaders: hold receive (pkt stream 3 TELETEXT dts 35003 pts 35003 dur 0 len 323 err 0) 2018-12-02 11:12:21.149 [ TRACE]:globalheaders: hold receive (pkt stream 3 TELETEXT dts 38603 pts 38603 dur 0 len 323 err 0) 2018-12-02 11:12:21.149 [ TRACE]:globalheaders: hold receive (pkt stream 1 H264 type I dts 77760 pts 84960 dur 3600 len 125207 err 0) 2018-12-02 11:12:21.149 [ TRACE]:globalheaders: stream 1 H264 (PID 516) complete time 0 2018-12-02 11:12:21.149 [ TRACE]:globalheaders: stream 2 MPEG2AUDIO dut (PID 104) complete time 36720 2018-12-02 11:12:21.149 [ TRACE]:globalheaders: stream 3 TELETEXT (PID 36) complete time 36000 2018-12-02 11:12:21.149 [ TRACE]:globalheaders: stream 4 CA (PID 2005) complete time 0 2018-12-02 11:12:21.149 [ TRACE]:globalheaders: stream 5 CA (PID 1825) complete time 0 2018-12-02 11:12:21.149 [ TRACE]:globalheaders: stream 6 CA (PID 1845) complete time 0 2018-12-02 11:12:21.149 [ TRACE]:globalheaders: stream 7 CA (PID 3125) complete time 0
Updated by Jaroslav Kysela about 6 years ago
Tried on 4.3 and I don't see this problem in this version.