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/02/01 23:09] Wulf Rajekhowto:subtitles [2025/05/02 19:47] (current) Wulf Rajek
Line 39: Line 39:
 or or
 Parameter:  {“action”:“subtitledelayplus”} Parameter:  {“action”:“subtitledelayplus”}
 +
 +
 +===== Extract subtitles =====
 +Extract subtitle with specific metadata title:
 +<code>
 +for f in *.mkv; do ffmpeg -hide_banner -i "$f" -c copy -map 0:s:m:title:"English [ForcedNarrative]" "${f%.*}.en.forced.srt"; done
 +for f in *.mkv; do ffmpeg -hide_banner -i "$f" -c copy -map 0:s:m:title:"angličtina" "${f%.*}.en.srt"; done
 +
 +#extract 2 at once
 +for f in *.mkv; do ffmpeg -hide_banner -i "$f" -c copy -map 0:s:m:title:"English [ForcedNarrative]" "${f%.*}.en.forced.srt" -c copy -map 0:s:m:title:"angličtina" "${f%.*}.en.srt"; done
 +</code>
 +
 +
 +
 +
howto/subtitles.txt · Last modified: by Wulf Rajek