Page 1 of 1

DTS-HD to FLAC conversion fails for "Pan's Labyrinth (2006)"

Posted: Mon Feb 17, 2014 7:45 am
by donmelton
The main title of the U.S. release of "Pan's Labyrinth (2006)" on Blu-ray disc is playlist "00007.mpls" which contains a single DTS-HD MA 7.1 surround audio track in Spanish. Using the "FLAC" profile, selecting that audio track in MakeMKV shows the following:


Track information
Type: Audio
Name: Surround 7.1
Language: Spanish
Codec: DTS-HD Master Audio ? FLAC
Channels: 8
Channel layout: 8 channels (FL+FR+FC+LFE+SL+SR+WL+WR)
Sample rate: 48000
Bits per sample: 24
Output format: FLAC audio ( Lossless conversion )
Output description: Save as FLAC (fast compression)


Please note the peculiar channel layout information.

Ripping the title containing this audio track always fails for me using MakeMKV v1.8.8 and the "FLAC" profile.

The failure happens shortly after the "Analyzing seamless segments" progress bar completes. An error dialog with the message "Copy complete. 0 titles saved, 1 failed." is then displayed.

In the "MakeMKV_log.txt" debug log file are the following set of messages:


005015:0000 Saving 1 titles into directory /Volumes/Extra/Rips/MKVs using profile 'FLAC' from file '/Applications/MakeMKV.app/Contents/MacOS/../Resources/flac.mmcp.xml'
FFENC001: option compression_level=5
DTS001: Using dtsdecoderdll.dll version 1.1.0.8@2010/10/29 from /Users/don/.MakeMKV/dtsdecoderdll.dll
DTS001: Launching /Applications/MakeMKV.app/Contents/MacOS/mmdtsdec
DTS001: MakeMKV DTS-HD decoder v1.8.8 darwin(x86-release)
DTS001: DLL: Channels=8 Bits=24 Rate=48000 Mask=40f/8000060f
DTS001: DLL: Using DLL version 1.1.0.8@2010/10/29 from /Users/don/.MakeMKV/dtsdecoderdll.dll
DTS001: DLL: Streams with wide left/right channels are not supported.
DTS001: DEBUG: code=00000000 src=~e-\9i@bg>7X!O6;:213131640
DTS001: Error: Failed to decode
001003:0020 DEBUG: Code 3250 at 3gjY~RfXKnAU>nFM:29396897
001003:0020 DEBUG: Code 134283265 at E`7<gT{9|;*q!";?k)4<:213137160
001003:0020 DEBUG: Code 0 at E`7<gT{9|;*q!";?k)4<:121268972
001003:0020 DEBUG: Code 134283265 at E`7<gT{9|;*q!";?k)4<:213137160
001003:0020 DEBUG: Code 0 at E`7<gT{9|;*q!";?k)4<:121268972
001003:0020 DEBUG: Code 0 at d;FGuT"{Chn{+}'@_^a.5:213131640
001003:0020 DEBUG: Code 0 at d;FGuT"{Chn{+}'@_^a.5:121265338
001003:0020 DEBUG: Code 0 at aYrzQD--`04J9b):SF=k:213129616
001003:0020 DEBUG: Code 0 at aYrzQD--`04J9b):SF=k:213129869
001003:0020 DEBUG: Code 0 at UAR+-%?A!giGm$gGrO}sP:121262808
001002:0020 LIBMKV_TRACE: Exception: UpdateTrackInfo failed
005003:0000 Failed to save title 2 to file /Volumes/Extra/Rips/MKVs/title02.mkv
005004:0080 0 titles saved, 1 failed
005037:0204 Copy complete. 0 titles saved, 1 failed.


Please note the line reading "Streams with wide left/right channels are not supported."

Here's what else I know:


* There are no playback problems when the disc is accessed by the Macgo software "Blu-ray Player" running on the same machine and drive with which I use MakeMKV.

* I can backup (rather than rip) this disc to my hard drive without any problems.

* I can rip the main title using the "Default" profile without any problems. Obviously that means no audio conversion.

* This appears to be unrelated to the DTS-HD to FLAC conversion crash for "Underworld: Awakening (2012)" that I reported for MakeMKV v1.8.7 and v1.8.8 a few weeks ago.


So, DTS-HD to FLAC conversion fails for "Pan's Labyrinth (2006)" using MakeMKV v1.8.8 and the "FLAC" profile. Does it have something to do with "wide" channels? If so, how common is the problem? If not, any other ideas?

Thanks.

