<div dir="ltr">This works, nice! thank you<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 19, 2022 at 7:28 PM Nicolas Dufresne <<a href="mailto:nicolas@ndufresne.ca">nicolas@ndufresne.ca</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">Le jeudi 19 mai 2022 à 18:01 +0200, Bilel Bghiel via gstreamer-devel a écrit :<br>
> Linking 2 elements (flxMux video & avdec_h264) results in the following error:<br>
> <br>
> GST_CAPS<br>
> gstpad.c:3235:gst_pad_query_accept_caps_default:<avdec_h26417171:sink> caps:<br>
> video/x-h264, stream-format=(string)avc, width=(int)1280, height=(int)720,<br>
> codec_data=(buffer)014d001fffe1000e674d001f95a814016e9b8080808101000468ee3c80<br>
> were not compatible with: video/x-h264, alignment=(string)au, stream-<br>
> format=(string){ avc, byte-stream }; video/x-h264, alignment=(string)nal,<br>
> stream-format=(string)byte-stream<br>
> GST_CAPS gstpad.c:5757:pre_eventfunc_check:<avdec_h26417171:sink> caps<br>
> video/x-h264, stream-format=(string)avc, width=(int)1280, height=(int)720,<br>
> codec_data=(buffer)014d001fffe1000e674d001f95a814016e9b8080808101000468ee3c80<br>
> not accepted<br>
> <br>
> <br>
> The only thing I see different here is the codec_data buffer. Is there a way<br>
> to custom generate this or is there something else I'm missing?<br>
<br>
The difference is the alignment/stream-format. Insert the element "h264parse" to<br>
ensure its being adapted.<br>
<br>
Nicolas<br>
<br>
> <br>
> Kind regards<br>
<br>
</blockquote></div>