Thumbnail for every keyframe in video, fast

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Thumbnail for every keyframe in video, fast

matzewagner
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?

--
Matthias Wagner
(626) 376.7202

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Thumbnail for every keyframe in video, fast

Thiago Sousa Santos-2


On Wed, Dec 12, 2018 at 9:41 AM Matthias Wagner <[hidden email]> 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?


This flag should make elements only decode/output keyframes.


--
Matthias Wagner
(626) 376.7202
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


--
Thiago Sousa Santos

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel