Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
![]() |
#1 | Link |
Registered User
Join Date: Oct 2009
Posts: 15
|
MKVmerge Batch File - Remove Audio Track
I have about 51 video files and I want to remove one of the audio tracks (ID 3), but I don't want to do it one at a time. Instead, I prefer using a script to do the work. Unfortunately, I've been unsuccessful, so I was hoping that someone could help me create a mkvmerge batch script to remove one of the audio tracks (ID 3).
Previously, some people helped me create a batch file to remux some files, and I'm thinking that the second half just needs to be modified: FOR %%A IN (*.mkv) DO mkvmerge -o "remux-%%~nA.mkv" "%%~A" |
![]() |
![]() |
![]() |
#2 | Link | |
Guest
Posts: n/a
|
Quote:
Code:
FOR /F "delims=*" %%A IN ('dir /b *.MKV') DO "<path_to_mkvmerge>mkvmerge.exe" -o "fixed_%%A" -A -S --compression -1:none "%%A" -A -D "%%A" |
|
![]() |
![]() |
#4 | Link |
Yes, I'm weird.
Join Date: May 2010
Location: Southeast Asia
Posts: 271
|
@tosh9i:
I think the following batch will do what you want (modified from 7ekno's script): Code:
FOR /F "delims=*" %%A IN ('dir /b *.MKV') DO "<path_to_mkvmerge>mkvmerge.exe" -o "fixed_%%A" -a !3 --compression -1:none "%%A" |
![]() |
![]() |
![]() |
#5 | Link |
Registered User
Join Date: Oct 2009
Posts: 15
|
Unfortunately, when I used that script, a cmd window just opened and closed. However, no changes were made to the mkv file. This is what the screen looked like:
http://i675.photobucket.com/albums/v...lipboard02.jpg |
![]() |
![]() |
![]() |
#6 | Link | |
Yes, I'm weird.
Join Date: May 2010
Location: Southeast Asia
Posts: 271
|
Quote:
Code:
FOR /F "delims=*" %%A IN ('dir /b *.MKV') DO "<path_to_mkvmerge>mkvmerge.exe" -o "fixed_%%A" -a !3 --compression -1:none "%%A" PAUSE |
|
![]() |
![]() |
![]() |
#8 | Link |
Registered User
Join Date: Jan 2009
Location: Italy
Posts: 108
|
A sidenote: if you're running it inside a cmd shell, substitute %%A with %A (I've just found it out by myself)
__________________
My site www.flapane.com - MY GALLERY - MY Linux/OSX REPOSITORY Ibook 12''1,33ghz 1.5GB 160GB-PC Intel i3-2120@3.3ghz-Galaxy S4 Mini-Sony a6000 16-50 |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|