User Tools

Site Tools


ffmpeg:encoding:h265:encode_video_as_x265_hevc_10bit

ffmpeg - Encoding - h265 - Encode video as x265 HEVC 10bit

Do CRF 18 slow with x265 10 bit for high quality 1080p.


Encode video as x265 HEVC 10bit

ffmpeg -i "input.mkv" -pix_fmt yuv420p10le -c:v libx265 -preset slow -crf 28 -c:a copy -x265-params profile=main10 "output".mkv

NOTE:

  • CRF 20-23 for most 1080p videos is enough.
  • x265 uses CRF 18 by default.
  • Use CRF 23+ for videos in 4K.

Same as above, but as a two-pass x265 HEVC 10bit encode

ffmpeg -y -i "input".mkv -c:v libx265 -b:v 1500k -x265-params pass=1 -an -f null /dev/null && \
ffmpeg -i "input".mkv -c:v libx265 -b:v 1500k -x265-params pass=2 -c:a copy "output".mkv

ffmpeg/encoding/h265/encode_video_as_x265_hevc_10bit.txt · Last modified: 2023/11/01 11:54 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki