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 »

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: 9892
Joined: Sun Jul 24, 2011 11:21 pm

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

Post by Woodstock »

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.
MakeMKV Frequently Asked Questions
How to aid in finding the answer to your problem: Activating Debug Logging
anoy420
Posts: 6
Joined: Tue Mar 20, 2018 11:47 am

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

Post by anoy420 »

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: 9892
Joined: Sun Jul 24, 2011 11:21 pm

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

Post by Woodstock »

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...
MakeMKV Frequently Asked Questions
How to aid in finding the answer to your problem: Activating Debug Logging
anoy420
Posts: 6
Joined: Tue Mar 20, 2018 11:47 am

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

Post by anoy420 »

So it's impossible? :/
Woodstock
Posts: 9892
Joined: Sun Jul 24, 2011 11:21 pm

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

Post by Woodstock »

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.
MakeMKV Frequently Asked Questions
How to aid in finding the answer to your problem: Activating Debug Logging
Post Reply