Convert LPCM->FLAC, leave DTS-HD MA & TrueHD untouched

Discussion of advanced MakeMKV functionality, expert mode, conversion profiles
Post Reply
paulster
Posts: 200
Joined: Sat Aug 20, 2011 6:54 pm

Convert LPCM->FLAC, leave DTS-HD MA & TrueHD untouched

Post by paulster »

I haven't played with custom conversion profiles yet as I really haven't had the need to, but now that MakeMKV can handle 24-bit FLAC conversion I'm wondering whether it's possible to set it to convert only LCPM tracks to FLAC, but to leave any DTS-HD (HRA or MA) and TrueHD tracks in their native format.

Since I extract more than one audio language from my discs generally I don't want everything ended up getting converted to FLAC.
Romansh
Posts: 873
Joined: Sat Jan 22, 2011 7:09 pm

Re: Convert LPCM->FLAC, leave DTS-HD MA & TrueHD untouched

Post by Romansh »

MakeMKV.app/Contents/Resources/flac.mmcp.xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<profile>
    <!-- profile name - Default -->
    <name lang="eng">FLAC</name>

    <!-- Common MKV flags -->
    <mkvSettings 
        ignoreForcedSubtitlesFlag="true"
        useISO639Type2T="false"
    />

    <!-- Settings overridable in preferences -->
    <profileSettings
        app_DefaultSelectionString="-sel:all,+sel:(favlang|nolang),+sel:lossless,-sel:(havemulti|havelossless),-sel:mvcvideo,=100:all,-10:favlang"
    />

    <!-- Output formats currently supported by MakeMKV -->
    <outputSettings name="copy" outputFormat="directCopy">
        <description lang="eng">Copy track as is</description>
        <description lang="ger">Track 1:1 kopieren</description>
    </outputSettings>

    <outputSettings name="lpcm" outputFormat="LPCM-raw">
        <description lang="eng">Save as raw LPCM</description>
        <description lang="ger">Als RAW LPCM speichern</description>
    </outputSettings>

    <outputSettings name="wavex" outputFormat="LPCM-wavex">
        <description lang="eng">Save as LPCM in WAV container</description>
        <description lang="ger">Als LPCM im WAV-Container speichern</description>
    </outputSettings>

    <outputSettings name="flac-best" outputFormat="FLAC">
        <description lang="eng">Save as FLAC (best compression)</description>
        <description lang="ger">Als FLAC speichern (h?chste Komprimierungsstufe)</description>
        <extraArgs>-compression_level 12</extraArgs>
    </outputSettings>

    <outputSettings name="flac-fast" outputFormat="FLAC">
        <description lang="eng">Save as FLAC (fast compression)</description>
        <extraArgs>-compression_level 5</extraArgs>
    </outputSettings>

    <!-- Default rule - copy as is -->
    <trackSettings input="default">
        <output outputSettingsName="copy" 
                defaultSelection="$app_DefaultSelectionString">
        </output>
    </trackSettings>

    <!-- Save LPCM mono or stereo as FLAC -->
    <trackSettings input="LPCM-stereo">
        <output outputSettingsName="flac-fast"
                defaultSelection="$app_DefaultSelectionString">
        </output>
    </trackSettings>

    <!-- Save multi-channel LPCM as FLAC -->
    <trackSettings input="LPCM-multi">
        <output outputSettingsName="flac-fast"
                defaultSelection="$app_DefaultSelectionString,+sel:true">
        </output>
    </trackSettings>

    <!-- Save TRUEHD as FLAC -->
    <trackSettings input="TRUEHD-stereo">
        <output outputSettingsName="flac-fast"
                defaultSelection="$app_DefaultSelectionString,+sel:true">
        </output>
    </trackSettings>
    <trackSettings input="TRUEHD-multi">
        <output outputSettingsName="flac-fast"
                defaultSelection="$app_DefaultSelectionString,+sel:true">
        </output>
    </trackSettings>

    <!-- Save DTS-HD as FLAC -->
    <trackSettings input="DTSHDMA-stereo">
        <output outputSettingsName="flac-fast"
                defaultSelection="$app_DefaultSelectionString,+sel:true">
        </output>
    </trackSettings>
    <trackSettings input="DTSHDMA-multi">
        <output outputSettingsName="flac-fast"
                defaultSelection="$app_DefaultSelectionString,+sel:true">
        </output>
    </trackSettings>

    <!-- Save DTS-HD LBR (low quality) as FLAC (just to decode) -->
    <trackSettings input="DTSHDLBR-stereo">
        <output outputSettingsName="flac-fast"
                defaultSelection="$app_DefaultSelectionString">
        </output>
    </trackSettings>
    <trackSettings input="DTSHDLBR-multi">
        <output outputSettingsName="flac-fast"
                defaultSelection="$app_DefaultSelectionString">
        </output>
    </trackSettings>

</profile>
Change the TrueHD and DTS-HD rules from outputSettingsName="flac-fast" to outputSettingsName="copy" or simply remove them (in which case the input="default" rule applies).
paulster
Posts: 200
Joined: Sat Aug 20, 2011 6:54 pm

Re: Convert LPCM->FLAC, leave DTS-HD MA & TrueHD untouched

Post by paulster »

Thanks. I'll have a look at that later.
paulster
Posts: 200
Joined: Sat Aug 20, 2011 6:54 pm

Re: Convert LPCM->FLAC, leave DTS-HD MA & TrueHD untouched

Post by paulster »

That worked perfectly. I just added a third profile for LPCM->FLAC that left TrueHD and DTS-HD alone so I could use either of the standard profiles or my own.

Works great!
Post Reply