User Tools

Site Tools


ffmpeg:encoding:cpu_encoding

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
ffmpeg:encoding:cpu_encoding [2025/02/17 12:10] peterffmpeg:encoding:cpu_encoding [2025/02/17 12:14] (current) peter
Line 25: Line 25:
  
   * This will use a constant rate factor (CRF) of 23 (medium quality).   * This will use a constant rate factor (CRF) of 23 (medium quality).
 +</WRAP>
 +
 +----
 +
 +===== Adding Subtitles =====
 +
 +<code bash>
 +ffmpeg -i input.mp4 -vf "subtitles=subtitle.srt:force_style='Fontsize=24'" -c:v hevc -crf 23 output.mp4
 +</code>
 +
 +<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.
 +
 </WRAP> </WRAP>
  
ffmpeg/encoding/cpu_encoding.txt · Last modified: 2025/02/17 12:14 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki