HEVC delivers substantial improvements over the older H.264 (AVC) standard, cutting storage and bandwidth needs roughly in half:
ffmpeg -i input.mp4 -c:v libx265 -preset slow -x265-params aq-mode=3:psy-rd=1.6:psy-rdoq=1.0:deblock=-1,-1:crf=20 -c:a copy output.mkv Use code with caution. 3. Choosing the Right CRF Constant Rate Factor (CRF) dictates overall quality. : Visually lossless; best for archival purposes. userhevc best