
As FFmpeg has added libx265 and HEVC decoder for years, FFmpeg is very useful to handle HEVC videos for different purposes. See ffmpeg -h encoder=libx265 for additional supported pixel formats.Ffmpeg HEVC to H.264 MP4, FFmpeg HEVC Encoding, etc.įFmpeg is a free command-line utility which is powerful in different video-related tasks. Other 10-bit pixel formats supported by libx265 are yuv422p10le & yuv444p10le, but your player may not like these. Uses the format filter to choose the yuv420p10le pixel format to create 10-bit output. See FFmpeg Wiki: HEVC / H.265 for more info on -crf and -preset.ġ2-bit HEVC to 10-bit HEVC ffmpeg -i input -map 0 -c:v libx265 -crf 20 -vf format=yuv420p10le -c:a copy output.mkv 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
