Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Audio encoding

Reply
 
Thread Tools Search this Thread Display Modes
Old 19th April 2010, 21:04   #1  |  Link
jfromeo
Ed
 
jfromeo's Avatar
 
Join Date: Dec 2009
Location: Madrid, Spain
Posts: 57
[DTS-HD MA/TrueHD/LPCM to FLAC] Lossless?

Good evening.

I'm in the process of dumping and demuxing my BluRay collection and I'd like to ask some questions before doing something wrong (aka not reversible ).

I'm dumping and demuxing my BD collection into my PC HDD, which I intend to use as a HTPC later. I see all the codecs/containers listed above are lossless, that means the resultant audio file will be identical bit-per-bit to its original waveform, right?

That said, I see FLAC allows a greater compression than the rest (especially LPCM) saving quite a lot of space for the same quality. So my intention was to go with FLAC for all my lossless audio tracks, and the questions are:

1) I'm using eac3to, so, would I need a "special" (private/propietary) codec for transcoding the DTS-HD MA/TrueHD/LPCM tracks into FLAC? If so, which one?

2) Is the process reversible? I mean, would I be able to transcode the FLAC audio file to its "original" codec (DTS-HD MA/TrueHD/LPCM) if needed?

3) I'll be using my PC as playback (a so-called HTPC), but I'd be sending the signal to an Onkyo external receiver (TX-NR5007) through HDMI 1.3a. Would it give a "better" sound quality by decoding a DTS-HD MA/TrueHD/LPCM track than a FLAC, or would the sound be absolutely the same?

Thanks everyone.
jfromeo is offline   Reply With Quote
Old 19th April 2010, 21:15   #2  |  Link
Snowknight26
Registered User
 
Join Date: Aug 2007
Posts: 1,430
1. Only for DTS-HD MA. Run eac3to without any arguments.. it'll tell you what you need.
2. Yes (for LPCM at least). The other two require you to spend some serious cash.
3. Lossless is lossless. All of them have to be identical when decoded. Do note though that they're all decoded to LPCM when being sent over HDMI (unless you bitstream).
Snowknight26 is offline   Reply With Quote
Old 19th April 2010, 23:19   #3  |  Link
jfromeo
Ed
 
jfromeo's Avatar
 
Join Date: Dec 2009
Location: Madrid, Spain
Posts: 57
Thanks so much Snownight.

I guess I'll maintain the audio tracks in their respective original codecs then, I'll always have time to convert them to FLAC when needed.

But this lead me to a another side question. I'm using latest eac3to (v3.4) along with the GUI HD-DVD/BDStreamExtractor (v0.7), and when I check a TrueHD audio track, and expand the "Extract as" field, I don't get any *.trueHD extension (or similar), only the AC3 core (among others). Do I need to have installed a propietary codec for demuxing TrueHD tracks? I thought there was no need of codec for demuxing, only for encoding/decoding tasks.

I have no problem with the rest of typical BD audio encoded tracks:

AC3 (*.AC3)


DTS (*.DTS)


DTS-HD MA (*.DTSHD)


LPCM (*.RAW)

But with TrueHD, this is what I get:
jfromeo is offline   Reply With Quote
Old 20th April 2010, 00:48   #4  |  Link
TinTime
Registered User
 
Join Date: Jan 2009
Location: UK
Posts: 403
eac3to certainly allows you to demux TrueHD tracks but it looks like that GUI doesn't. You could try another front end, or give CLI a go.

In fact it looks like THD isn't working for this GUI - see here - but will be added in the future.
TinTime is offline   Reply With Quote
Old 20th April 2010, 01:47   #5  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
A TrueHD/AC3 track have a TrueHD audio and an AC3 audio together.
You can select Extract as: AC3
and write in +Options:
4:"R:\yourpath\yourname.thd"

Then you extract both audios to independent files.

eac3to can join after the two files, or , if you want extract the full thd+ac3 for BD authoring, put in +Options:
4:"R:\yourpath\yourname.thd+ac3"
__________________
BeHappy, AviSynth audio transcoder.

Last edited by tebasuna51; 20th April 2010 at 02:06.
tebasuna51 is offline   Reply With Quote
Old 20th April 2010, 14:08   #6  |  Link
jfromeo
Ed
 
jfromeo's Avatar
 
Join Date: Dec 2009
Location: Madrid, Spain
Posts: 57
Thanks both, I'll wait for another revision of the GUI, as I have tried ClownDB and, although it is able to demux TrueHD tracks, it lacks of DTS-HD demuxing lol
jfromeo is offline   Reply With Quote
Old 20th April 2010, 17:38   #7  |  Link
Snowknight26
Registered User
 
Join Date: Aug 2007
Posts: 1,430
You could always use eac3to without a GUI.
Snowknight26 is offline   Reply With Quote
Old 20th April 2010, 19:34   #8  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,989
Yes, this works very well and only requires a few minutes of head scractching

Here's a sample code, assuming your BD-ROM is your F:\ drive, the playlist in question is #1, track 2 is your 1080p video, and track 3 is your DTS-MA track.

Code:
eac3to f: 1) 2:Video.mkv 3:Audio.dtsma
I would encourage you to do some subjective listening tests of a lossless audio track, and a very good lossy encode, like Nero's AAC encoder on default settings. You will experience a MASSIVE bitrate reduction (i.e. 6mbps for 5.1ch PCM to ~600kbps for 5.1ch AAC), and I think you would be EXTREMELY hard pressed to tell any difference.

That being said, if you're sold on lossless, and have enough storage, more power to you Just a suggestion.

As far as decoding DTS-MA on the PC, you basically have to buy ArcSoft's TMT software. You can't buy the newest version, you have to find a copy of the older version, since newer versions restrict access to its DLLs by third party apps (eac3to). It's about $100 if you can find it somewhere online.

TrueHD can be decoded by libavcodec (in eac3to), and PCM is PCM

~MiSfit
__________________
These are all my personal statements, not those of my employer :)

Last edited by Blue_MiSfit; 20th April 2010 at 19:39.
Blue_MiSfit is offline   Reply With Quote
Old 20th April 2010, 22:38   #9  |  Link
jfromeo
Ed
 
jfromeo's Avatar
 
Join Date: Dec 2009
Location: Madrid, Spain
Posts: 57
Thanks Misfit!

Yeah, I can't hardly tell apart a FLAC from a V0 audio file (I can from a V2/128kbps or lower though with the right equipment), so I guess there would be no difference between the lossless track and a good lossy encode to my ears. But it's more a "philosophy" to maintain the tracks as they were originally encoded, untouched, for each BluRay. Even a LPCM (in raw), although I know encoding it to FLAC for example would make no impact in the waveform, but would reduce it to almost 1/3 its original size.

I'll give the CLI a try. I can always demux every track but the TrueHD one with a GUI, and the TrueHD tracks (which are the ones that are giving me problems) with the CLI right?
jfromeo is offline   Reply With Quote
Old 21st April 2010, 19:00   #10  |  Link
jfromeo
Ed
 
jfromeo's Avatar
 
Join Date: Dec 2009
Location: Madrid, Spain
Posts: 57
The HD-DVD/BDSE GUI included in latest MeGUI supports demuxing TrueHD tracks

But I have a doubt, I am given two options, THD and THD+AC3 Core. The THD one already includes the AC3 core right? I mean, the resultant file is already the lossless track right? No need to extract the AC3 core too and "embed" it to the THD track.
jfromeo is offline   Reply With Quote
Old 21st April 2010, 19:26   #11  |  Link
nurbs
Registered User
 
Join Date: Dec 2005
Posts: 1,460
No, the core is separate from the THD track. They don't depend on each other. You don't need the AC3 track if you just want the lossless track.
nurbs is offline   Reply With Quote
Old 22nd April 2010, 09:50   #12  |  Link
jfromeo
Ed
 
jfromeo's Avatar
 
Join Date: Dec 2009
Location: Madrid, Spain
Posts: 57
Ok thanks. I was asking it as I demuxed a 2h movie TrueHD track and its size was ~1.3GB (and ~600MB the AC3 core), while on DTS-HD a 2h movie rounds ~2GB. Both were 24-bit, 98Khz, 5.1 channels audio (VBR obviously). So I was surprised the THD+AC3 weighed about the same as the DTS-HD track.
jfromeo is offline   Reply With Quote
Old 2nd May 2010, 04:42   #13  |  Link
rahzel
Registered User
 
Join Date: Jul 2005
Posts: 359
DTS-HD MA includes a core audio track so no special extension is required. To demux TrueHD with core AC3, you must use the extension "example.thd+ac3". Of course if you simply just want the core audio, just use the .thd extension.
rahzel is offline   Reply With Quote
Old 2nd May 2010, 10:11   #14  |  Link
jfromeo
Ed
 
jfromeo's Avatar
 
Join Date: Dec 2009
Location: Madrid, Spain
Posts: 57
Quote:
Originally Posted by rahzel View Post
Of course if you simply just want the core audio, just use the .thd extension.
Wouldn't it be .ac3 for the core, .thd for the lossless track and .thd+ac3 for both (pretty useless if you can decode the thd track for me)?
jfromeo is offline   Reply With Quote
Old 3rd May 2010, 01:56   #15  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Yes, is a Rahzel's typo, I suppose.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 3rd May 2010, 03:22   #16  |  Link
rahzel
Registered User
 
Join Date: Jul 2005
Posts: 359
Oops, what I meant to say was, if you just want the HD audio, you can use the .thd extension (or .ac3 for core).
rahzel is offline   Reply With Quote
Old 3rd May 2010, 10:48   #17  |  Link
jfromeo
Ed
 
jfromeo's Avatar
 
Join Date: Dec 2009
Location: Madrid, Spain
Posts: 57
Oh thanks, I almost suffered from a heart attack, as I had already demuxed all my dumps and deleted the original folders
jfromeo is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:53.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.