I’m currently recording gameplay footage through OBS in a near-lossless format, which preserves quality nicely, but generates gigabytes of video. For distribution, I want to re-encode my video files as H.265 with FFmpeg.
My current FFmpeg settings look as follows:
ffmpeg -i infile.mkv -c:v libx265 -crf 16 -preset slow -c:a aac outfile.mp4
However, when encoding video files, there is a bit of a balance between quality, file size and encoding time. A faster preset will make encoding time faster, but increase file size. And a higher CRF value will result in smaller files, but with lower quality.
So far, I’ve tried using the hevc_nvenc encoder with preset “p7”, which should be “slowest (best quality)”. While that codec was undoubtedly faster, it also produced unacceptably low quality. Perhaps I didn’t understand how to use those codec options, but I couldn’t find a good documentation either.
To summarize, is there a way to decrease encoding time, possibly by utilizing my nVidia RTX 4070 Ti, without (noticeable) sacrifices in quality or file size?