Page 1 of 1

MPEG-4 Part 14 from Matroska with subtitles.

Posted: Wed May 20, 2015 3:06 am
by bb45
I have a number of Matroska files with subtitles and I am wishing to mux them into MP4's.

My ultimate goal at the moment is to copy the H264 video, convert the AC3 audio track to AAC, with keeping the six channels and copy the AC3 track as a second audio source, with it disabled. As for the subtitle track, I am wanting that enabled by default (please note, I do not want the subtitles hard coded)

My Windows batch file is as followed:

Code: Select all

for %%a in ("*.mkv") do ffmpeg -i "%%a" -vcodec copy -c:a aac -strict experimental -b:a 192k -ac 6 -acodec copy -c:s mov_text "%%~na.mp4"
goto start
What I am ending up with, right now. Is a MP4 with the correct video, AAC audio track and the subtitles disabled.

How can I copy the AC3 track with it disabled and force the subtitles to run automatically?
And yes, I mean the same audio track is converters to AAC and copied.

Any help is greatly appreciated