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"
pause
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.
-
-
Code:
for %%a in ("*.ts") do ffmpeg -i "%%a" -map 0 -c copy -metadata:s:a:0 language=eng "%%~na.mkv" pause
-
@video.baba
@pandy
Thank you for your help. You both made my life a lot easier.
Similar Threads
-
How to batch convert videos to mkv container?
By LoverOfLove in forum EditingReplies: 2Last Post: 10th Dec 2016, 05:06 -
Need help with ffmpeg script to batch convert audio in MKV files
By mikeveli20 in forum AudioReplies: 5Last Post: 18th Nov 2016, 13:21 -
Mux Batch convert MKV to MP4 with subtitles in Linux
By coquex in forum Video ConversionReplies: 7Last Post: 17th Jun 2016, 17:47 -
Batch Convert .mpg files to .MKV with no conversion
By dvdguyjt in forum Video ConversionReplies: 1Last Post: 20th May 2015, 17:01 -
Batch convert AVI to MKV on Mac from terminal?
By hogfan in forum MacReplies: 5Last Post: 19th Nov 2014, 19:19