<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 2, 2017 at 7:47 PM, Matteo Valdina <span dir="ltr"><<a href="mailto:matteo.valdina@gmail.com" target="_blank">matteo.valdina@gmail.com</a>></span> wrote:<br><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">Hi all,<br><div class="gmail_quote"><div dir="ltr"><div><div><br></div>I'm currently using vaapih264enc for a live streaming (RTP) project (1.8.3 for now). I need to generate intra-frame upon an external request (like packet loss indication). <br><br></div>For asking to the encoder to generate the intra-frame, I'm using this code:<br><br><div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:"Droid Sans Mono","Courier New",monospace,"Droid Sans Fallback";font-weight:normal;font-size:12px;line-height:16px;white-space:pre-wrap"><div><span style="color:rgb(212,212,212)"> GstEvent</span><span style="color:rgb(212,212,212)">*</span><span style="color:rgb(212,212,212)"> event </span><span style="color:rgb(212,212,212)">=</span><span style="color:rgb(212,212,212)"> </span><span style="color:rgb(220,220,170)">gst_video_event_new_downstream<wbr>_force_key_unit</span><span style="color:rgb(212,212,212)"> (GST_CLOCK_TIME_NONE, GST_CLOCK_TIME_NONE, GST_CLOCK_TIME_NONE, </span><span style="color:rgb(86,156,214)">TRUE</span><span style="color:rgb(212,212,212)">, </span><span style="color:rgb(181,206,168)">1</span><span style="color:rgb(212,212,212)">);</span></div><div><span style="color:rgb(212,212,212)"> gboolean res </span><span style="color:rgb(212,212,212)">=</span><span style="color:rgb(212,212,212)"> </span><span style="color:rgb(220,220,170)">gst_element_send_event</span><span style="color:rgb(212,212,212)">(encoder<wbr>_</span><span style="color:rgb(220,220,170)"></span><span style="color:rgb(212,212,212)">, event);</span></div></div><div><div><div><br><br></div><div>I tested and analyzed the output stream generated by x264enc and it works.<br><br></div><div>But when I use vaapih264enc. I see generate SPS, PPS, SEI and Non-IDR frames.<br><br></div><div>Does someone try a similar scenario and verify if intra frame is generated as expected?<br><br></div>I'm also surprised that there is no way to disable periodic key frame generation. Documentation states 0 for auto computation, accepted range 1 - 300. When I tried with 0 GLib assert that it is not a valid value.<br><br></div><div>Is it possible to disable this feature?<br></div></div></div></div></div></blockquote><div><br></div><div><br></div><div><div>Currently vaapiencoders do't have support for dynamic keyframe period setting.</div><div>Can you please file a bug against gstreamer-vaapi requesting this feature?</div><div><br></div><div>Auto-keyframe insertion is also not supported. Please file a separate bug for this.</div><div>This an advanced feature which is beyond the scope of current vaapih264encoder since it requires</div><div>scene change  detection. But we will implement this feature once there is Flexible Encoding Infrastructure in place: <a href="https://bugzilla.gnome.org/show_bug.cgi?id=784667">https://bugzilla.gnome.org/show_bug.cgi?id=784667</a></div></div><div> </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"><div class="gmail_quote"><div dir="ltr"><div><div></div><div><br></div><div>Best regards<span class="gmail-m_1885999040502330083HOEnZb"><font color="#888888"><br></font></span></div><span class="gmail-m_1885999040502330083HOEnZb"><font color="#888888"><div>Matteo Valdina <br></div><span class="gmail-HOEnZb"><font color="#888888"><div><div> <br></div><div>-- <br><div class="gmail-m_1885999040502330083m_8200517404279796020gmail_signature">“There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.”<br>- Tony Hoare<br clear="all"><br>-- <br><div class="gmail-m_1885999040502330083gmail_signature">“There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.”<br>- Tony Hoare</div>
</div>
</div></div></font></span></font></span></div></div></div></div>
<br>______________________________<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>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Regards,<br><br>Sreerenj Balachandran<br>Intel Open Source Technology Center</div>
</div></div>