Video: video tracks are copied lossless from the original source.
Audio: audio is, depending on it's source, either compressed losslessly or copied over, lossy ones are copied, lossless formats are compressed with FLAC with the highest compression setting.
Subtitles: subtitles are losslessly compressed with ZLIB using it's highest compression setting.
FLAC compression options:
-compression_level can be between 1 and 12, 12 being the highest compression.
-lpc_coeff_precision can be between 1 and 15, 15 being the highest compression.
-lpc_passes can be between 1 and about 4 billion, after 8 it starts having worse compression. (tested from 1 to 33 passes, on a 24 bit 48khz sample file, I haven't tested any other bit/sample rate, but if there's demand I will.)
-lpc_type sets the algorithm to use, 3 has the highest compression.
-threads sets how many cpus to use for encoding, change 2 to how many cores your computer has.
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<profile>
<!-- profile name - Perfect -->
<name lang="eng">PERFECT</name>
<!-- Common MKV flags -->
<mkvSettings
ignoreForcedSubtitlesFlag="false"
useISO639Type2T="false"
/>
<!-- Settings overridable in preferences -->
<profileSettings
app_DefaultSelectionString="-sel:all,-sel:(core|special|lossy),-sel:(rus|spa),+sel:(eng|und|nolang),+sel:mvcvideo,+sel:attachment,=100:all,-10:favlang"
/>
<!-- Output formats currently supported by MakeMKV -->
<outputSettings name="copy" outputFormat="directCopy">
<description lang="eng">Copy track 1:1</description>
</outputSettings>
<outputSettings name="FLAC" outputFormat="FLAC">
<description lang="eng">Compress Audio with FLAC</description>
<extraArgs>-threads 2 -compression_level 12 -lpc_coeff_precision 15 -lpc_passes 8 -lpc_type 3</extraArgs>
</outputSettings>
<outputSettings name="zlib" outputFormat="directCopy">
<description lang="eng">Compress subtitles with ZLIB</description>
<extraArgs>compression="zlib" compressionLevel="9"</extraArgs>
</outputSettings>
<!-- Default rule - copy as is -->
<trackSettings input="default">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString,+sel:true"></output>
</trackSettings>
<trackSettings input="Mpeg1">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString,+sel:true"></output>
</trackSettings>
<trackSettings input="Mpeg2">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString,+sel:true"></output>
</trackSettings>
<trackSettings input="Mpeg4">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString,+sel:true"></output>
</trackSettings>
<trackSettings input="VC1">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString,+sel:true"></output>
</trackSettings>
<!-- Lossless Audio -->
<trackSettings input="TRUEHD-stereo">
<output outputSettingsName="FLAC"
defaultSelection="$app_DefaultSelectionString"></output>
</trackSettings>
<trackSettings input="TRUEHD-multi">
<output outputSettingsName="FLAC"
defaultSelection="$app_DefaultSelectionString"></output>
</trackSettings>
<trackSettings input="MLP-stereo">
<output outputSettingsName="FLAC"
defaultSelection="$app_DefaultSelectionString"></output>
</trackSettings>
<trackSettings input="MLP-multi">
<output outputSettingsName="FLAC"
defaultSelection="$app_DefaultSelectionString"></output>
</trackSettings>
<trackSettings input="DTSHDMA-stereo">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString"></output>
</trackSettings>
<trackSettings input="DTSHDMA-multi">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString"></output>
</trackSettings>
<trackSettings input="FLAC-stereo">
<output outputSettingsName="FLAC"
defaultSelection="$app_DefaultSelectionString"></output>
</trackSettings>
<trackSettings input="FLAC-multi">
<output outputSettingsName="FLAC"
defaultSelection="$app_DefaultSelectionString"></output>
</trackSettings>
<trackSettings input="LPCM-stereo">
<output outputSettingsName="FLAC"
defaultSelection="$app_DefaultSelectionString"></output>
</trackSettings>
<trackSettings input="LPCM-multi">
<output outputSettingsName="FLAC"
defaultSelection="$app_DefaultSelectionString"></output>
</trackSettings>
<!-- Lossy Audio -->
<trackSettings input="MP2">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString"></output>
</trackSettings>
<trackSettings input="MP3">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString"></output>
</trackSettings>
<trackSettings input="DTS-stereo">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString"></output>
</trackSettings>
<trackSettings input="DTS-multi">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString"></output>
</trackSettings>
<trackSettings input="DTSHD-core-multi">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString">
</output>
</trackSettings>
<trackSettings input="DTSHD-core-stereo">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString">
</output>
</trackSettings>
<trackSettings input="DTSHD-stereo">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString"></output>
</trackSettings>
<trackSettings input="DTSHD-multi">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString"></output>
</trackSettings>
<trackSettings input="DTSHDLBR-stereo">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString"></output>
</trackSettings>
<trackSettings input="DTSHDLBR-multi">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString"></output>
</trackSettings>
<trackSettings input="AC3-stereo">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString"></output>
</trackSettings>
<trackSettings input="AC3-multi">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString"></output>
</trackSettings>
<trackSettings input="EAC3-stereo">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString"></output>
</trackSettings>
<trackSettings input="EAC3-multi">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString"></output>
</trackSettings>
<!-- Compress subtitles with ZLIB -->
<trackSettings input="PGS">
<output outputSettingsName="zlib"
defaultSelection="$app_DefaultSelectionString"></output>
</trackSettings>
<trackSettings input="PGS-forced">
<output outputSettingsName="zlib"
defaultSelection="$app_DefaultSelectionString"></output>
</trackSettings>
<trackSettings input="VOBSUB">
<output outputSettingsName="zlib"
defaultSelection="$app_DefaultSelectionString"></output>
</trackSettings>
<trackSettings input="VOBSUB-forced">
<output outputSettingsName="zlib"
defaultSelection="$app_DefaultSelectionString"></output>
</trackSettings>
<trackSettings input="VOBSUBHD">
<output outputSettingsName="zlib"
defaultSelection="$app_DefaultSelectionString"></output>
</trackSettings>
<trackSettings input="VOBSUBHD-forced">
<output outputSettingsName="zlib"
defaultSelection="$app_DefaultSelectionString"></output>
</trackSettings>
</profile>
Code: Select all
Changes 1:
Optimized flac compression, moved dtshd and dts express to the lossy section, because they're not lossless, dtshd core is now deselected by default, MVC (3D view of a 3D Blu-ray) is now selected by default
Code: Select all
Changes 2:
removed selection settings from track settings so the selection rules will work correctly.