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

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 20th September 2014, 08:17   #12801  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Anybody posted this issue to the eac3to bug tracker yet?
madshi is offline  
Old 20th September 2014, 17:07   #12802  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by madshi View Post
Anybody posted this issue to the eac3to bug tracker yet?
Not sure it qualifies as a bug per se. Since the Atmos TrueHD stream is said to be fully backwards compatible (= can be played on regular players), I can only draw the conclusion, that they put the Atmos 'ceiling' channels into the metadata (which receivers are supposed to ignore; which is why this works, I presume).

So, all we really need is a knowledgeable coder (you?!) who will strip off the metadata, so we have a regular TrueHD stream again, right?
__________________
Gorgeous, delicious, deculture!
asarian is offline  
Old 20th September 2014, 17:37   #12803  |  Link
Thunderbolt8
Registered User
 
Join Date: Sep 2006
Posts: 2,197
imho it would be preferable being able to decode the entire stream completely.
__________________
Laptop Lenovo Legion 5 17IMH05: i5-10300H, 16 GB Ram, NVIDIA GTX 1650 Ti (+ Intel UHD 630), Windows 10 x64, madVR (x64), MPC-HC (x64), LAV Filter (x64), XySubfilter (x64) (K-lite codec pack)
Thunderbolt8 is offline  
Old 20th September 2014, 17:50   #12804  |  Link
minhjirachi
Registered User
 
Join Date: Sep 2012
Posts: 110
When I use the command to extract the Dolby Atmos to mono wavs. I get this error:

Code:
eac3to v3.24
command line: eac3to.exe  "trans.4.thd+ac3" Vie.wavs
------------------------------------------------------------------------------
The format of the source file could not be detected.  <ERROR>
I think maybe eac3to can not recognize that TrueHD (Dolby Atmos type).
minhjirachi is offline  
Old 20th September 2014, 17:51   #12805  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,342
Quote:
Originally Posted by Thunderbolt8 View Post
imho it would be preferable being able to decode the entire stream completely.
You can't just "decode" Atmos, thats not how it works, its not comparable to any audio codec you dealt with before. It effectively needs to be rendered based on the configuration of speakers in your room, which means its unlikely to be easily supported by the existing software solutions for a long time to come (first because we have absolutely no idea how the Atmos data is structured, and secondly because we would need a lot of new code and configuration potential to actually be able to render the audio in a 3D space). If you want, consider it "3D Audio", which is fundamentally different than the previous "2D Audio" we used so far.

Regarding getting the original TrueHD stream out, its not that easy, its not just metadata you have to ignore, its properly integrated into the TrueHD codec itself, and will need proper fixing of the decoder.
Its possible that it would work if we had an "official" TrueHD decoder or a specification, but since the ffmpeg/libav TrueHD decoder is practically reverse engineered, it lacks the ability to deal with those streams, for now.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders

Last edited by nevcairiel; 20th September 2014 at 17:56.
nevcairiel is offline  
Old 20th September 2014, 17:59   #12806  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by nevcairiel View Post
Regarding getting the original TrueHD stream out, its not that easy, its not just metadata you have to ignore, its properly integrated into the TrueHD codec itself, and will need proper fixing of the decoder.
Then I wonder how current receivers are able to play the Atmos-enhanced TrueHD stream just fine, if the Atmos data were really a part of the main TrueHD stream. There's obviously some 'easily' discardable info, or current receivers would not be able to pull it off cleanly.
__________________
Gorgeous, delicious, deculture!
asarian is offline  
Old 20th September 2014, 18:44   #12807  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,342
Like I said, if we had the specification of TrueHD, it could tell us what is wrong, but since Dolby is not giving that out, its not that easy.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline  
Old 20th September 2014, 21:10   #12808  |  Link
Thunderbolt8
Registered User
 
Join Date: Sep 2006
Posts: 2,197
Quote:
Originally Posted by nevcairiel View Post
You can't just "decode" Atmos, thats not how it works, its not comparable to any audio codec you dealt with before. It effectively needs to be rendered based on the configuration of speakers in your room, which means its unlikely to be easily supported by the existing software solutions for a long time to come (first because we have absolutely no idea how the Atmos data is structured, and secondly because we would need a lot of new code and configuration potential to actually be able to render the audio in a 3D space). If you want, consider it "3D Audio", which is fundamentally different than the previous "2D Audio" we used so far.

Regarding getting the original TrueHD stream out, its not that easy, its not just metadata you have to ignore, its properly integrated into the TrueHD codec itself, and will need proper fixing of the decoder.
Its possible that it would work if we had an "official" TrueHD decoder or a specification, but since the ffmpeg/libav TrueHD decoder is practically reverse engineered, it lacks the ability to deal with those streams, for now.
well whatever the wording is, what I meant is its rather preferable being able to use 100% of thats whats there compared to stripping something off in order to get just to the normal THD track.

