Thumbnail for every keyframe in video, fast

Thiago Sousa Santos thiagossantos at gmail.com
Wed Dec 12 17:49:47 UTC 2018


On Wed, Dec 12, 2018 at 9:41 AM Matthias Wagner <matthias at gnarbox.com>
wrote:

> I am trying to generate images for every nth keyframe in a video file, as
> fast as possible. I have considered using multifilesink iterating over
> every frame and detecting keyframes via GST_BUFFER_FLAG_DELTA_UNIT, but this
> seems slow and performance is key. I have also looked at using the
> videorate plugin or seeking, but I don’t know how to ensure that we
> actually land on a keyframe. Are there any other approaches that GStreamer
> would lend itself to for this kind of task?
>

Did you check the trickmode for keyframes? Check it at
https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstEvent.html#GST-SEEK-FLAG-TRICKMODE-KEY-UNITS:CAPS

This flag should make elements only decode/output keyframes.

>
>
> --
> Matthias Wagner
> (626) 376.7202
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>


-- 
Thiago Sousa Santos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20181212/8be4bbdf/attachment-0001.html>


More information about the gstreamer-devel mailing list