This lists the drives as makemkvcon sees them.
- List drives - DRV:index,visible,enabled,flags,drive name,disc name
`makemkvcon --robot --cache=1 info disc:9999`
| Option |
Description |
--robot |
Meant for automation, tells the program to output the information to the screen |
--cache=1 |
Reduce the cache size (optional) |
info |
The sub-command to print information |
disc:9999 |
Show discs (not files, etc.) |
The output looks something like:
MSG:1005,0,1,"MakeMKV v1.18.2 linux(x64-release) started","%1 started","MakeMKV v1.18.2 linux(x64-release)"
DRV:0,2,999,1,"DVD+R-DL HL-DT-ST DVDRAM GSA-T50N RQ01 KWF9AEJ1028","MAD_MAX_FURY_ROAD","/dev/sr0"
With more lines below it. The second line is the one I'm interested in. It has the format:
DRV:index,visible,enabled,flags,drive name,disc name
This table shows what their text file says the fields mean.
| Field |
Description |
| DRV |
This is a drive |
| index |
The number we'll use to refer to the drive |
| visible |
1 if drive is present |
| enabled |
1 if drive is accessible |
| flags |
media flags (see AP_DskFsFlagXXX in apdefs.h) |
| drive name |
drive name string |
| disc name |
disc name string |
Looking at the sample output, it has 2 for "visible" and 999 for "enabled", which doesn't match the expected values so I just ignore everything but the drive name to find the right entry in the output and the index for use in invoking makemkvcon.