summaryrefslogtreecommitdiff
path: root/makemkv/makemkvcon.txt
blob: c952a434a2dd152983f070fd1d63d38a5d3e2957 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
makemkvcon [options] Command Parameters

General options:

--messages=file
Output all messages to file. Following special file names are recognized:
-stdout - stdout
-stderr - stderr
-null - disable output
Default is stdout

--progress=file
Output all progress messages to file. The same special file names as in --messages are recognized with additional value "-same" to output to the same file as messages. Naturally --progress should follow --messages in this case. Default is no output.

--debug[=file]
Enables debug messages and optionally changes the location of debug file. Default: program preferences.

--directio=true/false
Enables or disables direct disc access. Default: program preferences.

--noscan
Don't access any media during disc scan and do not check for media insertion and removal. Helpful when other applications already accessing discs in other drives.

--cache=size
Specifies size of read cache in megabytes used by MakeMKV. By default program uses huge amount of memory. About 128 MB is recommended for streaming and backup, 512MB for DVD conversion and 1024MB for Blu-ray conversion.

Streaming options:

--upnp=true/false
Enable or disable UPNP streaming. Default: program preferences.

--bindip=address string
Specify IP address to bind. Default: None, UPNP server binds to the first available address and web server listens on all available addresses.

--bindport=port
Specify web server port to bind. Default: 51000.

Backup options:

--decrypt
Decrypt stream files during backup. Default: no decryption.

Conversion options:

--minlength=seconds
Specify minimum title length. Default: program preferences.

Automation options.

-r , --robot
Enables automation mode. Program will output more information in a format that is easier to parse. All output is line-based and output is flushed on line end. All strings are quoted, all control characters and quotes are backlash-escaped. If you automate this program it is highly recommended to use this option. Some options make reference to apdefs.h file that can be found in MakeMKV open-source package, included with version for Linux. These values will not change in future versions.


Message formats:

Message output
MSG:code,flags,count,message,format,param0,param1,...
code - unique message code, should be used to identify particular string in language-neutral way.
flags - message flags, see AP_UIMSG_xxx flags in apdefs.h
count - number of parameters
message - raw message string suitable for output
format - format string used for message. This string is localized and subject to change, unlike message code.
paramX - parameter for message

Current and total progress title
PRGC:code,id,name
PRGT:code,id,name
code - unique message code
id - operation sub-id
name - name string

Progress bar values for current and total progress
PRGV:current,total,max
current - current progress value
total - total progress value
max - maximum possible value for a progress bar, constant

Drive scan messages
DRV:index,visible,enabled,flags,drive name,disc name
index - drive index
visible - set to 1 if drive is present
enabled - set to 1 if drive is accessible
flags - media flags, see AP_DskFsFlagXXX in apdefs.h
drive name - drive name string
disc name - disc name string

Disc information output messages
TCOUT:count
count - titles count

Disc, title and stream information
CINFO:id,code,value
TINFO:id,code,value
SINFO:id,code,value

id - attribute id, see AP_ItemAttributeId in apdefs.h
code - message code if attribute value is a constant string
value - attribute value


Examples:

Copy all titles from first disc and save as MKV files:
makemkvcon mkv disc:0 all c:\folder

List all available drives
makemkvcon -r --cache=1 info disc:9999

Backup first disc decrypting all video files in automation mode with progress output
makemkvcon backup --decrypt --cache=16 --noscan -r --progress=-same disc:0 c:\folder

Start streaming server with all output suppressed on a specific address and port
makemvcon stream --upnp=1 --cache=128 --bindip=192.168.1.102 --bindport=51000 --messages=-none
bgstack15