I have a folder with episodes called ep
and a folder with subtitles called sub
Each episode has corresponding subtitles and i need to bulk add them with ffmpeg.
I've read that i can add subtitles with the following command:
ffmpeg -i video.avi -vf "ass=subtitle.ass" out.avi
But that only does it one file at a time.
Is there a bulk variant?
Some useful info:
ls ep
prints
<series name> - Ep<episode number>.mkv
ls sub
prints
<series name> - Ep<episode number>.ass