<div dir="ltr"><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Wed, Dec 12, 2018 at 9:41 AM Matthias Wagner <<a href="mailto:matthias@gnarbox.com">matthias@gnarbox.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><span style="font-family:Menlo">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 <span style="font-size:12px;color:rgb(0,0,0);background-color:rgb(249,249,249)">GST_BUFFER_FLAG_DELTA_UNIT, </span>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?</span></div></blockquote><div><br></div><div>Did you check the trickmode for keyframes? Check it at <a href="https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstEvent.html#GST-SEEK-FLAG-TRICKMODE-KEY-UNITS:CAPS">https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstEvent.html#GST-SEEK-FLAG-TRICKMODE-KEY-UNITS:CAPS</a></div><div><br></div><div>This flag should make elements only decode/output keyframes.<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-7031503326688984118gmail_signature"><div dir="ltr"><div dir="ltr">Matthias Wagner<div>(626) 376.7202<br></div></div></div></div></div>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">Thiago Sousa Santos</div></div></div>