I try to encode this 4k VP9 HDR10 vídeo: https://www.youtube.com/watch?v=kgppJX0G--E using this command line:
ffmpeg \
-vsync 0 \
-hwaccel cuda \
-hwaccel_output_format cuda \
-c:v vp9_cuvid \
-crop 276x276x0x0 \
-i "(PS5) THE PACIFIC WAR 1943 | Realistic Immersive ULTRA Graphics Gameplay [4K 60FPS HDR] Call of Duty [kgppJX0G--E].webm" \
-c:v hevc_nvenc \
-preset slow \
-rc vbr \
-rc-lookahead 20 \
-b:v 28M \
-bufsize 5M \
-maxrate 28M \
-g 250 \
-an \
-sn \
output_video.hevc
FFMpeg works fine BUT doesn't save HDR10 in HEVC output video (with "hevc_cuvid" no problem). FFMpeg gives these errors:
Impossible to convert between the formats supported by the filter 'Parsed_null_0' and the filter 'auto_scale_0'
[vf#0:0 @ 0x557dd530b600] Error reinitializing filters!
[vf#0:0 @ 0x557dd530b600] Task finished with error code: -38 (Function not implemented)
[vf#0:0 @ 0x557dd530b600] Terminating thread with return code -38 (Function not implemented)
[vost#0:0/hevc_nvenc @ 0x557dd5313700] Could not open encoder before EOF
[vost#0:0/hevc_nvenc @ 0x557dd5313700] Task finished with error code: -22 (Invalid argument)
[vost#0:0/hevc_nvenc @ 0x557dd5313700] Terminating thread with return code -22 (Invalid argument)
[out#0/matroska @ 0x557dd52a7000] Nothing was written into output file, because at least one of its streams received no packets.