<div dir="ltr"><div><div><div>Thanks,<br><br></div>I open the bug <a href="https://bugzilla.gnome.org/show_bug.cgi?id=786173">https://bugzilla.gnome.org/show_bug.cgi?id=786173</a> with a test application.<br><br></div>Best<br></div>Matteo<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 11, 2017 at 3:22 AM, Víctor Jáquez <span dir="ltr"><<a href="mailto:vjaquez@igalia.com" target="_blank">vjaquez@igalia.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, 10 Aug 2017 at 21:13, Matteo Valdina wrote:<br>
> Hi y'all,<br>
<span class="">><br>
> I create a prototype that encode a video stream and sends RTP to the<br>
> network.<br>
> The other side is receiving the RTP stream and decode.<br>
><br>
> My problem is when the encoded stream changes the resolution.<br>
> vaapidecodebin (h264) decode a corrupted stream. The corrupted frame is<br>
> first couples line some colors and the rest is green.<br>
<br>
</span>It sounds like a bug too.<br>
<div><div class="h5"><br>
> I noticed in logs that when h264parse sense the resolution changes the<br>
> vaapidecode change src caps with old width and height:<br>
><br>
> 0:00:11.141138375 16310      0x11594f0 INFO               GST_EVENT<br>
> gstevent.c:809:gst_event_new_<wbr>caps: creating caps event video/x-h264,<br>
> stream-format=(string)avc, alignment=(string)au,<br>
> codec_data=(buffer)<wbr>01640028ffe1002a67640028ac3c42<wbr>01e0089797ff000100011000000300<wbr>1000000303ce00000302dc6c000089<wbr>545bdef72801000568ee01070c,<br>
> level=(string)4, profile=(string)high, pixel-aspect-ratio=(fraction)<wbr>1/1,<br>
> width=(int)1920, height=(int)1080, framerate=(fraction)30/1,<br>
> interlace-mode=(string)<wbr>progressive, parsed=(boolean)true<br>
> 0:00:11.143496386 16310      0x11594f0 INFO             vaapidecode<br>
> gstvaapidecode.c:208:gst_<wbr>vaapidecode_update_sink_caps:<<wbr>decoder-bin-0> new<br>
> sink caps = video/x-h264, stream-format=(string)avc, alignment=(string)au,<br>
> codec_data=(buffer)<wbr>01640028ffe1002a67640028ac3c42<wbr>01e0089797ff000100011000000300<wbr>1000000303ce00000302dc6c000089<wbr>545bdef72801000568ee01070c,<br>
> level=(string)4, profile=(string)high, pixel-aspect-ratio=(fraction)<wbr>1/1,<br>
> width=(int)1920, height=(int)1080, framerate=(fraction)30/1,<br>
> interlace-mode=(string)<wbr>progressive, parsed=(boolean)true<br>
> 0:00:11.145759769 16310      0x11594f0 INFO               h264parse<br>
> gsth264parse.c:1850:gst_h264_<wbr>parse_update_src_caps:<h264-<wbr>parse-dec-0> PAR<br>
> 1/1<br>
> 0:00:11.145988562 16310      0x11594f0 INFO               baseparse<br>
> gstbaseparse.c:3986:gst_base_<wbr>parse_set_latency:<h264-parse-<wbr>dec-0> min/max<br>
> latency 0:00:00.033333333, 0:00:00.033333333<br>
> 0:00:11.150561630 16310      0x11594f0 INFO             vaapidecode<br>
> gstvaapidecode.c:373:gst_<wbr>vaapidecode_update_src_caps:<<wbr>decoder-bin-0> new<br>
> src caps = video/x-raw(memory:VASurface), format=(string)NV12,<br>
> width=(int)1280, height=(int)720, interlace-mode=(string)<wbr>progressive,<br>
> multiview-mode=(string)mono,<br>
> multiview-flags=(<wbr>GstVideoMultiviewFlagsSet)0:<wbr>ffffffff:/right-view-first/<wbr>left-flipped/left-flopped/<wbr>right-flipped/right-flopped/<wbr>half-aspect/mixed-mono,<br>
> pixel-aspect-ratio=(fraction)<wbr>1/1, framerate=(fraction)30/1<br>
<br>
</div></div>Please open a bug, and provide a test app if it is possible. Perhaps we are<br>
forgetting to execute a drain the decoder before changing the caps.<br>
<br>
vmjl<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>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_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>