[gst-devel] keyframes from a video

kitone kitone at free.fr
Mon Aug 3 12:59:35 CEST 2009


Hi all,
unanswered, do I need to consider there is not an another way to get
keyframes from a file with gstreamer?

Thanks & best regards,
kitone

Le Fri, 24 Jul 2009 11:20:04 +0200,
kitone <kitone at free.fr> a écrit :

> Hi,
> 
> I'm the developer of subtitleeditor[1] and i'm currently rewriting the
> gstreamer support. I need to display the position of the keyframes on
> the waveform, and for that I need to extract all keyframes from a
> video and keep this values in a array.
> 
> My current method is to play the video something like this: 
> 
> 'filesrc ! decodebin ! ffmpegcolorspace ! fakesink' 
> 
> Connect the 'handoff' signal of my fakesink and check if the buffer
> has a flag GST_BUFFER_FLAG_DELTA_UNIT. If yes, add a keyframe in an
> array.
> 
> It work pretty well, but it's also a little slow. Is there an another
> way to get all keyframes from a video?
> 
> [1] http://home.gna.org/subtitleeditor
> 
> Best regards,
> kitone
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> 




More information about the gstreamer-devel mailing list