I'm not guru with GST by any means. But some things you may want to look into below:<br><br><div class="gmail_quote">On Sun, Dec 19, 2010 at 10:51 AM, Rohit Atri <span dir="ltr"><<a href="mailto:rohitratri@gmail.com">rohitratri@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Come on, guys! Someone's got to know where I'm stuck. <div>All you GST gurus out there, please help me out.</div>
<div><br></div><div>Thanks<br><br><div class="gmail_quote">On Sat, Dec 18, 2010 at 9:12 PM, Rohit Atri <span dir="ltr"><<a href="mailto:rohitratri@gmail.com" target="_blank">rohitratri@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<div><br></div><div>I m writing an application which reads mp4 packets from a file (bin1: filesrc->qtdemux->appsink), do some analysis on a set(say 100 - depending on the duration of the video) of packets and choose one single packet and send it for decoding (bin2: appsrc->ffdec_mpeg4->appsink) and then save this image... repeat the process for all packets in the video.</div>
<div>I've a few questions -</div><div>1. Are the elements I'm using apt? and do I've to do some thread management since I've to pipelines?</div></blockquote></div></div></blockquote><div><br>GST does quite a bit of thread management on it's own. It builds the logic into the pipeline using various layers of queues and multiqueues.<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>2. a. I'm able to receive packets from bin1, do some analysis and send a single packet(iFrame) for decoding.. but bin2 doesn't return the packet back(the application hangs!).. </div></blockquote></div></div></blockquote>
<div><br>Is it possible that the single packet isn't enough to fulfill the segment? Take a look at the debug output of ffdec, is it spitting off buffer underflow warnings?<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>b. When I turn on the logs with level-4, I do get the packet back!!! - so it could be timing issue, I suspect.</div></blockquote></div></div></blockquote><div><br>Not sure where this is coming from, but you may want to throw a queue between your appsrc and ffdec so it would be appsrc->queue->ffdec<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>c. The bin1 returns say 200 or so packets and the app receives an EOS message from it! - why is that?</div></blockquote></div></div></blockquote><div><br>Not sure where the EOS is coming from, but you may want to look into blocking pads to control pipeline flow. Also take a look at the 'eos' property on the appsink element, this may be what's causing your issue, but I'm just guessing here.<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>3. Does appsink return packets as and when it receives them or does it wait to preroll?</div><div><br></div></blockquote></div></div></blockquote><div><br>No idea here, sorry.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div></div><div>Please help me understand the situation better. I've hit a roadblock! Please let me know if you need some logs... </div>
<div><br></div><div>Thanks</div><div>Rohit</div>
</blockquote></div><br></div>
<br>------------------------------------------------------------------------------<br>
Lotusphere 2011<br>
Register now for Lotusphere 2011 and learn how<br>
to connect the dots, take your collaborative environment<br>
to the next level, and enter the era of Social Business.<br>
<a href="http://p.sf.net/sfu/lotusphere-d2d" target="_blank">http://p.sf.net/sfu/lotusphere-d2d</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>