<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 23 mars 2021 05 h 30, Javiku <<a href="mailto:javier.carrasco@wolfvision.net">javier.carrasco@wolfvision.net</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
I tried to implement the solution proposed in <br>
<a href="http://gstreamer-devel.966125.n4.nabble.com/How-to-force-keyframes-using-Python-GST-bindings-td4695810.html" rel="noreferrer noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/How-to-force-keyframes-using-Python-GST-bindings-td4695810.html</a><br>
<<a href="http://gstreamer-devel.966125.n4.nabble.com/How-to-force-keyframes-using-Python-GST-bindings-td4695810.html" rel="noreferrer noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/How-to-force-keyframes-using-Python-GST-bindings-td4695810.html</a>>  <br>
but my "v4l2h264enc" encoder seems to ignore the event I send and no extra<br>
key frames is generated. I just added a function to get a pointer to the<br>
encoder and some messages that in fact are never displayed because the<br>
conditions are always false. This is my code:<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">This is not yet implemented in this element, in fact there wasn't yet support for this in Linux when that element was posted. I can provide you hints on how to implement support for that, it should be fairly straightforward.</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
      ForceKeyStruct = gst_structure_new("GstForceKeyUnit","all-headers",<br>
G_TYPE_BOOLEAN, TRUE, NULL);<br>
      if(ForceKeyStruct == NULL)<br>
        ipcd_warn("ForeKeyStruct NULL");<br>
      force_key_unit_event = gst_event_new_custom(GST_EVENT_CUSTOM_UPSTREAM,<br>
ForceKeyStruct);<br>
      if(force_key_unit_event == NULL)<br>
        ipcd_warn("force_key_unit_event NULL");<br>
      enc = gst_bin_get_by_name(GST_BIN(pipeline), "v4l2h264enc0");<br>
      if(enc == NULL)<br>
        ipcd_warn("enc NULL");<br>
      encoder_src_pad = gst_element_get_static_pad(enc, "src");<br>
      if(!gst_pad_send_event(encoder_src_pad, force_key_unit_event))<br>
        ipcd_warn("event not sent");<br>
      gst_object_unref(encoder_src_pad);<br>
<br>
When this code is executed I do not notice any change... as if the event was<br>
completely ignored. The frame pattern does not change and I do not get any<br>
additional key frame. I do not get any error message either. Am I doing<br>
anything wrong? Is my encoder not able to handle that event? should I<br>
explicitly configure the encoder to accept this event? Thanks in advance.<br>
Regards Javiku<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div></div></div>