====== ffmpeg - Encoding - CPU Encoding ====== Convert the video to HEVC while keeping the auto track and everything else the same. ffmpeg -i input.mp4 -c:v libx265 -c:a copy -preset slow output.mp4 **NOTE:** * This uses the **libx265 encoder** to encode the video into the HEVC format. * This will copy the audio track without re-encoding it. * The **-preset slow** option will produce the highest quality output, but it will take longer to process. ---- ffmpeg -i input.mp4 -c:v hevc -crf 23 -preset slow output.mp4 **NOTE:** * This will use a constant rate factor (CRF) of 23 (medium quality). ---- ===== Adding Subtitles ===== ffmpeg -i input.mp4 -vf "subtitles=subtitle.srt:force_style='Fontsize=24'" -c:v hevc -crf 23 output.mp4 **NOTE:** * **-vf**: the video filter chain for applying filters to the video, including subtitle rendering. * This includes subtitles from the **subtitle.srt** file with a Fontsize of 24.