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
-
-
-
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.
Similar Threads
-
Keeping english subtitles only after ffmpeg conversion
By Nico Darko in forum Video ConversionReplies: 16Last Post: 12th Jul 2023, 08:49 -
Merging english translation sub into english sub?
By bizzybody in forum SubtitleReplies: 0Last Post: 18th Feb 2021, 03:45 -
How to batch copy metadata with ffmpeg?
By Pixelcruncher in forum ProgrammingReplies: 3Last Post: 19th Apr 2020, 09:57 -
How to specify/map English only subs in ffmpeg
By wallywalters in forum Video ConversionReplies: 4Last Post: 9th Oct 2018, 12:04 -
ffmpeg how to copy all streams to another wrapper
By jack616 in forum Video ConversionReplies: 4Last Post: 15th Nov 2016, 14:32