Gstreamer mpeg2dec plugin is blocking
Tim Müller
tim at centricular.com
Tue May 27 14:46:27 PDT 2014
On Tue, 2014-05-27 at 16:04 -0400, Dustin Oprea wrote:
> I'm reading an ATSC DVB source to MPEG2-TS, isolating the MPEG2
> stream, and trying to play it. There's some small glitch, where
> mpeg2dec is connected and the pipeline is in the PLAYING state, but
> nothing happens. When I remove *mpeg2dec* and just write the video
> stream to a file, I can play it back without a problem.
>
>
> This blocks forever:
>
>
> $ gst-launch-0.10 dvbbasebin adapter=0 frontend=0
> frequency=551000000 program-numbers=6 modulation=8VSB !
> mpegtsdemux ! video/mpeg,mpegversion=2 ! mpeg2dec ! filesink
> location=video.yuv
>
>
> However, this works:
>
>
> $ gst-launch-0.10 dvbbasebin adapter=0 frontend=0
> frequency=551000000 program-numbers=6 modulation=8VSB !
> mpegtsdemux ! video/mpeg,mpegversion=2 ! filesink
> location=video.mp2
>
>
> ..and I can play it in another process as it's being recorded:
>
>
> $ gst-launch-0.10 filesrc location=video.mp2 ! mpeg2dec !
> xvimagesink
>
>
> What am I missing? Thanks for any insights. I lost many hours
> debugging this.
Try adding an mpegvideoparse in front of mpeg2dec, or just use
decodebin(2) instead.
Also try GStreamer 1.x instead of 0.10.
Cheers
-Tim
--
Tim Müller, Centricular Ltd - http://www.centricular.com
More information about the gstreamer-devel
mailing list