Quote:
Originally Posted by nevcairiel View Post
Like I said, if we had the specification of TrueHD, it could tell us what is wrong, but since Dolby is not giving that out, its not that easy.
maybe the guy knows who told madshi how to deal with the TrueHD track headers back then when there were those THD delay problems because madshi accidentally stripped too much from these tracks.
__________________
Laptop Lenovo Legion 5 17IMH05: i5-10300H, 16 GB Ram, NVIDIA GTX 1650 Ti (+ Intel UHD 630), Windows 10 x64, madVR (x64), MPC-HC (x64), LAV Filter (x64), XySubfilter (x64) (K-lite codec pack)
Thunderbolt8 is offline  
Old 21st September 2014, 02:29   #12809  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,558
Quote:
Originally Posted by nevcairiel View Post
Unless someone fixes the TrueHD decoder in ffmpeg/libav, AND you get a new eac3to version which uses the fixed decoder, there is nothing anyone can do.
Patch posted.
foxyshadis is offline  
Old 21st September 2014, 02:56   #12810  |  Link
Superb
Registered User
 
Join Date: Feb 2010
Posts: 364
Quote:
Originally Posted by foxyshadis View Post
Hendrik Leppkes is nevcairiel...
Superb is offline  
Old 21st September 2014, 03:28   #12811  |  Link
minhjirachi
Registered User
 
Join Date: Sep 2012
Posts: 110
Quote:
Originally Posted by foxyshadis View Post
How to use it?
minhjirachi is offline  
Old 21st September 2014, 03:36   #12812  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by foxyshadis View Post
Hmm, should I just get this Dev version? Can't compile on Windows myself.

And, even though I understand it's just temporary, I would *still* like ffmpeg/eac3to to retain the option to merely extract the TrueHD core (akin to extracting an AC3 core from the TrueHD stream), so as to have something playable/usable on my system.

P.S. Thanks for the speedy patch!
__________________
Gorgeous, delicious, deculture!
asarian is offline  
Old 21st September 2014, 03:43   #12813  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by asarian View Post
... to extracting an AC3 core from the TrueHD stream), so as to have something playable/usable on my system.
The AC3 from the track can be extracted with tsMuxeR, at least with the sample uploaded here.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 21st September 2014, 03:46   #12814  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by tebasuna51 View Post
The AC3 from the track can be extracted with tsMuxeR, at least with the sample uploaded here.
Yes. What I meant, though, is the ability to extract the TrueHD stream, like we extract the AC3 stream now. I have no interest in the AC3 core, of course.
__________________
Gorgeous, delicious, deculture!
asarian is offline  
Old 21st September 2014, 04:36   #12815  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by minhjirachi View Post
How to use it?
Yeah, someone please tell us where this alleged patch resides: the 'posted' patch is just a mailing list post.

I tried the latest binary, and it says:

Code:
c:\eac3to\ffmpeg -i "test.m2ts" -vn -ac 8 -acodec pcm_s24le -f wav c:\video\temp.wav

[truehd @ 02bb57e0] major sync info header checksum error
    Last message repeated 42 times
[NULL @ 02bb57e0] start time for stream 1 is not set in estimate_timings_from_pts
[mpegts @ 02bb9080] Could not find codec parameters for stream 1 (Audio: truehd (AC-3 / 0x332D4341), 0 channels): unspecified sample format
It *does* extract a stream, btw, but, upon conversion (and downmixing) to LPCM, eac3to says:

Code:
Mixing surround channels...
Writing WAV...
Creating file "c:\video\finak.wav"...
Original audio track, L+R+C+LFE+SL+SR: constant bit depth of 24 bits
Original audio track, BL+BR: no audio data.
The processed audio track has a constant bit depth of 24 bits.
__________________
Gorgeous, delicious, deculture!
asarian is offline  
Old 21st September 2014, 05:59   #12816  |  Link
Superb
Registered User
 
Join Date: Feb 2010
Posts: 364
Looking at ffmpeg's git log, the patch wasn't merged in yet... So using the latest precompiled binary won't do you any good.
Superb is offline  
Old 21st September 2014, 06:02   #12817  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,558
Quote:
Originally Posted by Superb View Post
Hendrik Leppkes is nevcairiel...
Oh, I had no idea. Thank you, nev!
foxyshadis is offline  
Old 21st September 2014, 06:02   #12818  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by Superb View Post
Looking at ffmpeg's git log, the patch wasn't merged in yet... So using the latest precompiled binary won't do you any good.
Yeah, I noticed (when I found the log); seems latest compile was yesterday's. Thx.
__________________
Gorgeous, delicious, deculture!
asarian is offline  
Old 25th September 2014, 11:06   #12819  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by Superb View Post
Looking at ffmpeg's git log, the patch wasn't merged in yet... So using the latest precompiled binary won't do you any good.
FYI, new ffmpeg with fix is up!

http://ffmpeg.zeranoe.com/builds/
__________________
Gorgeous, delicious, deculture!
asarian is offline  
Old 28th September 2014, 15:02   #12820  |  Link
JimmyBarnes
the Interrogator
 
JimmyBarnes's Avatar
 
Join Date: Oct 2001
Location: DownUnder
Posts: 664
Quote:
Originally Posted by asarian View Post
FYI, new ffmpeg with fix is up!

http://ffmpeg.zeranoe.com/builds/
Could someone indicate how is this supposed to be used, especially regarding using eac3to convert the Age of Extinction THD+AC3 stream to DTS or AC3.

TIA

Last edited by JimmyBarnes; 28th September 2014 at 15:19.
JimmyBarnes is offline  
Closed Thread

Tags
eac3to

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 17:22.


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