I have a batch script that I am using to switch the 1st and 2nd audio tracks and copy over only the English subtitles.
What it does:Code:if not exist Ready md Ready for %%g in (*.mkv) do ( ffmpeg -i %%g -map 0:0 -map 0:2 -map 0:1 -map 0:3 -map 0:m:language:eng -c copy Ready\%%g )
- Switches the 1st and second audio and leaves the 3rd audio track where it was(which is what I want it to do)
- Then It re-adds all the audio tracks again 1-3 and add the English subs.
So this is obviously wrong and is telling it to add everything flagged as 'eng'.So in short what I'm trying to do is simply switch the 1st and 2nd audio track leave the 3rd audio track alone and copy only the English subs over. Can anyone show me what I need to change to accomplish this?Code:-map 0:m:language:eng
+ Reply to Thread
Results 1 to 5 of 5
This is just a guess, but isn't it "-map 0:s:language:eng" ?
I think I got it: "-map 0:s:m:language:eng" I'm not absolutely sure because the file I was using to test only had one each of video, audio (jp), and subtitle (eng) tracks. But there were no complaints and I got the English subs in the output file. And if I specified another language it gave an error.