rigaya / NVEnc

NVENCによる高速エンコードの性能実験
https://rigaya34589.blog.fc2.com/blog-category-17.html
Other
1.03k stars 108 forks source link

nvencc: Darker Images After Color Space Conversion with vpp-colorspace #587

Closed Demicro closed 1 month ago

Demicro commented 1 month ago

FFMPEG

-vf "scale=w=3840:h=2160:flags=lanczos:threads=0:force_original_aspect_ratio=decrease, colormatrix=bt709:bt2020, format=pix_fmts=yuv420p10"

NVENCC

--vpp-colorspace "matrix=auto:bt2020nc,colorprim=auto:bt2020,transfer=auto:bt2020-10,range=auto:limited"

rigaya commented 1 month ago

The difference here is cause by the difference in the options.

For nvencc, you shall just use --vpp-colorspace "matrix=auto:bt2020nc" to match the ffmpeg command line options.