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 747457 - tsparse: doesn't output aligned ts packets (streaming from file to vlc doesn't recover on unaligned ts)
tsparse: doesn't output aligned ts packets (streaming from file to vlc doesn'...
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-04-07 14:21 UTC by Andreas Frisch
Modified: 2018-11-03 13:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
unrecoverable rtsp playback when ts input is unaligned (136.80 KB, text/x-log)
2015-04-07 14:23 UTC, Andreas Frisch
Details
short mpeg-ts blob with garbage at the beginning (250.00 KB, text/vnd.trolltech.linguist)
2018-01-13 15:35 UTC, Tim-Philipp Müller
Details

Description Andreas Frisch 2015-04-07 14:21:52 UTC
i've observed that i couldn't stream certain ts files from gst-rtsp-server to vlc (gstreamer as a client works) so i digged a bit and found out that the trigger for the issue were random bytes before the first ts packet

this is easily reproducable:
just prepend a few bytes before a valid, working ts file
printf "blafaselfoobar1234567890abcdefghijk" | cat - streamtest.ts > streamtest-broken.ts

start gst-rtsp-server
test-launch "( filesrc location=streamtest-broken.ts ! tsparse set-timestamps=true ! queue ! rtpmp2tpay name=pay0 pt=96 )"

playback with vlc
Comment 1 Andreas Frisch 2015-04-07 14:23:25 UTC
Created attachment 301074 [details]
unrecoverable rtsp playback when ts input is unaligned
Comment 2 Andreas Frisch 2015-04-07 15:00:21 UTC
when using a network stream as an input for the gst-rtsp-server's ts, so something like this:

nc -l 8008 | test-launch "( fdsrc ! tsparse set-timestamps=true ! queue ! rtpmp2tpay name=pay0 pt=96 )"

then only the first vlc client connection attempt results in a playable stream, after that, the stream looks entirely broken exactly like above
Comment 3 Tim-Philipp Müller 2018-01-13 15:32:23 UTC
gst-launch-1.0 -q filesrc location=/tmp/broken.ts ! tsparse set-timestamps=true ! fakesink dump=true | head -n 10

And rtpmp2tpay doesn't check either it seems..
Comment 4 Tim-Philipp Müller 2018-01-13 15:35:01 UTC
Created attachment 366768 [details]
short mpeg-ts blob with garbage at the beginning

Sample file
Comment 5 GStreamer system administrator 2018-11-03 13:33:33 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/233.