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 5th November 2022, 01:14   #261  |  Link
Balling
Registered User
 
Join Date: Feb 2020
Posts: 552
"The core 1509 Kb/s is accepted to be passed by SPDIF"

Also a bug: https://trac.ffmpeg.org/ticket/7730#comment:1
Balling is offline   Reply With Quote
Old 31st January 2023, 11:52   #262  |  Link
Balling
Registered User
 
Join Date: Feb 2020
Posts: 552
Quote:
Originally Posted by Balling View Post
BTW. Be careful with leaked Dolby media encoder. It does not produce lossless TrueHD with stereo wav (it is mostly lossless though, I tried Plex decoder of TrueHD and ffmpeg's), did not check what happens with leaked Encoding Engine.
Oh, god. I just tried all 0xFF from infamous issue: https://trac.ffmpeg.org/ticket/5054 and it did not produce even close to lossless binary. LOL!! Also "Optimize data rate" further corrupts it, apparently??? LOL. Not to mention that the file is bigger than with Dolby Media Encoder SE (standalone edition), the previous version of this app...

Anyway, DEE is lossless but bigger than DME SE, so whatever.

Last edited by Balling; 11th April 2023 at 19:55.
Balling is offline   Reply With Quote
Old 31st January 2023, 13:27   #263  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 7,113
Please Balling this thread is not for ffmpeg DTS or THD bugs, is for eac3 7.1 encoders.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 31st January 2023, 16:52   #264  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,260
Quote:
Originally Posted by tebasuna51 View Post
Please Balling this thread is not for ffmpeg DTS or THD bugs, is for eac3 7.1 encoders.
Agreed... How about splitting all the DTS Q&A's out of this topic into their own topic?
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |

Last edited by SeeMoreDigital; 31st January 2023 at 22:13.
SeeMoreDigital is online now   Reply With Quote
Old 4th March 2023, 06:28   #265  |  Link
Balling
Registered User
 
Join Date: Feb 2020
Posts: 552
Apparently EAC3 from Youtube app only works on my Galaxy S22 Ultra if it has Atmos action icon enabled. Nice. In fact if you disable it app switches to opus seamlessly, ON THE FLY. Nuts, Google knows how to code?! Tested on the new infamous video: https://youtu.be/MbdVuStrEV8

Also, apparently mp4 files must have special secret spatial atom for atmos to be recognized on Android https://trac.ffmpeg.org/ticket/9996#comment:5
No, ffmpeg does not write it, but since these two commits it now recognizes atmos EAC3 JOC and TrueHD which allows to write code for this issue.

https://github.com/FFmpeg/FFmpeg/com...b787575e5c32f2
https://github.com/FFmpeg/FFmpeg/com...90d391450c4e60

Last edited by Balling; 4th March 2023 at 06:34.
Balling is offline   Reply With Quote
Old 9th September 2023, 16:23   #266  |  Link
aqpmlyscbw
Registered User
 
Join Date: Aug 2023
Posts: 6
Quote:
Originally Posted by tebasuna51 View Post
Must be remaped always, seems a problem with the Audition included encoder, can't recognize the standard WAV/W64 channel order FL,FR,FC,LFE,BL,BR,SL,SR and asign BL,BR to Ls,Rs instead to Rls,Lls.
eac3to and VLC detects an EAC3 core 5.1 on my 7.1 track, is this normal? did I do something wrong?
aqpmlyscbw is offline   Reply With Quote
Old 9th September 2023, 17:46   #267  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,260
Quote:
Originally Posted by aqpmlyscbw View Post
eac3to and VLC detects an EAC3 core 5.1 on my 7.1 track, is this normal? did I do something wrong?
Are you able to provide a download link to your sample encode?
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is online now   Reply With Quote
Old 9th September 2023, 20:35   #268  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 7,113
Quote:
Originally Posted by aqpmlyscbw View Post
eac3to and VLC detects an EAC3 core 5.1 on my 7.1 track, is this normal? did I do something wrong?
Welcome to Doom9 forum.

I don't know for what you quote my post about an Audition encode.
Audition CC 2017 can't create eac3 files with ac3 core, maybe your eac3 7.1 track was created with other encoder.

And yes, eac3 tracks can have frames 5.1 ac3 inside (core) and extra frames until 7.1.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 9th September 2023, 22:24   #269  |  Link
aqpmlyscbw
Registered User
 
Join Date: Aug 2023
Posts: 6
Quote:
Originally Posted by SeeMoreDigital View Post
Are you able to provide a download link to your sample encode?
Of course

https://drive.filen.io/d/809c1db3-a5...5XreuPkh3DX7CC
aqpmlyscbw is offline   Reply With Quote
Old 9th September 2023, 22:49   #270  |  Link
aqpmlyscbw
Registered User
 
Join Date: Aug 2023
Posts: 6
Quote:
Originally Posted by tebasuna51 View Post
Welcome to Doom9 forum.

I don't know for what you quote my post about an Audition encode.
Audition CC 2017 can't create eac3 files with ac3 core, maybe your eac3 7.1 track was created with other encoder.

And yes, eac3 tracks can have frames 5.1 ac3 inside (core) and extra frames until 7.1.
Thanks.

I used Audition CC 2017 with channel mapping and parameters.
eac3to reads that file as follows:

E-AC3, 7.1 channels, 0:01:35, 896kbps, 48kHz
(core: E-AC3, 5.1 channels, 0:01:35, 502kbps, 48kHz)
aqpmlyscbw is offline   Reply With Quote
Old 10th September 2023, 11:07   #271  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 7,113
Your link don't work for me but you are right.
Sorry, my mistake is read AC3 core instead E-AC3 core like you say.

An EAC3 stream can have 3 types of frames:
0 Independents
1 Dependents
2 AC3
When it have AC3 frames we can extract the AC3 core, but we can extract the EAC3 core extracting the independents frames.
The Dependent frames have the extra channels/bitrate

I make a eac3 7.1 sample and I extract the eac3 core with eac3to.
With my tool LeeAudBi you can compare the info:
Code:
File: 7.1.ec3                                                  File: 7.1_core.eac3
Size: 2243584 bytes                                            Size: 1257008 bytes
----------------------------------------- First Frame Info     ----------------------------------------- First Frame Info
StrmTyp .....................: 0 (0=Ind, 1=Dep, 2=AC3)         StrmTyp .....................: 0 (0=Ind, 1=Dep, 2=AC3)
SubStreamID .................: 0                               SubStreamID .................: 0
FrameSize....................: 2008 bytes (502 Kb/s)           FrameSize....................: 2008 bytes (502 Kb/s)
SampleRate ..................: 0 (48000 Hz)                    SampleRate ..................: 0 (48000 Hz)
NumBlksCod ..................: 3 (6 Blocks)                    NumBlksCod ..................: 3 (6 Blocks)
Audio coding mode (acmod) ...: 7 (3/2 - L, C, R, SL, SR)       Audio coding mode (acmod) ...: 7 (3/2 - L, C, R, SL, SR)
Low frequency effects channel: 1 (Present)                     Low frequency effects channel: 1 (Present)
Version (bsid) ..............: 16 (Enhanced sintax)            Version (bsid) ..............: 16 (Enhanced sintax)
Dialogue normalization ......: -31 dB                          Dialogue normalization ......: -31 dB
Dynamic Range gain ..........: -0.27 dB                        Dynamic Range gain ..........: -0.27 dB
Mixing metadata exist (ignoring rest)                          Mixing metadata exist (ignoring rest)
----------------------------------------- Revised EAC3 Info    ----------------------------------------- Revised EAC3 Info
Dyn. Range min/max : -10.55/3.34 dB                            Dyn. Range min/max : -10.55/3.34 dB
Frames Tot/Ind/AC3.: 1252 / 626 / 0                            Frames Tot/Ind/AC3.: 626 / 626 / 0
Bitrate average... : 896 Kb/s                                  (Bitrate ...........: 502 Kb/s)
Duration ..........: 20032 ms (0 h. 0 m. 20.032 s.)            Duration ..........: 20032 ms (0 h. 0 m. 20.032 s.)
------------------------------------------------- End Info     ------------------------------------------------- End Info
The 7.1 have 626 independents frames 5.1 and other 626 dependents for extra channels/bitrate with the average bitrate of 896 Kb/s

The 7.1_core have only the 626 independents frames 5.1 with the fix bitrate of 502 Kb/s and less size of course.

But don't exist AC3 frames like others encoders can create.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 10th September 2023, 15:32   #272  |  Link
aqpmlyscbw
Registered User
 
Join Date: Aug 2023
Posts: 6
Quote:
Originally Posted by tebasuna51 View Post
Your link don't work for me but you are right.
Sorry, my mistake is read AC3 core instead E-AC3 core like you say.

An EAC3 stream can have 3 types of frames:
0 Independents
1 Dependents
2 AC3
When it have AC3 frames we can extract the AC3 core, but we can extract the EAC3 core extracting the independents frames.
The Dependent frames have the extra channels/bitrate

I make a eac3 7.1 sample and I extract the eac3 core with eac3to.
With my tool LeeAudBi you can compare the info:
Code:
File: 7.1.ec3                                                  File: 7.1_core.eac3
Size: 2243584 bytes                                            Size: 1257008 bytes
----------------------------------------- First Frame Info     ----------------------------------------- First Frame Info
StrmTyp .....................: 0 (0=Ind, 1=Dep, 2=AC3)         StrmTyp .....................: 0 (0=Ind, 1=Dep, 2=AC3)
SubStreamID .................: 0                               SubStreamID .................: 0
FrameSize....................: 2008 bytes (502 Kb/s)           FrameSize....................: 2008 bytes (502 Kb/s)
SampleRate ..................: 0 (48000 Hz)                    SampleRate ..................: 0 (48000 Hz)
NumBlksCod ..................: 3 (6 Blocks)                    NumBlksCod ..................: 3 (6 Blocks)
Audio coding mode (acmod) ...: 7 (3/2 - L, C, R, SL, SR)       Audio coding mode (acmod) ...: 7 (3/2 - L, C, R, SL, SR)
Low frequency effects channel: 1 (Present)                     Low frequency effects channel: 1 (Present)
Version (bsid) ..............: 16 (Enhanced sintax)            Version (bsid) ..............: 16 (Enhanced sintax)
Dialogue normalization ......: -31 dB                          Dialogue normalization ......: -31 dB
Dynamic Range gain ..........: -0.27 dB                        Dynamic Range gain ..........: -0.27 dB
Mixing metadata exist (ignoring rest)                          Mixing metadata exist (ignoring rest)
----------------------------------------- Revised EAC3 Info    ----------------------------------------- Revised EAC3 Info
Dyn. Range min/max : -10.55/3.34 dB                            Dyn. Range min/max : -10.55/3.34 dB
Frames Tot/Ind/AC3.: 1252 / 626 / 0                            Frames Tot/Ind/AC3.: 626 / 626 / 0
Bitrate average... : 896 Kb/s                                  (Bitrate ...........: 502 Kb/s)
Duration ..........: 20032 ms (0 h. 0 m. 20.032 s.)            Duration ..........: 20032 ms (0 h. 0 m. 20.032 s.)
------------------------------------------------- End Info     ------------------------------------------------- End Info
The 7.1 have 626 independents frames 5.1 and other 626 dependents for extra channels/bitrate with the average bitrate of 896 Kb/s

The 7.1_core have only the 626 independents frames 5.1 with the fix bitrate of 502 Kb/s and less size of course.

But don't exist AC3 frames like others encoders can create.
Link is up again, my mistake.

I understand, I just have a question.

EAC3 to WAV64 file in eac3/GUI:

E-AC3, 7.1 channels, 0:01:35, 896kbps, 48kHz
(core: E-AC3, 5.1 channels, 0:01:35, 502kbps, 48kHz)
Extracting E-AC3 core...
Decoding with libav/ffmpeg...
Reducing depth from 64 to 24 bits...
Writing W64...
Creating file "C:\Test\Dolby_EAC3_7.1_track.eac3_.w64"...
eac3to processing took 1 second.
Done.

What command should I use to convert the main 7.1 audio? Foobar2000/FFmpeg decodes it correctly.
aqpmlyscbw is offline   Reply With Quote
Old 10th September 2023, 19:57   #273  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 7,113
Quote:
Originally Posted by aqpmlyscbw View Post
EAC3 to WAV64 file in eac3/GUI:
What GUI?

The libav decoder in eac3to is very old (2015) and don't support decode dependent frames, use always ffmpeg.

With the UsEac3to GUI you must use the 'A/V Recode' button to decode/recode EAC3 with ffmpeg.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 10th September 2023, 21:03   #274  |  Link
aqpmlyscbw
Registered User
 
Join Date: Aug 2023
Posts: 6
Quote:
Originally Posted by tebasuna51 View Post
What GUI?

The libav decoder in eac3to is very old (2015) and don't support decode dependent frames, use always ffmpeg.

With the UsEac3to GUI you must use the 'A/V Recode' button to decode/recode EAC3 with ffmpeg.
I understand, thanks for your clarifications.
Any additional suggestions for encoding from Audition?
aqpmlyscbw is offline   Reply With Quote
Old 11th September 2023, 10:41   #275  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 7,113
You have the options I use in this post

But, like I have a audio system 5.1.2 and not 7.1, I use it to recode atmos tracks, decodec with this, to L R C LFE Ls Rs Vhl Vhr.
That 5.1.2 eac3 is not well recognized by eac3to:

E-AC3, 5.1 channels, 0:00:20, 896kbps, 48kHz
(core: E-AC3, 5.1 channels, 0:00:20, 502kbps, 48kHz)

But yes by MediaInfo: L R C LFE Ls Rs Tfl Tfr
And well decoded with ffmpeg to wav: FL FR FC LF SL SR TFL TFR
And well played by my Denon configured like 5.1.2

The core 5.1 of the 7.1 eac3 have the Side and Back channels mixed.
The core 5.1 of the 5.1.2 eac3 have the Top channels mixed with the Front channels.
I think it is a correct downmix.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 11th September 2023, 15:55   #276  |  Link
aqpmlyscbw
Registered User
 
Join Date: Aug 2023
Posts: 6
Quote:
Originally Posted by tebasuna51 View Post
You have the options I use in this post

But, like I have a audio system 5.1.2 and not 7.1, I use it to recode atmos tracks, decodec with this, to L R C LFE Ls Rs Vhl Vhr.
That 5.1.2 eac3 is not well recognized by eac3to:

E-AC3, 5.1 channels, 0:00:20, 896kbps, 48kHz
(core: E-AC3, 5.1 channels, 0:00:20, 502kbps, 48kHz)

But yes by MediaInfo: L R C LFE Ls Rs Tfl Tfr
And well decoded with ffmpeg to wav: FL FR FC LF SL SR TFL TFR
And well played by my Denon configured like 5.1.2

The core 5.1 of the 7.1 eac3 have the Side and Back channels mixed.
The core 5.1 of the 5.1.2 eac3 have the Top channels mixed with the Front channels.
I think it is a correct downmix.
I perceive more clarity/objects (not JOC) compared to AAC on my old soundbar, I'll keep testing on other systems.

Thanks again.
aqpmlyscbw is offline   Reply With Quote
Old 2nd October 2023, 21:42   #277  |  Link
Thunderbolt8
Registered User
 
Join Date: Sep 2006
Posts: 2,198
Does anyone know which would be the best/most useful way to convert a Atmos 7.1 THD track to a DDP 5.1 track? How can I mantain most of the original quality & channel information?

so far Ive used UsEac3to with A/V recode with audio set to DDP 1024 and additional ffmpeg command line '71-51c'

Quote:
-filter_complex "asplit [f][s]; [f] pan=3.1|c0=c0|c1=c1|c2=c2|c3=c3 [r]; [s] pan=stereo|c0=0.5*c4+0.5*c6|c1=0.5*c5+0.5*c7, compand=attacks=0:decays=0oints=-90/-84|-10/-4|-6/-2|-0/-0.3, aformat=channel_layouts=stereo [d]; [r][d] amerge [a]" -map "[a]"
__________________
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)

