I usually convert video from x264 to x265 with this ffmpeg command:
ffmpeg -i %arg1% -vcodec libx265 -crf 28 %arg2%
And although it takes some time (from 2 to 15 hours) it gets the job done nicely, reducing the file size to half or less. Recently I was trying to use my GPU to help make this conversion faster, but I can't seem to tune the options correctly.
If I use this command:
ffmpeg -c:v h264_cuvid -i %arg1% -c:v hevc_nvenc -b:v 2M -c:a copy -tag:v hvc1 %arg2%
the file size will increase to double, which is not good. And if I try to use "1M" instead of "2M" the image will start to look bad (pixelated, etc). There are no error messages, by the way.
Is there any command I can try that will get me the same result as the slow option (with no GPU usage) but using the computer's GPU?
Note: My GPU is the Nvidia GTX 1050 (laptop version)