I420 format used to work with nvh264enc but no longer does

Sid Sethupathi via gstreamer-devel <[email protected]> Wed, 8 Oct 2025 14:59:01 -0400
Newsgroups gmane.comp.video.gstreamer.devel
Message-ID <CAA+qFcdAJ0o3sBV5NHgSBMiNXPSkUi1LgZgRNs0POkjEW=AFZw@mail.gmail.com>
--000000000000b8228a0640aa47b8
Content-Type: text/plain; charset="UTF-8"

Hello,

We are in the process of updating some dependencies and in this process we
are updating from Gstreamer 1.20.3 to 1.26.5.

We have a pipeline that looks like the following: "gst-launch-1.0
videotestsrc ! video/x-raw,width=1280,height=720,format=I420 ! nvh264enc !
fakesink"

In 1.20.3, this works even though the sink caps of nvh264enc do not include
I420 as a valid format. The outputted video in our actual pipeline looked
correct.

In 1.26.5, this pipeline does not work: "WARNING: erroneous pipeline: could
not link videotestsrc0 to nvh264enc0, nvh264enc0 can't handle caps
video/x-raw, width=(int)1280, height=(int)720, format=(string)I420".

It is easy enough for us to switch the format to something that is
explicitly in the capabilities list, but I was just wondering whether the
listed formats usable by nvh264enc are correct since it used to work, or if
it just worked by happenstance.

Sid

--000000000000b8228a0640aa47b8
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hello,</div><div><br></div><div>We are in the process=
 of updating some dependencies and in this process we are updating from Gst=
reamer 1.20.3 to 1.26.5.</div><div><br></div><div>We have a pipeline that l=
ooks like the following: &quot;gst-launch-1.0 videotestsrc ! video/x-raw,wi=
dth=3D1280,height=3D720,format=3DI420 ! nvh264enc ! fakesink&quot;</div><di=
v><br></div><div>In 1.20.3, this works even though the sink caps of nvh264e=
nc do not include I420 as a valid format. The outputted video in our actual=
 pipeline looked correct.</div><div><br></div><div>In 1.26.5, this pipeline=
 does not work: &quot;WARNING: erroneous pipeline: could not link videotest=
src0 to nvh264enc0, nvh264enc0 can&#39;t handle caps video/x-raw, width=3D(=
int)1280, height=3D(int)720, format=3D(string)I420&quot;.</div><div><br></d=
iv><div>It is easy enough for us to switch the format to something that is =
explicitly in the capabilities list, but I was just wondering whether the l=
isted formats usable by nvh264enc are correct since it used to work, or if =
it just worked by happenstance.=C2=A0</div><div><div dir=3D"ltr" class=3D"g=
mail_signature" data-smartmail=3D"gmail_signature"><br>Sid<br><br></div></d=
iv></div>

--000000000000b8228a0640aa47b8--