User Tools

Site Tools


ffmpeg:subtitles:add_subtitles_to_mp4_vs_mkv

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ffmpeg:subtitles:add_subtitles_to_mp4_vs_mkv [2024/12/30 22:17] peterffmpeg:subtitles:add_subtitles_to_mp4_vs_mkv [2024/12/30 22:30] (current) peter
Line 1: Line 1:
 ====== ffmpeg - Subtitles - Add subtitles to MP4 vs MKV ====== ====== ffmpeg - Subtitles - Add subtitles to MP4 vs MKV ======
  
-Different syntax is used for MP4 and MKV.+<WRAP alert> 
 +Different **syntax** is used for MP4 vs MKV.
  
-In both cases you must specify video and audio codec, or just copy stream if you just want to add subtitle.+  * In both cases you must specify video and audio codec, or just copy stream if you just want to add subtitle. 
 + 
 +</WRAP>
  
 ---- ----
Line 14: Line 17:
 -c:s mov_text output.mp4 -c:s mov_text output.mp4
 </code> </code>
 +
 +<WRAP info>
 +**NOTE:**  Notice the **-c:s mov_text**.
 +</WRAP>
  
 ---- ----
Line 25: Line 32:
 </code> </code>
  
 +<WRAP info>
 +**NOTE:**  Notice the **-c:s srt**.
 +</WRAP>
 +
 +
 +----
  
 <WRAP info> <WRAP info>
 **NOTE:**  If mapping is not used, then adding additional subtitles would overwrite the existing ones. **NOTE:**  If mapping is not used, then adding additional subtitles would overwrite the existing ones.
 +
 +To add language metadata (insert before output file) "-metadata:s:s:0 language=eng"
 +
 </WRAP> </WRAP>
  
 +----
 +
 +<WRAP info>
 +**NOTE:**  .srt files must be imported with -c:s copy not with -c:s mov_text
 +</WRAP>
  
 ---- ----
ffmpeg/subtitles/add_subtitles_to_mp4_vs_mkv.1735597041.txt.gz · Last modified: 2024/12/30 22:17 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki