Use this:
ffmpeg -hwaccel nvdec -i input.mkv -c:a copy -c:v h264_nvenc -cq:v 21 -profile:v main -pix_fmt yuv420p output.mkv
Also, adding "-loglevel verbose" option to ffmpeg helped me figuring out the problem for me, because I was trying to encode the video and nvenc kept giving me some error along the lines of "no nvenc supported device" which clearly wasn't true. With the logging option, I realized since input was in "high 10" profile, it was trying to produce a 10 bit output too, which my device did not support.
No comments:
Post a Comment