How to extract only lossless audio of each language?

The place to discuss linux version of MakeMKV
Post Reply
anoy420
Posts: 6
Joined: Tue Mar 20, 2018 11:47 am

How to extract only lossless audio of each language?

Post by anoy420 » Tue Mar 20, 2018 12:13 pm

Hi...

I have noticed that for some reason my script is only extracting the lossy audios... Is there a way to do the contrary? Extract only 1 lossless audio track for each language?

My current script is this

Code: Select all

  makemkvcon mkv iso:"$file" all --minlength=3600 "$1"
Thanks!

Woodstock
Posts: 10333
Joined: Sun Jul 24, 2011 11:21 pm

Re: How to extract only lossless audio of each language?

Post by Woodstock » Tue Mar 20, 2018 1:26 pm

You can change the default selection rule to favor lossless. I can't give you that string, because I use a string to extract ALL audio.

anoy420
Posts: 6
Joined: Tue Mar 20, 2018 11:47 am

Re: How to extract only lossless audio of each language?

Post by anoy420 » Sun Mar 25, 2018 1:19 am

Woodstock wrote:You can change the default selection rule to favor lossless. I can't give you that string, because I use a string to extract ALL audio.
I have no idea on how to do that :/

Woodstock
Posts: 10333
Joined: Sun Jul 24, 2011 11:21 pm

Re: How to extract only lossless audio of each language?

Post by Woodstock » Sun Mar 25, 2018 3:43 am

Actually, working strictly with the command line, default selection strings aren't going to matter; the GUI calls the CLI to get the disk track information, applies the selection rules, and then builds a command line to get those tracks with the CLI.

And /developers/usage.txt doesn't really cover what you're looking for...

anoy420
Posts: 6
Joined: Tue Mar 20, 2018 11:47 am

Re: How to extract only lossless audio of each language?

Post by anoy420 » Mon Mar 26, 2018 11:08 am

So it's impossible? :/

Woodstock
Posts: 10333
Joined: Sun Jul 24, 2011 11:21 pm

Re: How to extract only lossless audio of each language?

Post by Woodstock » Mon Mar 26, 2018 1:57 pm

Not impossible; the information IS available, but it is a multi-part process. Your script has to do the work of the GUI interface, which means you have to call the CLI to get the information to know what is on the disk, parse it to find which tracks you CAN chose, apply your rules to it, and then call the CLI with a command line to fetch the tracks you want.

Complicating it is that they CLI is not documented to the level necessary to do this without a lot of manual work, locating the "hidden command switches", and testing them to verify how they work. I haven't bothered to go to that point, but others have.

http://makemkv.com/forum2/viewtopic.php?f=10&t=9345 is one such effort, and it might provide some insight to your question.

Post Reply