Let me know if you need a complete "MakeMKV_log.txt" file and/or testdump file. I couldn't attach the log to this post because of a "Sorry, the board attachment quota has been reached." error.

Re: DTS-HD to FLAC conversion fails for "Pan's Labyrinth (20

Posted: Mon Feb 17, 2014 12:28 pm
by Romansh
Holy f***, there really are discs out there with this layout…

Re: DTS-HD to FLAC conversion fails for "Pan's Labyrinth (20

Posted: Mon Feb 17, 2014 11:13 pm
by donmelton
Does that reaction mean this is a known problem? Hopefully, it's still fixable.

Re: DTS-HD to FLAC conversion fails for "Pan's Labyrinth (20

Posted: Wed Feb 19, 2014 1:58 am
by Romansh
Well, one issue with this layout is that the channels above 5.1 (Wide Left, Wide Right) cannot be represented in terms of a WAVEFORMATEXTENSIBLE channel mask. Since mmdtsdec decodes to a WAVE file, it could be a problem.

I'll let the developers comment on the fixability of this though.

Re: DTS-HD to FLAC conversion fails for "Pan's Labyrinth (20

Posted: Thu Aug 07, 2014 2:43 am
by etrask
I'm getting this same error from Pan's Labyrinth Blu-Ray, presumably the same version as I'm trying to rip 00007.mpls. I am using MakeMKV 1.8.11 and a version of dtsdecoderdll.dll I got from ArcSoft's TotalMedia Theater a few days ago (presumably version 6.7.1.99 of TMT, don't know what version of the DLL, sorry, I'm on Linux)

Has this been resolved by anyone? I really don't want to keep the audio in DTS-HD MA, and as far as I know FLAC has no problem with 8 channel audio. I'm not familiar enough with the MKV format to know what "WAVEFORMATEXTENSIBLE channel mask" is all about :(

Re: DTS-HD to FLAC conversion fails for "Pan's Labyrinth (20

Posted: Wed Sep 03, 2014 1:41 am
by etrask
I actually noticed something interesting in working with this... when I rip Pan's Labyrinth, instructing MakeMKV to simply copy the DTS-HD MA track, it seems to get downmixed (or at least channels get discarded). ffprobe of the output mkv shows this:
Stream #0:2(spa): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), fltp, 1536 kb/s
Metadata:
title : Surround 7.1
Using mkvextract to extract that track results in a 5.1(side) DTS file too (according to VLC)...

Again, MakeMKV shows the layout as 8 channels (FL+FR+FC+LFE+SL+SR+WL+WR)
ffprobe shows 5.1 (side) as being (FL+FR+FC+LFE+SL+SR)... so its missing WL and WR channels.

Is this because ffmpeg doesn't seem to support that channel layout?

Re: DTS-HD to FLAC conversion fails for "Pan's Labyrinth (20

Posted: Sat Oct 11, 2014 11:01 pm
by tebasuna51
1) ffmpeg can't decode DTS-MA, only the standard DTS 'core' 5.1 can be decoded/recoded.

2) MakeMKV can decode DTS-MA 7.1 if ArcSoft decoder is installed (Preferences -> Advanced -> dtsdecoderdll.dll Location)
But seems fail with this channels layout because don't exist WL-WR channels in PCM formats: http://msdn.microsoft.com/en-us/library ... 85%29.aspx
You can decode it to 8 mono wavs using DTS-HD StreamPlayer.

3) If you have in your audio system 5 front speakers (see Layout 6 in the image attached) the best option is preserve the DTS-MA.
You can't recode it to another losless format like FLAC, only the Layout 1 is supported.
MakeMKV decode the Layout 5 (extrange setup in eac3to) like Layout 1, is not exact but is the best aproach.

Image

4) If you have a standard audio system with 3 front speakers you have two options:
The easy way is extract and use the DTS 'core'
The best way is extract the 8 channels with DTS-HD StreamPlayer, merge the WL channel to FL, the WR to FR with a audio editor, and encode the wavs to a standard 5.1 FLAC.

I can't understand how a BluRay have this channel layout. All audio systems with 3 front speakers must do the remix explained to play the stream.

Re: DTS-HD to FLAC conversion fails for "Pan's Labyrinth (20

Posted: Mon Oct 13, 2014 5:36 pm
by mike admin
Just an addition to an excellent post by tebasuna51 - For a while MakeMKV supports channel layout remapping, so you should be able to downmix to 3.1 or even 5.1 or 7.1 if you configure downmix settings in profile. That was never tested for this scenario though.