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">rohitratri@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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><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>
<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><div>c. The bin1 returns say 200 or so packets and the app receives an EOS message from it! - why is that?</div>
<div>3. Does appsink return packets as and when it receives them or does it wait to preroll?</div><div><br></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>