10
3
Currently trying to convert my mkv library to mp4 (Iphone 6 plus)
I've managed to get to mkv to mp4 conversion correctly, but I'm missing the subtitles part (SRT)
Here's my code:
dir/b/s *.mkv >mkvlist.txt ///////// this gets a list of all the mkv files on the directory
for /F "delims=;" %%F in (mkvlist.txt) do ffmpeg.exe -i "%%F" -format mp4 -vcodec copy -acodec aac -strict -2 -sn "%%~dF%%~pF%%~nF.mp4" ///////////// this makes the conversion
del mkvlist.txt ////// this deletes the txt file
I would like to include subtitles into the scrip, but I´m having trouble inserting the correct name for the subtitles into the script (since this is a multiple conversion batch).
.mkv files are a container format. Its very likely that the mkv file contains an .srt file that you can extract. Make sure it has the same name as the .mp4 file and it should work. The mkv file might actually also contain an mp4 file but can also have an .divx, .avi or any other video format. – LPChip – 2015-06-25T19:31:02.950