<div dir="ltr"><div><div>Hi Sebastian/Augusto, <br><br></div>On the TI and Qualcomm chips that we worked with, at Palm, you could set the keyframe generation to be either periodic or on demand.<br><br>For the video recorder app we had a 1/2 second distance between iframes - to facilitate easy editing of the video (chop at keyframes).<br>
<br>I would expect it to be a supported on other hardware, it seems a fairly reasonable thing to have.<br><br></div>It's been a year or two since I needed to look at this, so I just skimmed through the OpenMAX spec, and I see a couple of things that look familiar:<br>
<div dir="ltr" style="font-size:17.36px;font-family:sans-serif"></div><div dir="ltr"><font><span style="font-family:courier new,monospace"> - OMX_VIDEO_CONFIG_AVCINTRAPERIOD<br> - </span></font><font><span style="font-family:courier new,monospace">OMX_VIDEO_PARAM_H263TYPE <br>
<br> </span></font></div><div>Both have a field called <i>nPFrames</i> which controls the distance between iFrames.<br><br>Regards,<br>Rik.<br><br><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Aug 6, 2013 at 11:44 PM, Sebastian Dröge <span dir="ltr"><<a href="mailto:slomo@circular-chaos.org" target="_blank">slomo@circular-chaos.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Di, 2013-08-06 at 14:06 +0200, Augusto Destrero wrote:<br>
> Hi there,<br>
> in my application using gstreamer-omx on the Raspberry PI I would like to have<br>
> a short time distance between keyframes in a h264 stream.<br>
><br>
> Is there a way to control the maximum time distance between keyframes in<br>
> omxh264enc?<br>
<br>
There isn't and IIRC there is also no API to do this in OpenMAX or on<br>
the RPi other than forcing a keyframe.<br>
<br>
Currently the encoder has already support for forcing keyframes (with<br>
the force-keyunit event). I don't know if RPi implements this, but if it<br>
does you could add a property to gst-omx to use this for forcing a<br>
keyframe at least every N seconds.<br>
<br>_______________________________________________<br>
gstreamer-openmax mailing list<br>
<a href="mailto:gstreamer-openmax@lists.freedesktop.org">gstreamer-openmax@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-openmax" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-openmax</a><br>
<br></blockquote></div><br></div>