[Bug 774600] mpegtsdemux: Pipeline hang on lossy transport stream

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Nov 17 23:34:02 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=774600

--- Comment #5 from minfrin at sharp.fm ---
Zooming in further to this tsdemux behaviour, we find PTS increasing
monotonically...

0:01:29.048908085 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:03.552708481 REFPTS:0:07:02.032708481 Gap:0:00:01.520000000
nb_buffers: 10562 (ref:10520)
0:01:29.485388521 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:05.792708481 REFPTS:0:07:03.552708481 Gap:0:00:02.240000000
nb_buffers: 10614 (ref:10562)
0:01:29.864504383 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:07.712708481 REFPTS:0:07:05.792708481 Gap:0:00:01.920000000
nb_buffers: 10661 (ref:10614)
0:01:30.128882086 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:08.832708481 REFPTS:0:07:07.712708481 Gap:0:00:01.120000000
nb_buffers: 10693 (ref:10661)
0:01:30.527394140 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:10.872708481 REFPTS:0:07:08.832708481 Gap:0:00:02.040000000
nb_buffers: 10741 (ref:10693)
0:01:30.675514325 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:11.392708481 REFPTS:0:07:10.872708481 Gap:0:00:00.520000000
nb_buffers: 10758 (ref:10741)
0:01:31.100338328 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:13.632708481 REFPTS:0:07:11.392708481 Gap:0:00:02.240000000
nb_buffers: 10810 (ref:10758)
0:01:31.546484855 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:15.792708481 REFPTS:0:07:13.632708481 Gap:0:00:02.160000000
nb_buffers: 10864 (ref:10810)

...until here, where we jump backwards PTS:0:07:15.792708481 ->
PTS:0:07:15.632708481, and where the nb_buffers don't move at all ref:10864 ->
nb_buffers: 10864...

0:01:31.548391553 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:15.632708481 REFPTS:0:07:15.792708481
Gap:5124095:34:33.549551616 nb_buffers: 10864 (ref:10864)
0:01:31.548606394 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2441:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
Stream needs update. Pushing GAP event to TS 0:07:13.901125185

...we seem to send a GAP event, and then we continue with PTS monotomically
increasing again...

