Batch run MakeMKV ? Is it possible ?

Everything related to MakeMKV
Post Reply
Message
Author
PierreLo
Posts: 16
Joined: Sun Feb 01, 2009 3:19 pm

Batch run MakeMKV ? Is it possible ?

#1 Post by PierreLo » Sun Feb 01, 2009 3:33 pm

HI Mike,

on my hard disks, I have a bunch of DVDs that were ripped in VIDEO_TS folders or ISO.
I would like to process them through MakeMKV during the night.
All these ripped DVDs already contain only the audio and subs tracks I need, so I basically don't need to edit anything, just "makemkv" them and generate the mkv file in the same folder where the VIDEO_TS files are located.
Is there any way I could do a batch process with makemkv to process all folders one after the other ? Is there any command-line mode to makeMKV so I could wrote a small script with AutoIT in order to process all my movies like this ?

Thanks a lot for your help

PierreLo 8)

mike admin
Posts: 4075
Joined: Wed Nov 26, 2008 2:26 am
Contact:

Re: Batch run MakeMKV ? Is it possible ?

#2 Post by mike admin » Tue Feb 03, 2009 9:57 am

Pierrelo,

Launch makemkvcon.exe insted of standard makemkv.exe, this is it!

PierreLo
Posts: 16
Joined: Sun Feb 01, 2009 3:19 pm

Re: Batch run MakeMKV ? Is it possible ?

#3 Post by PierreLo » Tue Feb 03, 2009 1:34 pm

Thanks Mike, this is good news.

But are there any command-line parameters to this makemkvcon.exe ?
For example, to specify input drive letter or input folder and output file name and location ?

Thanks :)

PierreLo

tyborg
Posts: 11
Joined: Fri Jan 09, 2009 11:09 pm

Re: Batch run MakeMKV ? Is it possible ?

#4 Post by tyborg » Tue Feb 03, 2009 3:21 pm

You can get the following from a command prompt window by just running makemkvcon.exe with out any parameters.

Code: Select all

Microsoft Windows [Version 6.0.6000]
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

C:\Program Files\MakeMKV>makemkvcon.exe
Use: makemkvcon [switches] Command [Parameters]

Commands:
  info <source>
      prints info about disc
  mkv <source> <title id> <destination folder>
      saves a single title to mkv file

Source specification:
  iso:<FileName>    - open iso image FileName
  file:<FolderName> - open files in folder FolderName
  disc:<DiscId>     - open disc with id <DiscId> (see list Command)

C:\Program Files\MakeMKV>
I don't understand what is needed here though for Disc ID. When I use the folder command line it crashes makemkvcon.exe and gives the following output in the command prompt window.

Code: Select all

C:\Program Files\MakeMKV>makemkvcon.exe info file:H:\DVDIMAGES\DanInRealLife\VIDEO_TS
Current action: Scanning CD-ROM devices
Current progress - 0%  , Total progress - 0%
Current progress - 0%  , Total progress - 0%
Current progress - 100%  , Total progress - 0%
Current progress - 100%  , Total progress - 100%
Current progress - 0%  , Total progress - 100%
Current progress - 0%  , Total progress - 0%
Current action: Pre-calculating data
Current progress - 0%  , Total progress - 0%
Current progress - 0%  , Total progress - 0%
Current action: Processing AV clips

C:\Program Files\MakeMKV>
Being able to run MakeMKV from the commandline would be awesome in the future, but it looks like it needs some improvement before that it possible.

PierreLo
Posts: 16
Joined: Sun Feb 01, 2009 3:19 pm

Re: Batch run MakeMKV ? Is it possible ?

#5 Post by PierreLo » Tue Feb 03, 2009 3:34 pm

Thanks tyborg.

Couldn't test it as I am at work now.
I will do some tests later tonight

PierreLo 8)

Steff
Posts: 2
Joined: Tue May 05, 2020 2:07 pm

Re: Batch run MakeMKV ? Is it possible ?

#6 Post by Steff » Tue May 05, 2020 2:17 pm

How I do it :

1)
To be able to eject a disk in Windows :
download wizmo and put in the target folder (here in o:\DVDRIP\auto)
https://www.grc.com/WIZMO/WIZMO.HTM
test the command
wizmo open
it should open the DVD tray

2)
check location of the program
"C:\Program Files (x86)\MakeMKV\makemkvcon64.exe"

3)
check disk info (if no disk it can generate error but will help confirm if that's the right disk ID, here 0)
"C:\Program Files (x86)\MakeMKV\makemkvcon64.exe" -r info disc:0

4)
the default option come from the GUI
a)
set UI language to english (not default), as that will also be the language for the cmd line output if your windows is not english ()
b)
check the expert mode option and change to
+sel:all,-sel:mvcvideo,=100:all,-10:favlang

(
from
https://www.makemkv.com/forum/viewtopic ... 4386&__c=1
https://www.makemkv.com/forum/viewtopic ... 1435&__c=1
)

4)
on the following block of command
change if needed the
300 (skip track less than 300 sec = 5 min)
two paths in 3rd and 4th command (target dir, here o:\DVDRIP\auto)
disk ID, here disc:0
always change the DVD title and disk on the 5th command, here xxxx_DVD1
"{title}_{disk} - %a"

1st cmd : close tray
2nd cmd : wait more or less 20 sec
3rd cmd : move to the target directory
4th cmd : rip to MKV (options from
5th cmd : rename
6th cmd : eject

(
rip cmd samples, thanks to
https://shkspr.mobi/blog/2012/02/comman ... -for-dvds/
https://www.makemkv.com/developers/usage.txt
)

5)
launch cmd
copy this block of command (without the lines ===), past in cmd

6)
after eject, change the DVD, change the xxxx_DVD1, copy past in cmd ...repeat
=================================================================

wizmo close

PING localhost -n 20 >NUL

cd /d o:\DVDRIP\auto

"C:\Program Files (x86)\MakeMKV\makemkvcon64.exe" --minlength=300 --decrypt --directio=true mkv disc:0 all o:\DVDRIP\auto

for %a in (title_t*.mkv) do ren "%a" "xxxx_DVD1 - %a"

wizmo open

=================================================================

Steff
Posts: 2
Joined: Tue May 05, 2020 2:07 pm

Re: Batch run MakeMKV ? Is it possible ?

#7 Post by Steff » Sat May 09, 2020 3:25 pm

if you don't want all the intermediate data to be written to disk and have enough memory you can replace
--directio=true
by
--cache=2048

in my command line
"C:\Program Files (x86)\MakeMKV\makemkvcon64.exe" --minlength=300 --decrypt --directio=true mkv disc:0 all o:\DVDRIP\auto

so
"C:\Program Files (x86)\MakeMKV\makemkvcon64.exe" --minlength=300 --decrypt --cache=2048 mkv disc:0 all o:\DVDRIP\auto

Post Reply