Page 1 of 1

How to extract only lossless audio of each language?

Posted: Tue Mar 20, 2018 12:13 pm
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!

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

Posted: Tue Mar 20, 2018 1:26 pm
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.

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

Posted: Sun Mar 25, 2018 1:19 am
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 :/

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

Posted: Sun Mar 25, 2018 3:43 am
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...

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

Posted: Mon Mar 26, 2018 11:08 am
by anoy420
So it's impossible? :/

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

Posted: Mon Mar 26, 2018 1:57 pm
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.