<div dir="ltr">Maybe someone else can give a better answer, but try putting in a queue between the mpegtsdemux and the mpeg2dec to isolate them. Blocking means deadlock. Queues often resolve that.<br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, May 27, 2014 at 4:04 PM, Dustin Oprea <span dir="ltr"><<a href="mailto:myselfasunder@gmail.com" target="_blank">myselfasunder@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>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.</div>


<div><br></div><div>This blocks forever:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="courier new, monospace">$ 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</font></div>


</blockquote><div><br></div><div>However, this works:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="courier new, monospace">$ 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</font></div>


</blockquote><div><br></div><div>..and I can play it in another process as it's being recorded:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="courier new, monospace">$ gst-launch-0.10 filesrc location=video.mp2 ! mpeg2dec ! xvimagesink</font></div>


</blockquote><div><br></div><div>What am I missing? Thanks for any insights. I lost many hours debugging this.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div><br></div><div><br></div><div><br></div><div>
Dustin</div></font></span></div>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>