ffmpeg:encoding:cpu_encoding
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ffmpeg:encoding:cpu_encoding [2025/02/17 12:08] – peter | ffmpeg:encoding:cpu_encoding [2025/02/17 12:14] (current) – peter | ||
---|---|---|---|
Line 13: | Line 13: | ||
* This will copy the audio track without re-encoding it. | * 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. | * The **-preset slow** option will produce the highest quality output, but it will take longer to process. | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | <code bash> | ||
+ | ffmpeg -i input.mp4 -c:v hevc -crf 23 -preset slow output.mp4 | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | * This will use a constant rate factor (CRF) of 23 (medium quality). | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Adding Subtitles ===== | ||
+ | |||
+ | <code bash> | ||
+ | ffmpeg -i input.mp4 -vf " | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **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. | ||
+ | |||
</ | </ | ||
ffmpeg/encoding/cpu_encoding.1739794099.txt.gz · Last modified: 2025/02/17 12:08 by peter