mmdtsdec - Error: Failed to open input audio.dts

The place to discuss linux version of MakeMKV
Post Reply
tlpbsd
Posts: 3
Joined: Fri Dec 28, 2012 9:40 pm

mmdtsdec - Error: Failed to open input audio.dts

Post by tlpbsd »

Running MakeMKV 1.7.9 on Linux. Attempting to create an MKV with the FLAC profile resulted in an endless stream of DEBUG errors, so I set the profile to 'default' and successfully created the MKV with the original DTS-HD audio undecoded.

I demuxed this track and attempted to feed it to 'mmdtsdec', but I get this error:
mmdtsdec -d ~/.MakeMKV/dtsdecoderdll.dll audio.dts audio.wav
Error: Failed to open input audio.dts
The Windows version seems to work under wine, although I did get these errors toward the end:
fixme:service:scmdatabase_autostart_services Auto-start service L"ArcSec" failed to start: 2
fixme:process:WTSGetActiveConsoleSessionId stub
fixme:ntdll:NtSetInformationToken unimplemented class 12
fixme:wtsapi:WTSQueryUserToken 0 0x70e8cc
DEBUG: code=000165b2 src=\?."Kwa-ahQ'i0q1Pp:121261681
DEBUG: code=00000000 src=sa0JtbUW]c500tHc:213132123
Error: Failed to decode
The resulting WAV file does appear to be intact, with the appropriate length, so I'm not sure what exactly failed.

Any reason why the Linux version is refusing to even open the DTS file?

Thanks!
mike admin
Posts: 4065
Joined: Wed Nov 26, 2008 2:26 am
Contact:

Re: mmdtsdec - Error: Failed to open input audio.dts

Post by mike admin »

It should work. Do you get any messages with -v flag?

Code: Select all

mmdtsdec -v -d ~/.MakeMKV/dtsdecoderdll.dll audio.dts audio.wav
Please confirm that your input file is a raw demuxed DTS stream.
tlpbsd
Posts: 3
Joined: Fri Dec 28, 2012 9:40 pm

Re: mmdtsdec - Error: Failed to open input audio.dts

Post by tlpbsd »

Nothing changed with -v. Here is some output from MediaInfo (and the mmdtsdec command again). Seems Linux specific, since the Windows version will open it and decode it, even though it says the decode failed at the very end (I've confirmed the resulting Windows mmdtsdec WAV is at very least fully intact, but maybe it's just the core audio?)

I've tried specifying the full path to audio.dts, but nothing changes. The file is readable (rw-r-r) and owned by the user issuing the command.
General
Complete name : audio.dts
Format : DTS
Format/Info : Digital Theater Systems
Format profile : MA / Core
File size : 3.03 GiB
Overall bit rate mode : Variable

Audio
Format : DTS
Format/Info : Digital Theater Systems
Format profile : MA / Core
Mode : 16
Format settings, Endianness : Big
Bit rate mode : Variable
Bit rate : Unknown / 1 509 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 24 bits
Compression mode : Lossless / Lossy


$ mmdtsdec -v -d ~/.MakeMKV/dtsdecoderdll.dll audio.dts linuxout.wav
MakeMKV DTS-HD decoder v1.7.9 linux(x86-release)
Error: Failed to open input audio.dts
$
tlpbsd
Posts: 3
Joined: Fri Dec 28, 2012 9:40 pm

Re: mmdtsdec - Error: Failed to open input audio.dts

Post by tlpbsd »

Works on another movie I just copied with MakeMKV -- first time I've had it work (I think this is the third or fourth disc I've tried). However, it also says 'Failed to decode' at the end, like the Windows version does:
$ mmdtsdec -v -d ~/.MakeMKV/dtsdecoderdll.dll audio.dts audio.wav
MakeMKV DTS-HD decoder v1.7.9 linux(x86-release)
DLL: Channels=6 Bits=24 Rate=48000 Mask=f/63f
DLL: Using DLL version 1.1.0.8@2010/10/19 from /home/tlp/.MakeMKV/dtsdecoderdll.dll
DLL: BUILD DATE = Oct 19 2010,BUILD TIME = 15:06:10,VERSION = 325,REVISION = 27
DLL: Find sync word: 7ffe8001
DLL: Find sync extension: 3f
DLL: Frame #1:
DLL: Decoded audio will be stored in the following files:
DLL: file_L_R.wav for front left channel and front right channel
DLL: file_C_LFE1.wav for center channel and LFE channel
DLL: file_Ls_Rs.wav for srrd left channel and srrd right channel
DLL: Frame #2:
DLL: Frame #3:
DLL: Frame #4:
DLL: Frame #5:
DLL: Frame #6:
DLL: Frame #7:
DLL: Frame #8:
DLL: Frame #9:
DLL: Frame #10:
DLL: Frame #11:
DLL: Frame #12:
DLL: Frame #13:
DLL: Frame #14:
DLL: Frame #15:
DLL: Frame #16:
DEBUG: code=00000000 src=3Pd;cE/Nfp2M{3C]:29395908
Error: Failed to decode
Here are the file sizes:
1.6G audio.dts
2.1G audio.wav
Post Reply