Convert LPCM audio tracks while leaving DTS tracks intact?
Convert LPCM audio tracks while leaving DTS tracks intact?
Is there a way to convert LPCM audio tracks to flac while keeping the DTS-HD or Dolby TrueHD tracks intact? I know I can select the flac profile but then it wants to convert all audio tracks to flac. Many blu-ray discs have LPCM and DTS tracks on the same disc and I would like to convert the LPCM tracks while leaving the DTS tracks alone.
Re: Convert LPCM audio tracks while leaving DTS tracks intac
Edit the profile.
Re: Convert LPCM audio tracks while leaving DTS tracks intac
So there is a way then. But I have no experience editing the profile. How would I do that?
I was hoping there was an easy way, like right-clicking on each audio track and selecting whether to convert or not.
I was hoping there was an easy way, like right-clicking on each audio track and selecting whether to convert or not.
Re: Convert LPCM audio tracks while leaving DTS tracks intac
Save this as pcmflac.mmcp.xml in your MakeMKV directory and then select the PCM->FLAC profile in the program (or set it as default as may be).
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<profile>
<!-- profile name - Default -->
<name lang="eng">PCM->FLAC</name>
<!-- Common MKV flags -->
<mkvSettings
ignoreForcedSubtitlesFlag="true"
useISO639Type2T="false"
setFirstAudioTrackAsDefault="true"
setFirstSubtitleTrackAsDefault="false"
setFirstForcedSubtitleTrackAsDefault="true"
insertFirstChapter00IfMissing="true"
/>
<!-- 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 -->
<!-- Direct Copy -->
<outputSettings name="copy" outputFormat="directCopy">
<description lang="eng">Copy track as is</description>
</outputSettings>
<!-- PCM Output -->
<outputSettings name="lpcm" outputFormat="LPCM-raw">
<description lang="eng">Save as raw LPCM</description>
</outputSettings>
<outputSettings name="wavex" outputFormat="LPCM-wavex">
<description lang="eng">Save as LPCM in WAV container</description>
</outputSettings>
<!-- FLAC Encoding -->
<outputSettings name="flac-fast" outputFormat="FLAC">
<description lang="eng">Save as FLAC (fast compression)</description>
<extraArgs>-compression_level 5</extraArgs>
</outputSettings>
<outputSettings name="flac-best" outputFormat="FLAC">
<description lang="eng">Save as FLAC (best compression)</description>
<extraArgs>-compression_level 12</extraArgs>
</outputSettings>
<outputSettings name="flac-placebo" outputFormat="FLAC">
<description lang="eng">Save as FLAC (placebo compression)</description>
<extraArgs>-compression_level 12 -lpc_coeff_precision 15 -lpc_passes 8 -lpc_type 3</extraArgs>
</outputSettings>
<!-- Subtitle Compression -->
<outputSettings name="copyzlib" outputFormat="directCopy">
<description lang="eng">Copy track as is (zlib compressed)</description>
<mkvTrackSettings compression="zlib" compressionLevel="9" />
</outputSettings>
<!-- AAC Encoding -->
<outputSettings name="aac" outputFormat="AAC">
<description lang="eng">Save as Mpeg-4 AAC-LC</description>
<extraArgs>codec=libfdk_aac profile=LC</extraArgs>
<extraArgs>afterburner=1</extraArgs>
</outputSettings>
<outputSettings name="he-aac" outputFormat="AAC">
<description lang="eng">Save as Mpeg-4 HE-AAC</description>
<extraArgs>codec=libfdk_aac profile=HE-AAC signaling=explicit_sbr</extraArgs>
<extraArgs>afterburner=1</extraArgs>
</outputSettings>
<!-- stereo inputs only -->
<outputSettings name="he-aacv2" outputFormat="AAC">
<description lang="eng">Save as Mpeg-4 HE-AACv2</description>
<extraArgs>codec=libfdk_aac profile=HE-AACv2 signaling=explicit_hierarchical</extraArgs>
<extraArgs>afterburner=1</extraArgs>
</outputSettings>
<outputSettings name="aac-gpl" outputFormat="AAC">
<description lang="eng">Save as Mpeg-4 AAC-LC (ffmpeg encoder)</description>
<extraArgs>codec=aac -strict -2</extraArgs>
<extraArgs>aac_coder=twoloop</extraArgs>
</outputSettings>
<!-- AC3 Encoding -->
<outputSettings name="AC3-192" outputFormat="AC3">
<description lang="eng">Save as AC3 (192kbps)</description>
<extraArgs>-b 192k</extraArgs>
</outputSettings>
<outputSettings name="AC3-224" outputFormat="AC3">
<description lang="eng">Save as AC3 (224kbps)</description>
<extraArgs>-b 224k</extraArgs>
</outputSettings>
<outputSettings name="AC3-448" outputFormat="AC3">
<description lang="eng">Save as AC3 (448kbps)</description>
<extraArgs>-b 448k</extraArgs>
</outputSettings>
<outputSettings name="AC3-640" outputFormat="AC3">
<description lang="eng">Save as AC3 (640kbps)</description>
<extraArgs>-b 640k</extraArgs>
</outputSettings>
<!-- Audio downmix settings -->
<audioMixSettings name="stereo16"
outputBPS="16"
outputChannelLayout="stereo"
mix="DolbyPrologic2">
<description lang="eng">Stereo 16-bit Dolby PrologicII downmix</description>
</audioMixSettings>
<audioMixSettings name="stereo16raw"
outputBPS="16"
outputChannelLayout="stereo"
centerMixLevel="-3dB"
surroundMixLevel="-6dB"
lfeMixLevel="0">
<description lang="eng">Stereo 16-bit downmix</description>
</audioMixSettings>
<audioMixSettings name="16B51"
outputBPS="16"
outputChannelLayout="5.1">
<description lang="eng">6.1 DTS-MA to 16-bit 5.1 (For WDTV Live SMP)</description>
</audioMixSettings>
<!-- 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="lpcm"
defaultSelection="$app_DefaultSelectionString,-sel:all">
</output>
<output outputSettingsName="flac-best"
defaultSelection="$app_DefaultSelectionString">
</output>
</trackSettings>
<!-- Save multi-channel LPCM as FLAC -->
<trackSettings input="LPCM-multi">
<output outputSettingsName="wavex"
defaultSelection="$app_DefaultSelectionString,-sel:all">
</output>
<output outputSettingsName="flac-best"
defaultSelection="$app_DefaultSelectionString">
</output>
</trackSettings>
<!-- Save TRUEHD as FLAC -->
<trackSettings input="TRUEHD-stereo">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString">
</output>
<output outputSettingsName="flac-best"
defaultSelection="$app_DefaultSelectionString,-sel:all">
</output>
</trackSettings>
<trackSettings input="TRUEHD-multi">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString">
</output>
<output outputSettingsName="flac-best"
defaultSelection="$app_DefaultSelectionString,-sel:all">
</output>
</trackSettings>
<trackSettings input="MLP-stereo">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString,-sel:all">
</output>
<output outputSettingsName="flac-best"
defaultSelection="$app_DefaultSelectionString">
</output>
</trackSettings>
<trackSettings input="MLP-multi">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString,-sel:all">
</output>
<output outputSettingsName="flac-best"
defaultSelection="$app_DefaultSelectionString">
</output>
</trackSettings>
<!-- Save DTS-HDMA as FLAC -->
<trackSettings input="DTSHDMA-stereo">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString">
</output>
<output outputSettingsName="flac-best"
defaultSelection="$app_DefaultSelectionString,-sel:all">
</output>
</trackSettings>
<trackSettings input="DTSHDMA-multi">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString">
</output>
<output outputSettingsName="flac-best"
defaultSelection="$app_DefaultSelectionString,-sel:all">
</output>
<output outputSettingsName="flac-best"
defaultSelection="$app_DefaultSelectionString,-sel:all"
audioMix="16B51">
</output>
</trackSettings>
<!-- Save DTS-HD as FLAC -->
<trackSettings input="DTSHD-stereo">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString,-sel:all">
</output>
<output outputSettingsName="flac-best"
defaultSelection="$app_DefaultSelectionString">
</output>
</trackSettings>
<trackSettings input="DTSHD-multi">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString,-sel:all">
</output>
<output outputSettingsName="flac-best"
defaultSelection="$app_DefaultSelectionString">
</output>
</trackSettings>
<!-- Save DTS-HD LBR (low quality) as FLAC (just to decode) -->
<trackSettings input="DTSHDLBR-stereo">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString,-sel:all">
</output>
<output outputSettingsName="flac-best"
defaultSelection="$app_DefaultSelectionString,-sel:all">
</output>
<output outputSettingsName="AC3-192"
defaultSelection="$app_DefaultSelectionString">
</output>
</trackSettings>
<trackSettings input="DTSHDLBR-multi">
<output outputSettingsName="copy"
defaultSelection="$app_DefaultSelectionString,-sel:all">
</output>
<output outputSettingsName="flac-best"
defaultSelection="$app_DefaultSelectionString,-sel:all">
</output>
<output outputSettingsName="AC3-448"
defaultSelection="$app_DefaultSelectionString">
</output>
<output outputSettingsName="AC3-192"
defaultSelection="$app_DefaultSelectionString,-sel:all"
audioMix="stereo16">
</output>
</trackSettings>
<!-- Compress subtitles with ZLIB compression -->
<trackSettings input="PGS">
<output outputSettingsName="copyzlib"
defaultSelection="$app_DefaultSelectionString">
</output>
</trackSettings>
<trackSettings input="PGS-forced">
<output outputSettingsName="copyzlib"
defaultSelection="$app_DefaultSelectionString">
</output>
</trackSettings>
<trackSettings input="VOBSUB">
<output outputSettingsName="copyzlib"
defaultSelection="$app_DefaultSelectionString">
</output>
</trackSettings>
<trackSettings input="VOBSUB-forced">
<output outputSettingsName="copyzlib"
defaultSelection="$app_DefaultSelectionString">
</output>
</trackSettings>
<trackSettings input="VOBSUBHD">
<output outputSettingsName="copyzlib"
defaultSelection="$app_DefaultSelectionString">
</output>
</trackSettings>
<trackSettings input="VOBSUBHD-forced">
<output outputSettingsName="copyzlib"
defaultSelection="$app_DefaultSelectionString">
</output>
</trackSettings>
</profile>
Last edited by ndjamena on Sun Nov 30, 2014 9:31 am, edited 13 times in total.
Re: Convert LPCM audio tracks while leaving DTS tracks intac
Great, thank you very much!
Re: Convert LPCM audio tracks while leaving DTS tracks intac
Well for some reason it doesn't list the profile under the drop-down options for profiles. The file is named pcmflac.mmcp.xml and is in the main program folder. When I click profile I get the same standard list, with no option for the pcm-flac profile.
Re: Convert LPCM audio tracks while leaving DTS tracks intac
Did you get an error message when MakeMKV loaded?
-Edit- I'm using it right how to rip The Avengers. I added HRA to FLAC and am testing it out on an Italian track.
-Edit- I'm using it right how to rip The Avengers. I added HRA to FLAC and am testing it out on an Italian track.
Re: Convert LPCM audio tracks while leaving DTS tracks intac
Nope, no error message - it just won't give me the pcm-flac option.mattias83 wrote:Well for some reason it doesn't list the profile under the drop-down options for profiles. The file is named pcmflac.mmcp.xml and is in the main program folder. When I click profile I get the same standard list, with no option for the pcm-flac profile.
Re: Convert LPCM audio tracks while leaving DTS tracks intac
You need to save it as utf-8, not ANSI. What OS are you using?
Re: Convert LPCM audio tracks while leaving DTS tracks intac
Windows 7 32bit.ndjamena wrote:You need to save it as utf-8, not ANSI. What OS are you using?
Re: Convert LPCM audio tracks while leaving DTS tracks intac
Okay - saved a new file as utf-8 and now it shows up. Thanks again.
Re: Convert LPCM audio tracks while leaving DTS tracks intac
Just tried it - worked perfectly. Thank you again.
Re: Convert LPCM audio tracks while leaving DTS tracks intac
*cough*
I changed the profile to no longer "copy" PCM tracks and added a few things.
I changed the profile to no longer "copy" PCM tracks and added a few things.
-
- Posts: 10
- Joined: Thu Jun 19, 2014 5:41 pm
Re: Convert LPCM audio tracks while leaving DTS tracks intac
Thankyou so much ndjamena
the above .xml file works perfectly for me...
Many, thanks and much appreciation for your help!
the above .xml file works perfectly for me...
Many, thanks and much appreciation for your help!