Log in

View Full Version : ffmpeg and hevc_nvenc?


asarian
6th July 2021, 14:00
I decided to give hevc_nvenc a try once, using ffmpeg, on a H264 stream:

ffmpeg -i test.mp4 -c:v hevc_nvenc -pix_fmt yuv420p -preset p7 -tune hq -rc:v vbr -cq:v 10 -b:v 0 -profile:v main -rc-lookahead:v 32 g:\video\test.hevc

ffmpeg reports no errors, but simply exits like after 11 frames or so. What am I missing here?

Selur
6th July 2021, 17:10
Have you tried using a higher loglevel to see why ffmpeg exits?

frank
16th July 2021, 11:40
ffmpeg.exe -c:v h264_cuvid -i test.mp4 -c:v hevc_nvenc ...

asarian
19th July 2021, 08:08
ffmpeg.exe -c:v h264_cuvid -i test.mp4 -c:v hevc_nvenc ...

:goodpost:

Thx. Looks like I forgot the decoder part. :sly:

Balling
16th September 2021, 09:57
No, you can use SW decoder. This looks like another bug. Sigh.

As for cuvid part those are really old.

Use -hwaccel cuda -hwaccel_format cuda