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:
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 ([hidden email]) immediately. Thank you. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
On Tue, 2009-01-13 at 11:15 +0000, Darren Staples wrote:
> 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 ‘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 ? > 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 ? > Set the sync property on appsink to FALSE, this will disable synchronisation against the clock. Wim > 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 ([hidden email]) immediately. Thank you. > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |