Giter Site home page Giter Site logo

Extra files about mkvtoolnix-batch HOT 3 OPEN

Braciata avatar Braciata commented on August 22, 2024
Extra files

from mkvtoolnix-batch.

Comments (3)

seanmcnally98 avatar seanmcnally98 commented on August 22, 2024

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.

Braciata avatar Braciata commented on August 22, 2024

from mkvtoolnix-batch.

TheVainOrphan avatar TheVainOrphan commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.