GNOME Bugzilla – Bug 633906
VLC breaks while playing mpeg2 ts stream generated by ffmux_mpegts
Last modified: 2011-12-22 04:40:31 UTC
If we generate a ts stream with gst-launch-0.10 videotestsrc ! ffenc_mpeg2video bitrate=2000000 rc-max-rate=2000000 rc-min-rate=2000000 rc-buffer-size=183500 ! queue ! ffmux_mpegts name=mux ! filesink location=/tmp/test-gst.ts -v audiotestsrc ! audio/x-raw-int, rate=48000, channels=2 ! audioconvert ! ffenc_mp2 ! queue ! mux. the test-gst.ts stream breaks after sometime while playing back using vlc. if you use vlc -vvv you can see the problem that the pts values are not properly assigned in ts packets by ffmux_mpegts. Also if we generate a test-ffmpeg.ts using ffmpeg commandline ./ffmpeg -i ~/test.flv -vcodec mpeg2video -bufsize 1835008 -b 2000000 -maxrate 2000000 -minrate 2000000 -acodec mp2 -f mpegts -muxrate 3000000 /tmp/test-ffmpeg.ts it plays perfectly with vlc. Suspected Issue: There is a difference in the way ffmpeg assigns pts values & the way gst-ffmpeg does. It seems gst-ffmpeg is doing something wrong. Can someone please look in the issue.
What happens if you use mpegtsmux instead?
kapil, can you please respond to comment#1 ?
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for. Thanks!