Hi,<div><br></div><div>I m writing an application which reads mp4 packets from a file (bin1: filesrc-&gt;qtdemux-&gt;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-&gt;ffdec_mpeg4-&gt;appsink) and then save this image... repeat the process for all packets in the video.</div>
<div>I&#39;ve a few questions -</div><div>1. Are the elements I&#39;m using apt?  and do I&#39;ve to do some thread management since I&#39;ve to pipelines?</div><div>2. a. I&#39;m able to receive packets from bin1, do some analysis and send a single packet(iFrame) for decoding.. but bin2 doesn&#39;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&#39;ve hit a roadblock! Please let me know if you need some logs... </div>
<div><br></div><div>Thanks</div><div>Rohit</div>