[gst-devel] <no subject>

Darren Staples dstaples at friendmts.co.uk
Tue Jan 13 12:15:04 CET 2009


I¹ve got my movie playing in a preview window, with an appsink element
supplying buffers to my app. (thanks to your help !) :)

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.
What¹s the best way to ensure I process each frame as fast as possible ?

The two ways I can see are:
1. Use a g_main_loop and set up an Oidle¹ 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 ?
2. Scrap the g_main_loop and use a while( !gst_app_sink_is_eos( sink ))
loop. 

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 ?

Sorry to ask so many questions...

Darren 

*** FRIEND MTS LIMITED EMAIL CONFIDENTIALITY ***

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 (admin at friendmts.co.uk) immediately.  Thank you.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090113/64954daf/attachment.htm>


More information about the gstreamer-devel mailing list