I have multiple .ts files that i want to batch convert losslesly to .mkv
I have found this ffmpeg bat file that do the job except adding language id.
All my files have just video and one audio no subtitles.for %%a in ("*.ts") do ffmpeg -i "%%a" -vcodec copy -acodec copy "%%~na.mkv"
Its very frustrating to remux with mkvtoolnix gui and manualy add english tag for audio.
If i use first bat file to remux .ts to .mkv and then this bat file
i finally get files like i want them. Could some nice person help me get this done with just one bat file.for %%a in (*.mkv) do "C:\Program Files\MKVToolNix\mkvpropedit.exe" "%%a" --edit track:a1 --set language=eng
+ Reply to Thread
Results 1 to 4 of 4
Last edited by Learning2do; 22nd Mar 2019 at 20:11. Reason: Typos fixed and better wording.
for %%a in ("*.ts") do ffmpeg -i "%%a" -map 0 -c copy -metadata:s:a:0 language=eng "%%~na.mkv" pause
Thank you for your help. You both made my life a lot easier.