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. |
17th July 2020, 10:06 | #1 | Link |
21 years and counting...
Join Date: Oct 2002
Location: Germany
Posts: 716
|
HD-Audio to FLAC, or not?
Up front, please bear with me if this reads more like an essay then a simple question.
Well... this is bothering me for some time now. And I would love to have some input from audio experts. Many moons ago it was almost mandatory to convert HD-Audio tracks to a much smaller and mostly lossy format. Disk space was much more expensive than today, and what's the point in compressing video for space sake if you keep audio tracks that can easily be several GB alone, right? So encoding to DTS/AC3 (or just keeping DTS/AC3 core from HD tracks) was my prefered choice for many years. My AV back then had no HDMI inputs and couldn't handle HD-Audio anyway. Well, a few years ago I upgrade to an HD capable AV-System. Again, the question what to do with audio now. Since the AV receiver was now capable of Multichannel PCM, the decision was obvious to transcode HD-Audio to 16-bit FLAC from now on, instead of lossy DTS/AC3 tracks. It seemed to be the best compromise between file size and quality. A few month ago, merely by accident, I noticed some differences between the original HD-Audio tracks and the transcoded FLAC tracks while having a movie night with friends. The days after I investigated even more movies and came to the conclusion that the source audio tracks kinda sound better. It's hard to describe, sometimes the dynamic sounds better, or the spatial resolution gives me more of the 'you are right in the middle' impression than with the transcoded FLAC. Since then I keep asking myself if it is still a good idea to transcode to FLAC? And I'm wondering if: 1) I'm just imagining things, 2) they just occur because my AV has to use different decoding algorithms for DTSHD/THD/FLAC (and I still haven't found the best matching settings obviously), OR 3) there is any additional information inside DTS/THD tracks besides the plain audio data that gets lost during transcoding to FLAC and therefore may change the acoustic experience? (I'm not talking about object based audio formats like Atmos/DTS:X just 'plain' DTSHD/TrueHD tracks.) You could argue why bother, just keep the source tracks. Well, I still feel uncomfortable by keeping audio tracks that are several GB in size while spending hours on encoding video to get smaller files. Anyhow, thank you for reading and I'm eager to read your thoughts on this. |
17th July 2020, 14:24 | #2 | Link | ||
Acid fr0g
Join Date: May 2002
Location: Italy
Posts: 2,542
|
DTS is not necessarily lossy. DTS-HDMA is lossless, such as some Dolby formats. Even with lossy format you will have no benefit converting them to FLAC: shit in leads to shit out.
Quote:
Quote:
Are you bitstreaming or feeding PCM? 99% FLAC can't be bitstreamed.
__________________
@turment on Telegram |
||
17th July 2020, 14:44 | #3 | Link | ||
21 years and counting...
Join Date: Oct 2002
Location: Germany
Posts: 716
|
When I'm talking lossy DTS I mean DTS(-Core) not the HD formats.
Quote:
Quote:
Typo. I meant PCM of course. |
||
17th July 2020, 15:49 | #4 | Link | |
Acid fr0g
Join Date: May 2002
Location: Italy
Posts: 2,542
|
Quote:
I do convert everything to AC3 because my devices can’t accept any other format and I have some storage requirements, such as I prefer good video more than audio and I process it with FFMPEG to have audio normalization, since I live in a flat and don’t want to wake up my neighborhood at 3 am because of a unexpected explosion. Do not forget that your devices support FLAC now but, as I told you, think about longevity in a 20-30 years time frame if you are a movie collector as I am.
__________________
@turment on Telegram |
|
17th July 2020, 16:25 | #5 | Link | ||
21 years and counting...
Join Date: Oct 2002
Location: Germany
Posts: 716
|
Quote:
Quote:
Looking 20 years back, that was the time before I got my first DVD-R drive. So, like most people I encoded my DVDs to AVI with 'Xvid/DivX or SVCD and split those onto several CDs. You know where these copies are today? In the garbage. All of them. They have been replaced by much better versions in the meantime. So in many years from now, disk space may be so damn cheap that I can remux my vast movie collection on my NAS and don't care about re-encoding at all. But until then I'd like to have the best compromise. Last edited by LeXXuz; 17th July 2020 at 16:29. |
||
17th July 2020, 16:44 | #6 | Link |
Registered User
Join Date: Dec 2008
Location: Germany
Posts: 173
|
But what is stored in Metadarta that makes it sound that much better?
There is still a dialnorm and may be some "Room-type" ... but I dont think that it improves that much, because its all about filtering and filters cant change the sound that much heavily. May be the loudness downmix or playback of the channels are stored in the dts stream, but then its all about leveling when encoded to flac. I mean: Metadata cant improove quality that much, or am I wrong? The basicstream is both the same ... but there are still some filter only available on DTS-Playback. |
17th July 2020, 17:16 | #7 | Link |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,718
|
I think audio enthusiasts prefer direct output anyway, i.e. without any dynamic compression or filtering in the decoder part.
I've never tested decoding a DTS-HD MA track to WAV and comparing it to the WAV track resulting from a FLAC file which was encoded from the DTS-HD MA track. It should be bit identical by nature.
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
17th July 2020, 19:26 | #8 | Link | |||
21 years and counting...
Join Date: Oct 2002
Location: Germany
Posts: 716
|
Quote:
It's not really a loss in quality I've noticed. It's more like the sound stage is shifting to a more upfront position for example. Or the center channel being louder or quiter than in the original track and so on. Anyway, I'm talking nuances here. My wife for example can't hear any difference at all. Quote:
Quote:
So, that's why I started this topic. Because I simply can't explain myself why I hear these tiny differences. That's why I was hoping for someone with a lot of knowledge about HD Audio to put my mind at ease. And either tell me my AVR is just messing with me, or there is indeed some additional data in these tracks that can cause AVR's to produce a slightly different sound characteristic. |
|||
17th July 2020, 19:35 | #9 | Link |
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,890
|
The audio data stored in a DTS-MA is bit-identical to the recoded FLAC.
Other question is how you can config your Audio Receiver to play one stream or other. With the same configuration in your receiver you can't difference both. Also you need a good audio equipment (receiver and speakers, much more than 1000 €) and good ears (golden ears) to difference a DTS-MA from a AC3 640 Kb/s
__________________
BeHappy, AviSynth audio transcoder. |
17th July 2020, 19:39 | #10 | Link |
Acid fr0g
Join Date: May 2002
Location: Italy
Posts: 2,542
|
HD-Audio to FLAC, or not?
To decode DTS to FLAC you need a library, perhaps that one is not the best in the world and the library used on the device to decode DTS is better than the one on your PC.
What do you use to decode DTS and encode in FLAC? If the answer is eac3to, much better you switch to FFMPEG.
__________________
@turment on Telegram |
17th July 2020, 22:50 | #11 | Link |
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,890
|
The libdcadec with eac3to to decode DTS-HD is the same included in ffmpeg (improved in ffmpeg to decode DTS-Express).
The output is bitidentical than the sources used to encode the DTS-MA (tested by me, and better until last bit than ArcSoft decoder with some rounding error).
__________________
BeHappy, AviSynth audio transcoder. |
18th July 2020, 00:18 | #12 | Link |
Life's clearer in 4K UHD
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,219
|
Speaking as somebody who likes listening to surround sound music, I used to re-encode every audio disc format (ie: Lossy DTS and Dolby Digital. Along with lossless DTS-HD MA, Dolby TrueHD and PCM) to FLAC.
Nowadays however, I only re-encode lossless PCM audio to FLAC. All the other audio formats I keep "as is". And place them within the .mka container. And when it comes movie audio formats, I don't bother re-encoding them, I keep those "as is" too
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
|
18th July 2020, 07:57 | #13 | Link | |
Acid fr0g
Join Date: May 2002
Location: Italy
Posts: 2,542
|
Quote:
eac3to libraries are far obsolete.
__________________
@turment on Telegram |
|
18th July 2020, 12:00 | #14 | Link | |
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,890
|
Quote:
The ffmpeg can decode DTS-Express and maybe manage better some errors, but can't improve a bitexact decode. After re-read the first post I see your FLAC encode is only 16-bits, if the source is 24 bits you can listen a difference because the average human ear can difference until a precission of 20 bits
__________________
BeHappy, AviSynth audio transcoder. |
|
18th July 2020, 13:51 | #15 | Link |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,718
|
I'd still say ABX'ing that difference would require a lot of effort - something that won't be possible while watching a movie.
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
18th July 2020, 17:27 | #17 | Link | |
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,890
|
Quote:
v3.30 * libDcaDec is now default for all DTS tracks except XSA / low bitrate
__________________
BeHappy, AviSynth audio transcoder. Last edited by tebasuna51; 18th July 2020 at 17:35. Reason: add info |
|
18th July 2020, 19:52 | #20 | Link | |
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,890
|
Quote:
1) I make some wav (24 int 48000 samplerate) files sources 2) I encode that sources to DTS-MA's 3) Decode the DTS-MA's with eac3to libdcadec 4) Compare the output with sources, for instance with FC /B source1.wav decoded1.wav and they are bitexact.
__________________
BeHappy, AviSynth audio transcoder. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|