vaapih265enc widths >2880 result in wrong width in h265 stream
Hi,
when you run a pipeline like gst-launch-1.0 -v videotestsrc num-buffers=100 ! videoconvert ! video/x-raw, format=NV12, width=3440, height=1440 ! vaapih265enc ! filesink location=/tmp/test.h265
, the resulting h265 stream is reported as being 3424x1440 by ffprobe
, mediainfo
and mpv
's output.
MPV manages to play it back properly despite that but Youtube's ingest takes it as 3424x1440 and scales it to that size during re-encode.
You can try putting other values instead of 3440, anything larger than 2880 will be wrong. 2881 pixels result in 2930 pixels for example.
I tested gstreamer 1.20.1 with mesa 22.1.6 and 22.2.0-rc1 with the latter being required for vaapih265enc to not look buggy, width being buggy regardless.
Is this a bug in gstreamer or mesa?