0:01:31.692513501 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:17.712708481 REFPTS:0:07:15.632708481 Gap:0:00:02.080000000
nb_buffers: 10912 (ref:10864)
0:01:31.742448575 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:19.192708481 REFPTS:0:07:17.712708481 Gap:0:00:01.480000000
nb_buffers: 10948 (ref:10912)
0:01:31.795789079 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:21.432708481 REFPTS:0:07:19.192708481 Gap:0:00:02.240000000
nb_buffers: 11004 (ref:10948)
0:01:31.796739277 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:21.432708481 REFPTS:0:07:21.432708481 Gap:0:00:00.000000000
nb_buffers: 11004 (ref:11004)
0:01:31.850065823 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:23.672708481 REFPTS:0:07:21.432708481 Gap:0:00:02.240000000
nb_buffers: 11060 (ref:11004)
0:01:31.901809053 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:25.592708481 REFPTS:0:07:23.672708481 Gap:0:00:01.920000000
nb_buffers: 11115 (ref:11060)
0:01:31.950385860 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:27.552708481 REFPTS:0:07:25.592708481 Gap:0:00:01.960000000
nb_buffers: 11165 (ref:11115)
0:01:31.998760481 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:29.872708481 REFPTS:0:07:27.552708481 Gap:0:00:02.320000000
nb_buffers: 11216 (ref:11165)
0:01:32.047631087 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:31.632708481 REFPTS:0:07:29.872708481 Gap:0:00:01.760000000
nb_buffers: 11264 (ref:11216)
0:01:32.102307618 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:33.872708481 REFPTS:0:07:31.632708481 Gap:0:00:02.240000000
nb_buffers: 11316 (ref:11264)
0:01:32.120249034 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:34.352708481 REFPTS:0:07:33.872708481 Gap:0:00:00.480000000
nb_buffers: 11332 (ref:11316)
0:01:32.171216752 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:36.432708481 REFPTS:0:07:34.352708481 Gap:0:00:02.080000000
nb_buffers: 11380 (ref:11332)
0:01:32.223584194 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:38.432708481 REFPTS:0:07:36.432708481 Gap:0:00:02.000000000
nb_buffers: 11429 (ref:11380)
0:01:32.260117853 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:39.472708481 REFPTS:0:07:38.432708481 Gap:0:00:01.040000000
nb_buffers: 11463 (ref:11429)
0:01:32.307605297 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:41.632708481 REFPTS:0:07:39.472708481 Gap:0:00:02.160000000
nb_buffers: 11510 (ref:11463)
0:01:32.366178816 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:43.872708481 REFPTS:0:07:41.632708481 Gap:0:00:02.240000000
nb_buffers: 11566 (ref:11510)
0:01:32.394022362 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:44.592708481 REFPTS:0:07:43.872708481 Gap:0:00:00.720000000
nb_buffers: 11591 (ref:11566)
0:01:32.441511629 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:46.752708481 REFPTS:0:07:44.592708481 Gap:0:00:02.160000000
nb_buffers: 11637 (ref:11591)
0:01:32.488095229 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:48.232708481 REFPTS:0:07:46.752708481 Gap:0:00:01.480000000
nb_buffers: 11679 (ref:11637)
0:01:32.537061563 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:50.312708481 REFPTS:0:07:48.232708481 Gap:0:00:02.080000000
nb_buffers: 11727 (ref:11679)
0:01:32.568993345 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:51.352708481 REFPTS:0:07:50.312708481 Gap:0:00:01.040000000
nb_buffers: 11757 (ref:11727)
0:01:32.620744805 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:53.192708481 REFPTS:0:07:51.352708481 Gap:0:00:01.840000000
nb_buffers: 11805 (ref:11757)
0:01:32.673234641 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:55.472708481 REFPTS:0:07:53.192708481 Gap:0:00:02.280000000
nb_buffers: 11856 (ref:11805)
0:01:32.700631838 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:56.272708481 REFPTS:0:07:55.472708481 Gap:0:00:00.800000000
nb_buffers: 11880 (ref:11856)
0:01:32.751099978 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:07:58.352708481 REFPTS:0:07:56.272708481 Gap:0:00:02.080000000
nb_buffers: 11928 (ref:11880)
0:01:32.804416264 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:08:00.032708481 REFPTS:0:07:58.352708481 Gap:0:00:01.680000000
nb_buffers: 11977 (ref:11928)
0:01:32.848966761 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:08:02.032708481 REFPTS:0:08:00.032708481 Gap:0:00:02.000000000
nb_buffers: 12019 (ref:11977)
0:01:32.899401308 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:08:03.512708481 REFPTS:0:08:02.032708481 Gap:0:00:01.480000000
nb_buffers: 12064 (ref:12019)
0:01:32.947163957 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:08:05.672708481 REFPTS:0:08:03.512708481 Gap:0:00:02.160000000
nb_buffers: 12111 (ref:12064)
0:01:32.996450548 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:08:07.592708481 REFPTS:0:08:05.672708481 Gap:0:00:01.920000000
nb_buffers: 12158 (ref:12111)
0:01:33.049822458 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:08:09.512708481 REFPTS:0:08:07.592708481 Gap:0:00:01.920000000
nb_buffers: 12206 (ref:12158)
0:01:33.110353351 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:08:11.392708481 REFPTS:0:08:09.512708481 Gap:0:00:01.880000000
nb_buffers: 12261 (ref:12206)
0:01:33.146211497 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:08:13.032708481 REFPTS:0:08:11.392708481 Gap:0:00:01.640000000
nb_buffers: 12294 (ref:12261)
0:01:33.205552924 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:08:15.272708481 REFPTS:0:08:13.032708481 Gap:0:00:02.240000000
nb_buffers: 12350 (ref:12294)
0:01:33.232068829 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:08:16.072708481 REFPTS:0:08:15.272708481 Gap:0:00:00.800000000
nb_buffers: 12375 (ref:12350)
0:01:33.274404819 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:08:17.832708481 REFPTS:0:08:16.072708481 Gap:0:00:01.760000000
nb_buffers: 12414 (ref:12375)
0:01:33.333989004 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:08:20.072708481 REFPTS:0:08:17.832708481 Gap:0:00:02.240000000
nb_buffers: 12470 (ref:12414)
0:01:33.386457435 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:08:21.992708481 REFPTS:0:08:20.072708481 Gap:0:00:01.920000000
nb_buffers: 12518 (ref:12470)
0:01:33.411714968 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:08:22.952708481 REFPTS:0:08:21.992708481 Gap:0:00:00.960000000
nb_buffers: 12542 (ref:12518)
0:01:33.464255533 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:08:24.712708481 REFPTS:0:08:22.952708481 Gap:0:00:01.760000000
nb_buffers: 12591 (ref:12542)
0:01:33.480399678 30875  0x131a8f0 DEBUG                tsdemux
tsdemux.c:2433:gst_ts_demux_check_and_sync_streams:<tsdemux0:video_0_1d4d>
0x1d4d, PTS:0:08:25.512708481 REFPTS:0:08:24.712708481 Gap:0:00:00.800000000
nb_buffers: 12606 (ref:12591)

...then we hang. Possibly because videodecoder choked on the PTS that went
backwards?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list