Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Any Pure Audio/BlueRayAudio Plugin? (Read 29749 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Any Pure Audio/BlueRayAudio Plugin?

Reply #25
If you need it for DTS HD (MA) decoding your better option is to go with Total Media Theatre 5 aka TMT5 and its DTS decoder (dtsdecoderdll.dll).


Hi detmek. here following the message i got:

eac3to v3.27
command line: eac3to.exe  00002.m2ts 5: stdout.wav
------------------------------------------------------------------------------
M2TS, 1 video track, 3 audio tracks, 0:45:58, 24p /1.001
1: Chapters, 10 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: RAW/PCM, 2.0 channels, 24 bits, 96kHz
4: DTS Master Audio, 2.0 channels, 24 bits, 96kHz
  (core: DTS-96/24, 2.0 channels, 24 bits, 1509kbps, 96kHz)
5: TrueHD/AC3, 2.0 channels, 96kHz
  (embedded: AC3, 2.0 channels, 640kbps, 48kHz)
[a05] Extracting audio track number 5...
[a05] Extracting TrueHD stream...
[a05] Decoding with libav/ffmpeg...
[a05] Writing WAV...
[a05] Creating file "stdout.wav"...
[a05] Writing the destination file failed.  <ERROR>
Aborted at file position 5242880.  <ERROR>

There's something wrong in writing the file. I am running Windows 7. Any suggestion?

Any Pure Audio/BlueRayAudio Plugin?

Reply #26
Using the same string under fb2k, it seems to work, but unfortunately does not extract 96KHz 32 bits, but only 48 KHz and 24 bits (???)
Looks like the wrong codec (maybe I need some additional commercial SW -no problem, I am ready to buy it, if really needed-), and the frequency too high.

Any idea?

Any Pure Audio/BlueRayAudio Plugin?

Reply #27
tried again the command from a CLI, and found that a new filename is working. I mean:

eac3to.exe myfile.m2ts 4: BIA.wav

is working good, but the message I got says;

M2TS, 1 video track, 3 audio tracks, 0:45:58, 24p /1.001
1: Chapters, 10 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: RAW/PCM, 2.0 channels, 24 bits, 96kHz
4: DTS Master Audio, 2.0 channels, 24 bits, 96kHz
  (core: DTS-96/24, 2.0 channels, 24 bits, 1509kbps, 96kHz)
5: TrueHD/AC3, 2.0 channels, 96kHz
  (embedded: AC3, 2.0 channels, 640kbps, 48kHz)
a04 The ArcSoft and Sonic decoders don't seem to work, will use libav instead.
a04 The libav DTS decoder doesn't decode the full DTS-HD information.
a04 Extracting audio track number 4...
a04 Extracting DTS core...
a04 Decoding with libav/ffmpeg...
a04 Reducing depth from 64 to 24 bits...
a04 Writing WAV...
a04 Creating file "BIA.wav"...
a04 Clipping detected, a 2nd pass will be necessary.
a04 Original audio track: max 32 bits, average 28 bits, most common 27 bits.
a04 The processed audio track has a constant bit depth of 24 bits.
a04 The libav DTS decoder doesn't decode the full DTS-HD information.
a04 Starting 2nd pass...
a04 Extracting audio track number 4...
a04 Extracting DTS core...
a04 Decoding with libav/ffmpeg...
a04 Reducing depth from 64 to 24 bits...
a04 Writing WAV...
a04 Applying -0.44dB gain...
a04 Creating file "BIA.wav"...
a04 The processed audio track has a constant bit depth of 24 bits.
Video track 2 contains 66120 frames.
eac3to processing took 4 minutes, 46 seconds.
Done.

Do I definitely need that TMT5, then? If you confirm, I will buy it and try again,

Any Pure Audio/BlueRayAudio Plugin?

Reply #28
eac3to should be able to decode TrueHD without any additional decoders as ffmpeg supports it.
In your last example you extracted DTS HD track and ffmpeg has ability do decode only DTS Core. That is why you see those warnings.
The reason why your first cmd line didn't work in cmd but works in foobar is because stdout.wav command does not write phisical file but pipes WAV through STDOUT.
What does MediaInfo says about TrueHD track? Maybe it is not 96kHz but 48kHz, as AC3 core. And it is 24bit, that part is OK.

Any Pure Audio/BlueRayAudio Plugin?

Reply #29
eac3to should be able to decode TrueHD without any additional decoders as ffmpeg supports it.
In your last example you extracted DTS HD track and ffmpeg has ability do decode only DTS Core. That is why you see those warnings.
The reason why your first cmd line didn't work in cmd but works in foobar is because stdout.wav command does not write phisical file but pipes WAV through STDOUT.
What does MediaInfo says about TrueHD track? Maybe it is not 96kHz but 48kHz, as AC3 core. And it is 24bit, that part is OK.



Here you are:

<track type="Audio" streamid="1">
<ID_String>4352 (0x1100)</ID_String>
<MenuID_String>1 (0x1)</MenuID_String>
<Format>PCM</Format>
<Format_Settings_Endianness>Big</Format_Settings_Endianness>
<Format_Settings_Sign>Signed</Format_Settings_Sign>
<MuxingMode>Blu-ray</MuxingMode>
<CodecID>128</CodecID>
<Duration_String>45mn 57s</Duration_String>
<BitRate_Mode_String>Constant</BitRate_Mode_String>
<BitRate_String>4 608 Kbps</BitRate_String>
<Channel_s__String>2 channels</Channel_s__String>
<ChannelPositions>Front: L R</ChannelPositions>
<SamplingRate_String>96.0 KHz</SamplingRate_String>
<BitDepth_String>24 bits</BitDepth_String>
<StreamSize_String>1.48 GiB (28%)</StreamSize_String>
</track>

<track type="Audio" streamid="2">
<ID_String>4353 (0x1101)</ID_String>
<MenuID_String>1 (0x1)</MenuID_String>
<Format>DTS</Format>
<Format_Info>Digital Theater Systems</Format_Info>
<Format_Profile>96/24 / Core</Format_Profile>
<Format_Settings_Mode>16</Format_Settings_Mode>
<Format_Settings_Endianness>Big</Format_Settings_Endianness>
<MuxingMode>Stream extension</MuxingMode>
<CodecID>134</CodecID>
<Duration_String>45mn 57s</Duration_String>
<BitRate_Mode_String>Constant</BitRate_Mode_String>
<BitRate_String>1 509 Kbps</BitRate_String>
<Channel_s__String>2 channels</Channel_s__String>
<ChannelPositions>Front: L R</ChannelPositions>
<SamplingRate_String>96.0 KHz / 48.0 KHz</SamplingRate_String>
<BitDepth_String>24 bits</BitDepth_String>
<Compression_Mode_String>Lossy</Compression_Mode_String>
<StreamSize_String>496 MiB (9%)</StreamSize_String>
</track>

<track type="Audio" streamid="3">
<ID_String>4354 (0x1102)</ID_String>
<MenuID_String>1 (0x1)</MenuID_String>
<Format>TrueHD / AC-3</Format>
<Format_Settings_ModeExtension>CM (complete main)</Format_Settings_ModeExtension>
<Format_Settings_Endianness>Big</Format_Settings_Endianness>
<MuxingMode>Stream extension</MuxingMode>
<CodecID>131</CodecID>
<Duration_String>45mn 57s</Duration_String>
<BitRate_Mode_String>Variable / Constant</BitRate_Mode_String>
<BitRate_String>640 Kbps</BitRate_String>
<BitRate_Maximum_String>3 384 Kbps</BitRate_Maximum_String>
<Channel_s__String>2 channels</Channel_s__String>
<ChannelPositions>Front: C / Front: L R</ChannelPositions>
<SamplingRate_String>96.0 KHz / 48.0 KHz</SamplingRate_String>
<BitDepth_String>16 bits</BitDepth_String>
<StreamSize_String>210 MiB (4%)</StreamSize_String>
</track>

</File>
</Mediainfo>

Any Pure Audio/BlueRayAudio Plugin?

Reply #30
And this is what ffplay says:

Input #0, mpegts, from '00002.m2ts':KB vq=    0KB sq=    0B f=0/0  Duration: 00:45:57.71, start: 11.608967, bitrate: 16461 kb/s
  Program 1
    Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
    Stream #0:1[0x1100]: Audio: pcm_bluray (HDMV / 0x564D4448), 96000 Hz, stereo, s32, 4608 kb/s    nan  :  0.000 fd=  0 aq=    0KB vq=    0KB sq=    0B f=0/0
    Stream #0:2[0x1101]: Audio: dts (DTS-HD MA) ([134][0][0][0] / 0x0086), 48000 Hz, stereo, fltp, 1536 kb/s
    Stream #0:3[0x1102]: Audio: truehd (AC-3 / 0x332D4341), 96000 Hz, stereo, s32
    Stream #0:4[0x1102]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 640 kb/s  19.13 A-V: -0.014 fd=  91 aq=  275KB vq=  327KB sq=    0B f=0/0

I am interested in Stream #0:3[0x1102], that is 96.000, 32 bits (s32)

Where shall I put the dtsdecoderdll.dll?

Any Pure Audio/BlueRayAudio Plugin?

Reply #31
In that case, you probably want to rip out stream 3 (the first audio stream) and convert to FLAC. And since it's pure PCM, you won't need any special decoders, other than either eac3to or ffmpeg.

Any Pure Audio/BlueRayAudio Plugin?

Reply #32
Yes, MediaInfo detects TrueHD track as eac3to. I don't know why eac3to decodes 96kHz TrueHD as 48kHz track.
Try this as regular CMD command, not in foobar:
eac3to.exe 00002.m2ts 5: output.thd
this should extract only TrueHD track, without AC3 core.

kode54 was faster.
Yes, you have PCM stream that you can use. It is the same quality as other lossless streams but you dont need any decoders.
As for dtsdecoderdll.dll, it goes in same folder as eac3to.exe file.

BTW, all streams are 24-bit, not 32-bit, except eac3to does not realy show bitdepth of TrueHD track. Also, ffplay only shows DTS Core as FFMPEG decoder can not decode DTS HD MA part.

Any Pure Audio/BlueRayAudio Plugin?

Reply #33
Yes, MediaInfo detects TrueHD track as eac3to. I don't know why eac3to decodes 96kHz TrueHD as 48kHz track.
Try this as regular CMD command, not in foobar:
eac3to.exe 00002.m2ts 5: output.thd
this should extract only TrueHD track, without AC3 core.

kode54 was faster.
Yes, you have PCM stream that you can use. It is the same quality as other lossless streams but you dont need any decoders.
As for dtsdecoderdll.dll, it goes in same folder as eac3to.exe file.

BTW, all streams are 24-bit, not 32-bit, except eac3to does not realy show bitdepth of TrueHD track. Also, ffplay only shows DTS Core as FFMPEG decoder can not decode DTS HD MA part.


thd file is ready, but how can I read it in fb2k?
How to extract in FLAC directly, as Kode54 says?
The dll is where you said, but eac3to is not recognizing it is there. Shall I add any descriptor? I just copied and pasted.

Any Pure Audio/BlueRayAudio Plugin?

Reply #34
foo_input_dvda has experimental TrueHD support.

You can encode to FLAC by changing extention of output file in cmd. Use output.flac instead of output.thd to encode directly from m2ts file. Or use THD file as source instead of m2ts.

That dll is not used for TrueHD decoding, but only for DTS HD MA decoding. Do you get any warning when you try to decode DTS HD MA stream?

Any Pure Audio/BlueRayAudio Plugin?

Reply #35
Doesn't it decode the TrueHD to 16 bit, though? Why prefer the TrueHD over the raw 24 bit PCM?

Any Pure Audio/BlueRayAudio Plugin?

Reply #36
Doesn't it decode the TrueHD to 16 bit, though? Why prefer the TrueHD over the raw 24 bit PCM?


Dear Kode54, as far as I know, and it is confirmed by ffplay and vlc (but not by eac3to and MediaInfo),
that track is 96.000 and 32 bits, not 24 or 16.

Dear detmek, MediaInfo tried to cheat my browser, I had to remove the default page and the f****ng extension, popping up with advertising at every step!!! How can I believe to a Software doing that? Sorry to say, I will not!

Thanks a lot for your support, guys, I'd like to pay you a pizza and a beer. Where're you living?

Any Pure Audio/BlueRayAudio Plugin?

Reply #37
Ouch. MediaInfo is open source library but it seams that installer includes Open Candy file which is adware. Strange, version without installer does not contain Open Candy dll file. I actually use MediaInfo Lite which I extracted from K-Lite Codec but it can be found on Softpedia and contains only mediainfo.dll and mediainfo.exe file, no adware.

Also, as I mentioned, files are 24-bit, not 32-bit. If ffplay reports 32-bits it means it converts those files from 24-bit to 32-bit. DTS-HD MA and TrueHD support maximum of 24-bit bitdepth and 192kHz samplerate, by format specification.

Any Pure Audio/BlueRayAudio Plugin?

Reply #38
Ouch. MediaInfo is open source library but it seams that installer includes Open Candy file which is adware. Strange, version without installer does not contain Open Candy dll file. I actually use MediaInfo Lite which I extracted from K-Lite Codec but it can be found on Softpedia and contains only mediainfo.dll and mediainfo.exe file, no adware.

Also, as I mentioned, files are 24-bit, not 32-bit. If ffplay reports 32-bits it means it converts those files from 24-bit to 32-bit. DTS-HD MA and TrueHD support maximum of 24-bit bitdepth and 192kHz samplerate, by format specification.


YOU ARE RIGHT!
Format specs are exactly as you said, and the Disc Specs say the same, so... thanks a lot for your support.
In next days I will be comparing the quality to my ears of the 3 files, transformed into PCM thanks to eac3to, with the proper bitrate:
(RAW PCM 96/24, dts_MA to PCM 48/24 and TrueHD/AC3 to PCM 96/24).

Can I say the three above are bit-perfect extraction? Is there any SW to compare bit by bit with the original M2TS audio Tracks?

And maybe, after that, I will be comparing even the quality of the PCM 96/32 obtained forcing fb2K and ffmpeg to convert the original TrueHD track into a wrong 96/32 bit PCM.
Are you interested in my opinion? Would you like to taste some of the above files?

Huh... before I forget... where shall I be looking for the OpenCandy dll and delete it? It is not in the installation folder.

Any Pure Audio/BlueRayAudio Plugin?

Reply #39
Your own MediaInfo report said this about the TrueHD track:

<SamplingRate_String>96.0 KHz / 48.0 KHz</SamplingRate_String>
<BitDepth_String>16 bits</BitDepth_String>

Any Pure Audio/BlueRayAudio Plugin?

Reply #40
Your own MediaInfo report said this about the TrueHD track:

<SamplingRate_String>96.0 KHz / 48.0 KHz</SamplingRate_String>
<BitDepth_String>16 bits</BitDepth_String>


Yes kode54, if I can rely on MediaInfo, then I must say there is a discrepancy in understanding the bit per sample under eac3to.
Just for your info, I found that that track is sounding a little bit better than the others, after extraction, even with that mistake on the bit per sample.
I am keeping the 3 tracks anyway, together with the .m2ts.

I see that fb2k has components to decode AC3 and dts audio track, like foo_input_dvda and foo_input_dts. Is there any chance to use them to extract the related Audio tracks from this m2ts file?

Is there any chance to extract the Audio tracks from the m2ts file "as they are", even using some other software, and then feed fb2k with the single Audio tracks, in their original format?

Any Pure Audio/BlueRayAudio Plugin?

Reply #41
You can use TsMuxeR to extrack individual tracks.


Any Pure Audio/BlueRayAudio Plugin?

Reply #43
You can use TsMuxeR to extrack individual tracks.


OK. And after that? Will I be able to use fb2k to read them?



Great, it is working pretty good, except for the dts track: fb2K is not understanding it the right way, I believe. Or maybe I made some mistake in extraction?
Anyway, now the True Audio track is reproduced at 16 bits, as it had to be.
Thank you for the SW suggestion. This time, no crazy advertdll, wuufff!

Any Pure Audio/BlueRayAudio Plugin?

Reply #44
foo_input_dvda may be able to understand some of those, but I'm not sure. foo_input_dts only supports the lossy part of DTS, and foo_ac3 only supports the lossy part of AC-3, not the TrueHD part.

Any Pure Audio/BlueRayAudio Plugin?

Reply #45
I read somewhere in this forum it has problems but there is foo_input_dtshd also. I use eac3to to extract DTS-HD MA tracks.

Any Pure Audio/BlueRayAudio Plugin?

Reply #46
I read somewhere in this forum it has problems but there is foo_input_dtshd also. I use eac3to to extract DTS-HD MA tracks.


Quote
All the mentioned below is related to current version only.

1. Decoder adds 2048 zero samples before track.
2. Decoder cuts 1-2 seconds at the end of the track.
3. Surround channels are -3dB of what is encoded.
4. Decoder doesn't play DTS9624 streams.


Why not just use the convenient 96/24 PCM stream? That should be lossless already, and should compress nicely with FLAC or whatever other lossless compressor you prefer.

Any Pure Audio/BlueRayAudio Plugin?

Reply #47
I read somewhere in this forum it has problems but there is foo_input_dtshd also. I use eac3to to extract DTS-HD MA tracks.


Quote
All the mentioned below is related to current version only.

1. Decoder adds 2048 zero samples before track.
2. Decoder cuts 1-2 seconds at the end of the track.
3. Surround channels are -3dB of what is encoded.
4. Decoder doesn't play DTS9624 streams.


Why not just use the convenient 96/24 PCM stream? That should be lossless already, and should compress nicely with FLAC or whatever other lossless compressor you prefer.


Yes kode54, I am aware of the above. Now having the single tracks in the 3 original formats, I wanted to compare the 3 different qualities. As I told somewhere before, imho the True Audio track seems to be sounding better than the others, maybe just because it had some different equalization... I don't know the exact reason, but this is my impression.
One issue I found is that it is impossible to write accurate cue sheets for the dts hd and the True Audio tracks, no way to determine timing in a correct and reliable way. Probably because of the variable bitrate?
If you say that eacto is more accurate in decoding the ac3 and the dts tracks, then I can force fb2k to use the command string decoder instead of the buggy ones. But using only the PCM track is not what I am looking for. Do you think I should remove the dts and the dts-hd decoder? Would it be safer? And how to tell fb2k NOT to use DVDA for the ac3 hd decoding, but eac3to? Shall I remove any file association anywhere?

Any Pure Audio/BlueRayAudio Plugin?

Reply #48
If you want to compare quality of 3 different versions why don't you use eac3to to convert DTS-HD MA and TrueHD tracks into WAV or FLAC and experiment with those? Also, FLAC is good as it is more efficient than DTS-HD MA and TrueHD so tracks will be smaller and you can create CUE files for FLAC because seeking through FLAC files works just fine in foobar.
You don't need to decode DTS-HD MA and TrueHD track every time you need to play it.

Any Pure Audio/BlueRayAudio Plugin?

Reply #49
If you want to compare quality of 3 different versions why don't you use eac3to to convert DTS-HD MA and TrueHD tracks into WAV or FLAC and experiment with those? Also, FLAC is good as it is more efficient than DTS-HD MA and TrueHD so tracks will be smaller and you can create CUE files for FLAC because seeking through FLAC files works just fine in foobar.
You don't need to decode DTS-HD MA and TrueHD track every time you need to play it.



Are you sure I won't be missing anything ripping straight  to FLAC? Maybe ripping into PCM (WAV) can be safer, and then into FLAC? After all, reading FLAC files involves some work of expansion, while reading WAV does not involve anything. What is your opinion?

On the other side, it would nice to me to be able to decode dts and Pure Audio on the fly with eac3to and the command line decoder.
Shall I uninstall the other decoders or not?