<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 2, 2017 at 11:37 PM, Hyunjun Ko <span dir="ltr"><<a href="mailto:zzoon@igalia.com" target="_blank">zzoon@igalia.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Matteo Valdina wrote<br>
<span class="">> Hi all,<br>
><br>
> I'm currently using vaapih264enc for a live streaming (RTP) project (1.8.3<br>
> for now). I need to generate intra-frame upon an external request (like<br>
> packet loss indication).<br>
><br>
> For asking to the encoder to generate the intra-frame, I'm using this<br>
> code:<br>
><br>
> GstEvent* event = gst_video_event_new_<wbr>downstream_force_key_unit<br>
> (GST_CLOCK_TIME_NONE, GST_CLOCK_TIME_NONE, GST_CLOCK_TIME_NONE, TRUE, 1);<br>
> gboolean res = gst_element_send_event(<wbr>encoder_, event);<br>
><br>
><br>
> I tested and analyzed the output stream generated by x264enc and it works.<br>
><br>
> But when I use vaapih264enc. I see generate SPS, PPS, SEI and Non-IDR<br>
> frames.<br>
><br>
> Does someone try a similar scenario and verify if intra frame is generated<br>
> as expected?<br>
<br>
</span>This is implemented recently, which is doing that it produces IDR if<br>
FORCE_KEY_UNIT.<br>
<br></blockquote><div><br></div><div>Okay, so this one is already landed in master, thanks Hyunjun :)</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<a href="https://cgit.freedesktop.org/gstreamer/gstreamer-vaapi/commit/?id=465d5868d96ec7c839bfdb4a3e17f33a8bae1206" rel="noreferrer" target="_blank">https://cgit.freedesktop.org/<wbr>gstreamer/gstreamer-vaapi/<wbr>commit/?id=<wbr>465d5868d96ec7c839bfdb4a3e17f3<wbr>3a8bae1206</a><br>
<br>
Use gstreamer-vaapi on the master.<br>
<br>
<br>
Matteo Valdina wrote<br>
<span class="">> I'm also surprised that there is no way to disable periodic key frame<br>
> generation. Documentation states 0 for auto computation, accepted range 1<br>
> -<br>
> 300. When I tried with 0 GLib assert that it is not a valid value.<br>
><br>
> Is it possible to disable this feature?<br>
<br>
</span>Currently 0 is disabled but there is logic to calculate based on provided<br>
framerate.<br>
We can enable it after verification (file up to bugzilla please)<br>
But I guess you want to disable forever (and produce I-frame when you want),<br>
that's not supported for now. You can raise this up to bugzilla as Sree<br>
said.<br>
<br>
<br>
Matteo Valdina wrote<br>
<span class="">> Best regards<br>
> Matteo Valdina<br>
<br>
<br>
<br>
<br>
<br>
--<br>
</span>View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Fwd-Vaapih264enc-and-Intra-Key-frame-request-tp4684076p4684080.html" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.<wbr>n4.nabble.com/Fwd-<wbr>Vaapih264enc-and-Intra-Key-<wbr>frame-request-<wbr>tp4684076p4684080.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
<div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Regards,<br><br>Sreerenj Balachandran<br>Intel Open Source Technology Center</div>
</div></div>