User Tools

Site Tools


howto:subtitles

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
howto:subtitles [2025/05/02 19:47] Wulf Rajekhowto:subtitles [2025/07/09 16:31] (current) Wulf Rajek
Line 51: Line 51:
 </code> </code>
  
 +===== Set subtitle to forced =====
 +This copies the video and audio stream of an mp4 file, sets the first mov_text subtitle stream to 'forced' and the second to normal:
 +<code>
 +ffmpeg -i input.mp4 -vcodec copy -acodec copy -map 0:v:0 -map 0:a:0 -map 0:s:0 -c:s mov_text -disposition:s:0 forced -map 0:s:1 -disposition:s:1 0 output.mp4
 +</code>
  
 +For mkv files, this probably needs to be srt instead of mov_text.
  
howto/subtitles.1746211654.txt.gz · Last modified: by Wulf Rajek