I tried
HandBrakeCLI -i file1.mkv -o output.mp4 -e nvenc_h264 --encopts="gpu=1"where gpu=1 means my nVidia 3070. It'd stop about 2 seconds after it prints:
03:11:13 encavcodecInit: H.265 (Nvidia NVENC)
Encoding: task 1 of 1, 0.00%I tried removing
--encopts="gpu=1"and it didn't work. I tried changing to 0 and it didn't work. I also tried
--encopts="gpu=1;coder=auto"in the docs here and it didn't work. I also tried gpu=any and it didn't work.
Can it be made to work at all? I saw an article saying it is about 5 times as fast as using the CPU to encode.
11 Answer
HandBrakeCLI -i in.mkv -o out.mkv -e nvenc_h265
tried all your steps without result.
adding -e nvenc_h265 worked for me