<HTML>
<HEAD>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>I’ve got my movie playing in a preview window, with an appsink element supplying buffers to my app. (thanks to your help !) :)<BR>
<BR>
It may be that I can process the frame buffers faster than normal playback rate, so putting the pipeline into PLAYING mode will actually slow down my application.<BR>
What’s the best way to ensure I process each frame as fast as possible ?<BR>
<BR>
The two ways I can see are:<BR>
</SPAN></FONT><OL><LI><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>Use a g_main_loop and set up an ‘idle’ call-back function to process each frame, using g_idle_add(). Can I then seek to the next frame from within this idle call-back function ?
</SPAN></FONT><LI><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>Scrap the g_main_loop and use a while( !gst_app_sink_is_eos( sink )) loop. <BR>
</SPAN></FONT></OL><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
To seek to the next frame presumably I need to do a gst_element_seek_simple() with GST_FORMAT_DEFAULT and the seek_pos set to the frame number ?<BR>
<BR>
Sorry to ask so many questions...<BR>
<BR>
Darren </SPAN></FONT>
</BODY>
<!--[object_id=#friendmts.co.uk#]--><FONT color=#0000ff>
<P align=left><FONT face=Tahoma color=#0000ff size=2><FONT size=3> </FONT></P>
<P align=left>*** FRIEND MTS LIMITED EMAIL CONFIDENTIALITY ***</FONT></P>
<P align=left><FONT color=#0000ff><FONT face=Tahoma size=2>This email message and any attachments may contain information which is confidential or privileged and is intended for the sole use of the person to whom it is addressed. If you are not the intended recipient, be aware that any disclosures, copying, distribution or use of the contents is prohibited. If you have received this email message in error, please notify our office by telephone (+44 (0)121 633 2000) or email (</FONT><A href="mailto:admin@friendmts.co.uk"><FONT face=Tahoma size=2>admin@friendmts.co.uk</FONT></A><FONT face=Tahoma size=2>) immediately. Thank you.</FONT></FONT></P></FONT></HTML>