Last edited by Thunderbolt8; 3rd October 2023 at 22:23.
Thunderbolt8 is offline   Reply With Quote
Old 4th October 2023, 10:35   #278  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 7,113
If you want a DDP 5.1 with ffmpeg (freesoft without a DDP certified encoder) that is my recommended method.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 6th October 2023, 09:37   #279  |  Link
junh1024
Registered User
 
Join Date: Mar 2011
Posts: 61
If it came from a BD I would suggest extracting the DD/AC3 core instead of making DDP using free DDP encoders. Free DD/DDP encoders are usually lower quality than paid ones.
junh1024 is offline   Reply With Quote
Old 13th October 2023, 17:35   #280  |  Link
kurkosdr
Registered User
 
Join Date: Aug 2009
Posts: 382
Quote:
Originally Posted by NiN3 View Post
I see, thanks.

What happens when you play a EAC3 track on a system that only supports AC3? According to wikipedia and some explanations on Dolby's website, EAC3 is backwards compatible so it supposedly converts it bit perfectly to AC3.
Just to clarify, not every E-AC3 stream has an AC3 stream in it. Basically E-AC3/Dolby Digital Plus refers to three different technologies:

An AC3 5.1 stream extended to have more channels (as encountered in Blu-Ray).

An E-AC3 5.1 stream (which allows conversion to AC3 with minimal quality loss for output via SPDIF by E-AC3 compatible devices), for those cases bandwidth savings are critical, as encountered in some EU broadcasts.

An E-AC3 5.1 stream extended to have more channels or even object audio (as seen in Netflix, which is used to provided Dolby Digital Plus Atmos).

---

And I just realised I have one question: Can you take an AC3 stream and extend it with Atmos? This should allow for low-bitrate (lossy) Atmos on Blu-Ray using just one audio stream.
kurkosdr is offline   Reply With Quote
Reply

Tags
eac3

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


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