After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 674606 - [tsdemux] robustness issue
[tsdemux] robustness issue
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-04-23 08:40 UTC by Andreas Frisch
Modified: 2013-09-25 22:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GST_DEBUG_NO_COLOR=1 GST_DEBUG=*:3,*mux*:5,*queue*:5 gst-launch .... (188.35 KB, application/x-bzip)
2012-04-23 08:40 UTC, Andreas Frisch
Details

Description Andreas Frisch 2012-04-23 08:40:35 UTC
Created attachment 212589 [details]
GST_DEBUG_NO_COLOR=1 GST_DEBUG=*:3,*mux*:5,*queue*:5 gst-launch ....

i've got a transport stream which i captured the way it fell from the sky (dvb-s broadcast) and it has discontinuities at the beginning
these cause tsdemux to not start playing whatsoever

0:00:00.736467222  2020   0x769670 DEBUG                tsdemux tsdemux.c:1704:process_pcr: initoff:659316, numpcr:10, isinitial:1
0:00:00.738140111  2020   0x769670 INFO                 tsdemux tsdemux.c:1771:process_pcr: Found PCR 2419449946638 24:53:29.257282888 at offset 687704
0:00:00.738727000  2020   0x769670 INFO                 tsdemux tsdemux.c:1771:process_pcr: Found PCR 2419450237482 24:53:29.268054888 at offset 705752
0:00:00.739174815  2020   0x769670 INFO                 tsdemux tsdemux.c:1771:process_pcr: Found PCR 2419450697114 24:53:29.285078296 at offset 734140
0:00:00.740534630  2020   0x769670 INFO                 tsdemux tsdemux.c:1771:process_pcr: Found PCR 2419451157700 24:53:29.302137037 at offset 762904
0:00:00.741192667  2020   0x769670 INFO                 tsdemux tsdemux.c:1771:process_pcr: Found PCR 2419451614468 24:53:29.319054370 at offset 791104
0:00:00.741577444  2020   0x769670 INFO                 tsdemux tsdemux.c:1771:process_pcr: Found PCR 2419452077913 24:53:29.336219000 at offset 819680
0:00:00.741969815  2020   0x769670 INFO                 tsdemux tsdemux.c:1771:process_pcr: Found PCR 2419452370667 24:53:29.347061740 at offset 837916
0:00:00.743276445  2020   0x769670 INFO                 tsdemux tsdemux.c:1771:process_pcr: Found PCR 2419452826482 24:53:29.363943777 at offset 864988
0:00:00.743872407  2020   0x769670 INFO                 tsdemux tsdemux.c:1771:process_pcr: Found PCR 2419453285160 24:53:29.380931851 at offset 892436
0:00:00.744309519  2020   0x769670 INFO                 tsdemux tsdemux.c:1771:process_pcr: Found PCR 2419453473972 24:53:29.387924888 at offset 903904
0:00:00.744606963  2020   0x769670 DEBUG                tsdemux tsdemux.c:1798:process_pcr: Found 10 PCR
0:00:00.744854074  2020   0x769670 DEBUG                tsdemux tsdemux.c:1810:process_pcr: pcrdiff:0:00:00.130642000 offsetdiff 216200
0:00:00.745182519  2020   0x769670 DEBUG                tsdemux tsdemux.c:1813:process_pcr: Estimated bitrate 1654904
0:00:00.745446556  2020   0x769670 DEBUG                tsdemux tsdemux.c:1815:process_pcr: Average PCR interval 21620
0:00:00.747136963  2020   0x769670 DEBUG                tsdemux tsdemux.c:1635:find_timestamps: Upstream is 197977348 bytes
0:00:00.747662518  2020   0x769670 DEBUG                tsdemux tsdemux.c:1642:find_timestamps: Scanning for last sync point between:197145348 and the end:197977348
0:00:00.799770111  2020   0x769670 DEBUG                tsdemux tsdemux.c:1386:process_section: Section Complete
0:00:00.818867370  2020   0x769670 DEBUG                tsdemux tsdemux.c:1386:process_section: Section Complete
0:00:00.908562185  2020   0x769670 DEBUG                tsdemux tsdemux.c:1657:find_timestamps: Searching PCR
0:00:00.909110371  2020   0x769670 DEBUG                tsdemux tsdemux.c:1704:process_pcr: initoff:197966948, numpcr:10, isinitial:0
0:00:00.909402000  2020   0x769670 DEBUG                tsdemux tsdemux.c:1663:find_timestamps: Problem getting last PCRs
ERROR: from element /GstPipeline:pipeline0/GstTSDemux:d: Internal data stream error.

and mpegtsdemux (when using my bdremux tool to convert from ts to m2ts) to get stuck after 1 MB and never get to EOS

this can be also achieved by building a manual remuxing pipeline:
gst-launch filesrc location="20120420 1415 - ZDF HD - Die Küchenschlacht.ts" ! mpegtsdemux name=d d. ! queue2 ! video/x-h264 ! mpegtsmux name=m m2ts-mode=true ! filesink location=bla.m2ts d. ! queue2 ! audio/x-ac3 ! m. -v

the log suggests a queue problem:
0:00:05.588950370  3277 0x76101e18 LOG          queue2_dataflow gstqueue2.c:2350:gst_queue2_chain:<queue20> received buffer 0x55fca0 of size 168, time 24:53:31.272066666, duration 99:99:99.999999999
0:00:05.589122259  3277 0x76101e18 DEBUG        queue2_dataflow gstqueue2.c:1576:gst_queue2_wait_free_space:<queue20> queue is full, waiting for free space
0:00:05.589241814  3277 0x76101e18 LOG          queue2_dataflow gstqueue2.c:1579:gst_queue2_wait_free_space:<queue20> (queue20:sink) wait for DEL: 48 of 100 buffers, 632358 of 2097152 bytes, 420000000 of 2000000000 ns, 48 items

remuxing the audio or the video elementary stream seperately will work fine though

testfile available here: ftp://test4711:test4711@82.149.226.170/201204201415_-_ZDF_HD_-_Die_Kuechenschlacht.ts
Comment 1 Edward Hervey 2013-06-12 06:23:50 UTC
Whoops, this file has been working fine in master for quite some time now. Closing.