Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 2.68 KB

README.md

File metadata and controls

33 lines (25 loc) · 2.68 KB

MKVToolNixScriptCollection

a collection of simple windows (command prompt) scripts i currently use to manage my media files (mostly movies/tv shows)

DISCLAIMER: i am not responsible for your files, a misuse of these scripts may overwrite your media, pay attention when you type something, also keep in mind that these scripts work with the idea that the "MKVToolNix" software is installed on your machine and its executables are already added to your PATH variable, a simple google search for "how to add a folder to my windows path" may clarify if you are not familiar with these concept

Scripts List:

0. install.bat

  • you need MKVToolnix installed (should work on both 64/32bit, win7+, tested on win10/64bit) it needs admin privilege to check for your MKVToolNIx installation, add script files there and add everything to path
  • if you don't have MKVToolNIx installed you can download it from here: https://mkvtoolnix.download/downloads.html#windows

1. ALLtoMKV

  • it takes all video files in the current folder and "converts" them into mkv format files (no encoding, just container change) it's useful if you want to make some order in your files list.
  • current considered file formats are:
    • .avi
    • .mp4
    • .flv
    • .mpg
    • .mpeg
    • .rmvb
    • .ts
    • .mov

the usage is just ALLtoMKV typed in your folder with an open command prompt if you have the script in your PATH, otherwise you have to copy it to your working folder to use it

2. mkvAddCover

  • this one is used to add covers to your already existing MKV files (pay attention, it deletes every jpg and png file in the folder after its execution as cleanup) it looks for a generic "cover.jpg" or "cover.png" to add it to all the video files in the working directory, if you have a tv show for example it works good like this, you can also add cover to your movies collection with a structure like "movie_name.mkv" and "movie_name.jpg" where the jpeg file is obviously the cover of the movie, the script will rename the file "cover.jpg", and attach it

the usage is just mkvAddCover typed in your folder with an open command prompt if you have the script in your PATH, otherwise you have to copy it to your working folder to use it

3. toMKV

  • this is just a simple command to pack a single video file into an MKV container, it takes your original file name as a parameter and create an equivalent Matroska file (no encoding, just container change)

the usage is just toMKV filename.ext where filename.ext is a supported video file (it will produce an equivalent filename.mkv) typed in your folder with an open command prompt if you have the script in your PATH, otherwise you have to copy it to your working folder to use it