Hello everyone!
I have searched the web and read many threads from here and I still cannot get anything to work correctly for me when I want to batch remove audio and subs while using mkvmerge v7.5.0.
All I want to remove is Audio = ID 1 and Subtitles = ID 3... Is there a command I can use in the command line that will do this for multiple videos I have or how exactly would I make a batch file to do them all at once? I tried adding all the files at once and unselecting 1 and 3 in their options and when I started muxing all it did was mux one file with tons of different audio and only 1 video track. I'm so lost with all of this -_-
I have been at this for 4-5 hours tonight trying to get something to work and I just don't know anything about commands or batch files to get this to work right.
Thanks for any help it will be greatly appreciated!
+ Reply to Thread
Results 1 to 10 of 10
-
Last edited by haloboyvash; 10th Jan 2015 at 21:51.
-
You need to be using MKVextract instead of MKVmerge to demux the files. I'm not sure you can do that in a batch command. If it's possible, someone here will be able to help.
-
Ok, I downloaded the MKVextract and tried it on one file but it seems to save it as a .OGG and not back to a MKV. It did exactly what I wanted it to do by removing the the tracks I listed. Now If I can get this to do a batch and not save the file as a .OGG I'll have exactly what I need
I also had tried the MKVcleaver which has great batching options and it works, but the files batch into a .OGG as well and all I want is my original file to have audio track #1 and subtitle track #3 removed while retaining it as a .mkvLast edited by haloboyvash; 11th Jan 2015 at 06:50.
-
I've no idea if you saw this thread but it may get you a bit closer to what you're trying to acheive.
BATCH remove audio track from MKV
Edit: Can you not achieve this with mkvmergeGUI? Add files, un-check needed streams, then under the Muxing menu use "Add to job queue", then "Manage jobs" and Start?Last edited by Nu始eus; 11th Jan 2015 at 07:17.
-
I have seen that thread and I'm so green I can't get anything to work. I'm trying it all again just to see if something will work right. Most of the explanations I read are for people with understanding of everything and it's like trying to read Egyptian hieroglyphics for me lol.
-
In that case, surely it's worth avoiding scripting and trying the aforementioned batch processing in mkvmergeGUI.
-
Here is where I am at... I tried my hand at making a batch file from a post in the thread you linked. I made it in the directory of mkvmerge and running it but nothing happens. I have a copy of the .mkv I am trying to fix in the same folder along with the batch and the .exe's but it doesn't do anything but quickly flash this screen when I run it...
-
I also tried downloading Patrick's bat file and running it in the same folder and it doesn't create anything new at all... man this is stumping me pretty good.
-
Success! I finally did it!
Here is what I did and it finally worked. I pulled the MKVmerge.exe out if its directory and put it into a new folder. I then put the .mkv I wanted into the new folder as well. I then dragged and dropped the two batch files I had been trying out to the new folder. Clicked the batch files and it successfully removed the audio track and subtitle track I wanted, I then tried with multiple files and it worked like a charm.
I'm so happy right now
This is the batch command I used and it worked perfectly.
for %%i in (*.mkv) do mkvmerge -o new_folder/"%%i" --atracks 2 --no-subtitles "%%i"Last edited by haloboyvash; 11th Jan 2015 at 08:07.
-
Looks like I'm too late. You might try these batch files to see if they work. I don't have any mkv with subs and two audio files.
Code:for %%a in ("*.mkv") do ffmpeg -i %%a -map 0:0 -map 0:1 -vcodec copy -acodec copy -sn "newfiles\%%~na.mkv"
Code:for %%a in ("*.mkv") do ffmpeg -i %%a -map 0:0 -map 0:2 -vcodec copy -acodec copy -sn "newfiles\%%~na.mkv"