rigaya / QSVEnc

QSVによる高速エンコードの性能実験
http://rigaya34589.blog135.fc2.com/blog-category-10.html
Other
313 stars 28 forks source link

issue with y4m file #121

Closed Joet73 closed 1 year ago

Joet73 commented 1 year ago

Hi,

There is a chroma shifting issue when using y4m input file using the below command line QSVEncC64--y4m -i input.y4m --icq 18 -c hevc -u best -o output.mp4 Switching to this ffmpeg piping command line no chroma shift ffmpegg -y -i input.y4m -an -f yuv4mpegpipe - | QSVEncC64 --y4m -i - --icq 18 -c hevc -u best -o output.mp4

Tested on Windows 11, latest Qsvenc 7.35. Source file used can be downloaded here

BTW, exact same issue with the nvenc 7.20

rigaya commented 1 year ago

I've checked the file, but seems to lack colorspace parameter ('C420') in the header, causing error in chroma pixel handling.

rigaya commented 1 year ago

I have updated to QSVEnc 7.36, changing default colorspace to YV12 instead of NV12, thus will be able to avoid y4m chroma shifting issue with y4m files which lacks colorspace parameter where there should be.