Comments (3)
So I found this issue after googling around with the same problem. I didn't wind up using this script verbatim, but wrote my own from cobbling together different pieces of code. Here's what I came up with:
for %%A IN (*.m2v) do ( "C:\Program Files\MKVToolNix\mkvmerge.exe" -o "%%~nA.mkv" "%%~A" --language "0:eng" "%%~nA.ac3" --language "0:eng" )
This takes all the .m2v files and .ac3 files that have the same name and muxes them together, and assigns the language "english". If you need a different language, you can figure out the code by applying it within the GUI then going to Multiplexer > Show Command Line (for example, Italian is ita)
Quick breakdown of how it works:
for %%A IN (*.m2v) says that for every .m2v file, do the following thing.
It calls up the MKVmerge.exe file (be sure to replace that path with your own), and sets up an output file (by using -o) and names it"%%~nA.mkv" What that means is %%~nA will call up the file name from the current m2v file. So, if you're dealing with a video file called Episode 1.m2v, these lines will start creating Episode 1.mkv.
Now, that we've started our output file and given it a name, we need to add the source files. First the video - "%%~A", followed by the language we want, then we look for an audio file with the same name and the extension .ac3 - "%%~nA.ac3", and we give that a language as well.
And that's it! Hope that helped!
from mkvtoolnix-batch.
from mkvtoolnix-batch.
Will this work with .ass files as the subtitle files? Also. is this code entered into the bat? sorry a little new to this and confused. I've also set up @Serede 's code and it works, just wondering how to implement your workaround for external files (in my case, .mkv and .ass files)
from mkvtoolnix-batch.
Related Issues (13)
- External files HOT 3
- changing directory path without opening the selector windows
- can anybody post a video tuts on this ?
- Does this work with .ass files?
- Wrong Repo
- ... HOT 2
- Muxing same subs over and over HOT 1
- Adding 2 subtitles failed HOT 1
- Json error
- Any way to make the batch merge similar name subs? HOT 1
- The file '2' could not be opened for reading: open file error. HOT 1
- Doubles the audio tracks and subtitles HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mkvtoolnix-batch.