GNOME Bugzilla – Bug 747457
tsparse: doesn't output aligned ts packets (streaming from file to vlc doesn't recover on unaligned ts)
Last modified: 2018-11-03 13:33:33 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
Created attachment 301074 [details] unrecoverable rtsp playback when ts input is unaligned
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
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..
Created attachment 366768 [details] short mpeg-ts blob with garbage at the beginning Sample file
-- 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.