How to batch add subtitles to videos using ffmpeg

  for n in $(seq -w 01 26); do ffmpeg -i inputvideo${n}.mkv -i inputsubtitle${n}.srt -c copy outputvideo${n}_sub.mkv; done So in this example we have all video files and subtitle files in one folder. The video files are named all in the pattern “inputvideo${n}.mkv” and the subtitles in “inputsubtitle${n}.srt” In total we have 26 videos and… Continue reading How to batch add subtitles to videos using ffmpeg

Published
Categorized as tech