[Feature Request] CLI - multiple selected titles

Discussion of advanced MakeMKV functionality, expert mode, conversion profiles
d00zah
Posts: 1586
Joined: Mon Jun 06, 2016 8:23 pm

Re: [Feature Request] CLI - multiple selected titles

Post by d00zah »

IIRC, this low-level functionality was requested/implemented so that users could write their own scripts, where the script itself was expected to parse the output & construct the desired (individual) command lines. If you are expecting higher-level functionality, I would bet you MAY be waiting a long time (although I do not presume to speak for Mike).
plittlefield
Posts: 68
Joined: Wed May 10, 2017 11:04 am

Re: [Feature Request] CLI - multiple selected titles

Post by plittlefield »

d00zah wrote:
Fri Jul 12, 2019 10:15 pm
IIRC, this low-level functionality was requested/implemented so that users could write their own scripts, where the script itself was expected to parse the output & construct the desired (individual) command lines. If you are expecting higher-level functionality, I would bet you MAY be waiting a long time (although I do not presume to speak for Mike).
Thanks for your reply d00zah, much appreciated.

This begs 2 questions...
  • How does the GUI work "under the hood" when you tick boxes and select tracks 2,3 from the DVD disc?
  • What does the command line software makemkvcon do exactly when you choose "all" as the parameter for which tracks to rip?
If makemkvcon keeps a list of tracks to rip (in an array?) when you choose "all", surely (at least to my 51 year old mind) it cannot be too hard to write a subroutine to parse a list of tracks supplied as '2,3'?

Hopefully, Mike will reply and give us the answer so I can stop nagging!

Have a nice weekend :-)

Regards,

Paully

PS: thanks Mike for all your hard work on this software... it is the second best £50 I have ever spent! (the first was a tandem skydive out of a plane above New Zealand but that's another story!)
plittlefield
Posts: 68
Joined: Wed May 10, 2017 11:04 am

Re: [Feature Request] CLI - multiple selected titles

Post by plittlefield »

Hello fellow Linux users,

I wrote this...

Code: Select all

#!/bin/bash

#
# cli wrapper for makemkv to rip selected titles
#

# change to home directory
cd;

# read disc to show titles
lsdvd -q;

# ask which titles
read -p "Which titles? " TITLES;

# show chosen titles
echo "$TITLES";

# load titles in to an array
titles_array=($TITLES);

# show array
echo "${titles_array[@]}"

# process each title
for title in "${titles_array[@]}";
do
    # echo "makemkvcon mkv disc:0 $title ./"
    makemkvcon mkv disc:0 $title ./ 
    sleep 3s;
done;

# finish
exit;
..hope you find it useful.

Please tweak as required. Comments and suggestions welcome.

Regards,

:-)

Paully
plittlefield
Posts: 68
Joined: Wed May 10, 2017 11:04 am

Re: [Feature Request] CLI - multiple selected titles

Post by plittlefield »

Any news?

In the meantime...

Code: Select all

for n in 1 2 3 4 5 6 7; do makemkvcon mkv disc:0 $n /tmp/; done;
;-)

Paully
yayameen
Posts: 2
Joined: Sat Jan 25, 2020 5:02 am

Re: [Feature Request] CLI - multiple selected titles

Post by yayameen »

This request has been floating around forever and may never be supported, but it should be noted that some discs take a long time to decrypt. They can take hours to copy, 1 title at a time. For now, the best thing to do is actually take all titles and figure it out later. On a Blu-ray, this could be prohibitive in terms of time and space. Alternatively, if the decryption result could be stored, then people could work around the issue using the methods proposed in this thread.
plittlefield
Posts: 68
Joined: Wed May 10, 2017 11:04 am

Re: [Feature Request] CLI - multiple selected titles

Post by plittlefield »

The simple questions remain…

Why can you select multiple titles in the GUI?

If you select 3 titles in the GUI why does the output say “Saving 3 titles to directory”?

If anyone here can give me a simple answer, I’ll close the post.
Post Reply