howto:subtitles
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
howto:subtitles [2025/02/01 23:09] – Wulf Rajek | howto:subtitles [2025/07/09 16:31] (current) – Wulf Rajek | ||
---|---|---|---|
Line 39: | Line 39: | ||
or | or | ||
Parameter: | Parameter: | ||
+ | |||
+ | |||
+ | ===== Extract subtitles ===== | ||
+ | Extract subtitle with specific metadata title: | ||
+ | < | ||
+ | for f in *.mkv; do ffmpeg -hide_banner -i " | ||
+ | for f in *.mkv; do ffmpeg -hide_banner -i " | ||
+ | |||
+ | #extract 2 at once | ||
+ | for f in *.mkv; do ffmpeg -hide_banner -i " | ||
+ | </ | ||
+ | |||
+ | ===== Set subtitle to forced ===== | ||
+ | This copies the video and audio stream of an mp4 file, sets the first mov_text subtitle stream to ' | ||
+ | < | ||
+ | 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: | ||
+ | </ | ||
+ | |||
+ | For mkv files, this probably needs to be srt instead of mov_text. | ||
+ |
howto/subtitles.1738451378.txt.gz · Last modified: by Wulf Rajek