
Add the -preset option if you want to adjust encoding speed. No need for the format filter in this case.ġ0-bit/12-bit HEVC to 8-bit HEVC ffmpeg -i input -map 0 -c:v libx265 -crf 20 -vf format=yuv420p -c:a copy output.mkvĪdjust the -crf value to provide the desired level of quality.

Uses the format filter to choose the yuv420p pixel format to create 8-bit output.ġ0-bit/12-bit HEVC to 10-bit H.264 ffmpeg -i input -map 0 -c:v libx264 -crf 18 -c:a copy output.mkv See FFmpeg Wiki: H.264 for more info on -crf and -preset. See FFmpeg Wiki: Map.Īdjust the -crf value to provide the desired level of quality. map 0 will include all streams (default stream selection only selects 1 stream per type). 10-bit/12-bit HEVC to 8-bit H.264 ffmpeg -i input -map 0 -c:v libx264 -crf 18 -vf format=yuv420p -c:a copy output.mkv
