I'm using ffmpeg to modify multiple .mp4
files.
First I use this command to change the default language from eng
to fr
.
ffmpeg.exe -i "imput 1.mp4" -map 0 -c copy -disposition:a:0 0 -disposition:a:1 default "Output 2.mp4"
Then I want to use this command to add soft subtitles from the .srt
file to the .mp4
.
ffmpeg.exe -i "Input 1.mp4" -i "Input 2.srt" -c copy -c:s mov_text -metadata:s:s:0 language=fr "Output 1.mp4"
These two commands work independently but I would like to combine them in one line.
I tried something like this but only the audio changes, there is no effect on subtitles.
ffmpeg.exe -i "Input 1.mp4" -i "Input 2.srt" -map 0 -c copy -disposition:a:0 0 -disposition:a:1 default -c:s mov_text -metadata:s:s:0 language=fr Output 1.mp4"
I know there is something wrong but I can't figure it out.
Can somebody tell me what's wrong with my combined command?
Then as I said before, I'm working on multiple files (314 exactly) and each file has it's own name and it's tedious to manually change the filename each time. Is there a way to do it for each file present in a directory?