Log in

View Full Version : eac3to - audio conversion tool


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 [299] 300 301 302 303 304 305 306 307 308

Flanker-B
20th February 2020, 20:30
why is eac3to ignoring e-ac3 part of a e-ac3 7.1 file and converting only ac3 5.1 core part? I tried to convert a e-ac3 french track from a french movie "Le chant du loup" aka "The Wolf's Call", and it always ignores eac3 part and only converts ac3 core!

SeeMoreDigital
20th February 2020, 21:12
why is eac3to ignoring e-ac3 part of a e-ac3 7.1 file and converting only ac3 5.1 core part? I tried to convert a e-ac3 french track from a french movie "Le chant du loup" aka "The Wolf's Call", and it always ignores eac3 part and only converts ac3 core!What audio format are you converting to?

tebasuna51
20th February 2020, 23:09
@Teknon
From Clown_BD v0.81 info:
You need to have the UDF2.5 driver installed running under XP, and of course AnyDVD-HD (https://www.videohelp.com/software/AnyDVD) when dealing directly from the disks

AnyDVD-HD, to decript BD disks, is not free, for that I recommend MakeMKV free (while beta) to decript BD disks.

Teknon
21st February 2020, 01:55
@tebasuna51
Thanks for your response. MakeMKV seems to work for now, at least it reads my blu-ray ISOs and I can make an MKV from it

Is there no way to get clownbd to run like it used to on my old pc so I can get a blu-ray structure at the end? I never needed to install AnyDVD-HD or anything other than eac3to, tsMuxer and clownbd (at least to my knowledge) for it to properly read and remux blu-ray ISOs, it just seems really weird to me that it doesn't work anymore, and I liked having demuxing and remuxing into a blu-ray structure all in one program.

Thanks for your help!

videoh
21st February 2020, 03:44
MakeMKV can rip to a bluray structure.

sneaker_ger
21st February 2020, 15:07
why is eac3to ignoring e-ac3 part of a e-ac3 7.1 file and converting only ac3 5.1 core part? I tried to convert a e-ac3 french track from a french movie "Le chant du loup" aka "The Wolf's Call", and it always ignores eac3 part and only converts ac3 core!
eac3to's libraries are very outdated. You should be able to fully decode 7.1 e-ac3 using ffmpeg.

tormento
6th March 2020, 11:37
You should be able to fully decode 7.1 e-ac3 using ffmpeg.
Approved. (cit Davie504 :p)

I switched to ffmpeg months ago and I never had problems.

Megalith
7th March 2020, 02:07
Anyone running into issues with recent UHD releases, like Midway and Knives Out?

foobar2000
23rd March 2020, 14:19
how to select right channel while doing -mono? thanks

DMD
23rd March 2020, 16:00
Good morning
I wonder if there is any possibility of demuxing the audio stream from Eac3 (8ch) to Waws (8ch)
Currently I always get error.
Thank you

https://i.postimg.cc/jqB3p4NC/Screenshot-003.png

https://i.postimg.cc/3wZZWgdj/Screenshot-002.png

tebasuna51
23rd March 2020, 19:42
@DMD

eac3to have some limits decoding eac3 streams, but if you have UsEac3to and a recent ffmpeg.exe version (https://ffmpeg.zeranoe.com/builds/) in the same folder you can use the 'A/V Recode' button.

1) Load the same file and 'A/V Recode'

2) Select track (first track for ffmpeg is '0' video, then '1' for first audio track)

3) Select decode to w64 (we expect a big file)

4) 'Run' (or 'Enqueue')

5) Load the .w64 output and now 'Output' to .wavs

tebasuna51
23rd March 2020, 19:50
how to select right channel while doing -mono? thanks

You can't do it, with stereo input the output is the left channel (with multichannel the output is the center channel).

If you need only the right channel use the output to .wavs and discard the left channel.

foobar2000
23rd March 2020, 21:03
You can't do it, with stereo input the output is the left channel (with multichannel the output is the center channel).

If you need only the right channel use the output to .wavs and discard the left channel.

thanks, i never noticed .wav and .wavs.......

chompy
24th March 2020, 09:17
1. "normal" (not "strange setup") DTS-HD MA 7.1 has the following channel layout:

http://thumbnails31.imagebam.com/9780/43bb3497794528.jpg (http://www.imagebam.com/image/43bb3497794528)

which in the way how Microsoft (and thus eac3to) named the channels is the same as:

http://thumbnails30.imagebam.com/9780/160e7497795034.jpg (http://www.imagebam.com/image/160e7497795034)

or DTS channel names mapped to Microsoft channel names are as follows:

DTS channel name <---> Microsoft channel name

L <---> L
R <---> R
C <---> C
LFE <---> LFE
Lsr <---> BL
Rsr <---> BR
Lss <---> SL
Rss <---> SR


Hello,

Is this DTS <---> Microsoft channel map correct?

I thought that if demuxing a DTS-HD 7.1 track and then encode it again in DTS-HD Master Suite I should use SL for LSS and SR for RSS (surround channels) and BL for LSR and BR for RSR (back channels). And similary with a DTS-HD 7.1 strange setup I thought SL is LS, SR is RS, BL is LSR and BR is RSR.

According to the Microsoft channel layout image it should be as I've said, but then in the text table DTS channel name <---> Microsoft channel name BL and BR seem to be exchanged with SL and SR.

Thanks

tebasuna51
24th March 2020, 11:54
...I should use SL for LSS and SR for RSS (surround channels) and BL for LSR and BR for RSR (back channels).
OK.

And similary with a DTS-HD 7.1 strange setup I thought SL is LS, SR is RS, BL is LSR and BR is RSR.
By your text seems you talk about Other Setup (see image 2), then is OK, but I never see a DTS like this.
The Strange Setup, than I see more often (see the image 1), table maybe can be:

Left <---> ? FrontLeft of Center
Right <---> ? FrontRight of Center
Center <---> FrontCenter
LFE <---> LFE
Leftwide <---> ? FrontLeft
Rightwide <---> ? FrontRight
Leftsusrround <---> don't exist, in 5.1 can be BackLeft (old) or SideLeft (now)
Rightsurround <---> don't exist, in 5.1 can be BackRight (old) or SideRight (now)

But like nobody have the speakers in the correct position, the table used is like the standard 7.1:

Left <---> FrontLeft
Right <---> FrontRight
Center <---> FrontCenter
LFE <---> LFE
Leftwide <---> SideLeft
Rightwide <---> SideRight
Leftsusrround <---> BackLeft
Rightsurround <---> BackRight

... in the text table DTS channel name <---> Microsoft channel name BL and BR seem to be exchanged with SL and SR.
The text table for Standard Setup (see image 3) is OK for me:

Leftsurroundrear <---> BackLeft
Leftsurroundside <---> SideLeft

chompy
24th March 2020, 12:35
The Strange Setup, than I see more often (see the image 1), table maybe can be:

Left <---> ? FrontLeft of Center
Right <---> ? FrontRight of Center
Center <---> FrontCenter
LFE <---> LFE
Leftwide <---> ? FrontLeft
Rightwide <---> ? FrontRight
Leftsusrround <---> don't exist, in 5.1 can be BackLeft (old) or SideLeft (now)
Rightsurround <---> don't exist, in 5.1 can be BackRight (old) or SideRight (now)


Thanks, I thought that the strange setup was this:

https://images2.imagebam.com/cf/f4/a0/e1ab321338032211.png

tebasuna51
24th March 2020, 12:44
Thanks, I thought that the strange setup was this:

I never see a DTS like this (in commercial movies of course, not created by you), you can upload a sample?

chompy
24th March 2020, 13:25
I never see a DTS like this (in commercial movies of course, not created by you), you can upload a sample?

In fact I don't know how to test if the strange setup is your image 1 or your image 2, but as in the DTS-HD Encoder Suite version I have apart from the standard setup, the only other 7.1 config available is the one shown in your image 2, I thought that was the strange setup.

Here you have a sample of the original track I'm using: https://www.upload.ee/files/11326828/sample.dtshd.html

EDIT: I've seen that there's an option to show all 7.1 layouts and then the one in your image 1 (among others) appear... Is then an easy way to know the config used in the original DTS-HD 7.1 track to use it again in the new edited track?

DMD
24th March 2020, 13:42
@DMD

eac3to have some limits decoding eac3 streams, but if you have UsEac3to and a recent ffmpeg.exe version (https://ffmpeg.zeranoe.com/builds/) in the same folder you can use the 'A/V Recode' button.

1) Load the same file and 'A/V Recode'

2) Select track (first track for ffmpeg is '0' video, then '1' for first audio track)

3) Select decode to w64 (we expect a big file)

4) 'Run' (or 'Enqueue')

5) Load the .w64 output and now 'Output' to .wavs

Thank you very much for the information.
the file "ffmpeg.exe" which download Shared or Static?
Thank you

tebasuna51
24th March 2020, 16:43
the file "ffmpeg.exe" which download Shared or Static?

The Static, only one file without need *.dll's

tebasuna51
24th March 2020, 18:43
...Is then an easy way to know the config used in the original DTS-HD 7.1 track to use it again in the new edited track?

Of course, with your sample (image 2) :
eac3to.exe sample.dtshd -logdts

+ DTS-Core
- frameSize 2012
- DTS-ES +
- channelNo 5
- lfe 1
- channelDescr 5.1
- samplingRate 48000
- bitDepth 24
- bitrate 1509000
- samplesPerFrame 512
- copyHistory 1
+ DTS-HD
- fullSize 116
- headerSize 32
- refClockCode 1/48000
- frameDurationCode 1
- activeMasks [1], [[1]]
+ Asset [0]
- fullSize 84
- headerSize 14
- corePackets Core
- extSubStrPackets XLL
- bitResolution 24
- maxSampleRate 48000
- totalNumChannels 8
- activeSpeakers C L R Ls Rs LFE Lsr Rsr ($4f)
DTS Master Audio, 7.1 (strange setup) channels, 24 bits, 48kHz
(core: DTS-ES, 5.1 channels, 1509kbps, 48kHz)

Other samples (image 1 and 3):
- activeSpeakers C L R Ls Rs LFE Lw Rw ($40f)
- activeSpeakers C L R LFE Lsr Rsr Lss Rss ($84b)

chompy
24th March 2020, 19:16
Of course, with your sample (image 2) :
eac3to.exe sample.dtshd -logdts

Great, lots of thanks again!!

DMD
25th March 2020, 16:47
The Static, only one file without need *.dll's
Thank you

DMD
25th March 2020, 17:05
Good morning
I apologize for my question, as far as the EAC3 Encoder is concerned, bitrate values higher than 640 Kb / s are not expected?
Thank you

https://i.postimg.cc/y6bY7tBK/Screenshot-001.png

filler56789
25th March 2020, 17:59
Good morning
I apologize for my question, as far as the EAC3 Encoder is concerned, bitrate values higher than 640 Kb / s are not expected?


Surely that's a limitation (design flaw) in the GUI
(btw, could you please name it?).

Besides, just like .dca (DTS "coherent acoustics"), the .eac3 compression has no predefined set of "allowed bitrates".

DMD
25th March 2020, 20:27
Surely that's a limitation (design flaw) in the GUI
(btw, could you please name it?).

Besides, just like .dca (DTS "coherent acoustics"), the .eac3 compression has no predefined set of "allowed bitrates".

I tried to force the settings, manually entering the value of 1509 kb/s.
The procedure started regularly with the set bit-rate value.
The only limitation that the maximum number of channels that can be managed is 6, the initial test track is 8ch (7.1).
I don't know how it is possible to manage 8 ch tracks.

https://i.postimg.cc/FFJ0Ggw2/Senza-titulo-1.png

https://i.postimg.cc/ZKSjdM0f/Senza-titulo-2.png

SeeMoreDigital
25th March 2020, 20:41
I had a go this morning trying to generate an 8 channel EAC3 encode using an 8 channel PCM source. I also obtained a 6 channel EAC3 elementary stream.

SeeMoreDigital
25th March 2020, 21:22
As a bit of an addition...

I also created a 6 channel EAC3 encode at 1536 Kbps using one of my DTS audio CD's as a source. And I have to say that the playback results are very good indeed.

tebasuna51
25th March 2020, 22:41
Surely that's a limitation (design flaw) in the GUI
(btw, could you please name it?).

The GUI is UsEac3to, and yes is a GUI limit, I can't understand for what we can need more than 640 Kb/s for lossy 5.1

DMD
26th March 2020, 08:35
If it were possible to manage 8 channels, it would be fantastic.

LigH
26th March 2020, 09:32
The reason why ffmpeg won't encode E-AC3 with >6 channels (https://trac.ffmpeg.org/ticket/3595#comment:13) is not really obvious to me. And I am obviously wrong with my guessed reason... :o

nevcairiel
26th March 2020, 10:40
The reason why ffmpeg won't encode E-AC3 with >6 channels (https://trac.ffmpeg.org/ticket/3595#comment:13) is not really obvious to me. And I am obviously wrong with my guessed reason... :o

Noone has spent time making it, and noone seems interested in doing so unless someone is willing to pay for it?

Thats as logical a reason as for anything. People usually work on one of two things: Stuff they have a personal interest for, or stuff other people pay them for.

tebasuna51
26th March 2020, 11:00
In my opinion 7.1 don't offer a better 2D surround than 5.1, I think is a commercial placebo, then for me is ok the ffmpeg behaviour.

Other question is Atmos 3D surround.

justnobody
24th April 2020, 17:07
ffmpeg will not support eac3 7.1 encode, just forget it and go


my question: is it possible to cut the end of the file using eac3to? like cut 10s, we can cut the beginning with simple -10000ms but..

anyway for cutting like this ffmpeg is pretty handy, eac3to doesn't come with this function i guess

r0lZ
25th April 2020, 10:42
is it possible to cut the end of the file using eac3to?
Not sure for eac3to, but I use mkvtoolnix (https://mkvtoolnix.download/) to losslessly cut any audio file. Just mux it to MKA, and use the Split After specific timestamps feature (in the Output tab) to split it where you want. Then, you can extract the part you need from the MKA segment with gMKVExtractGUI (https://sourceforge.net/projects/gmkvextractgui/).

stax76
25th April 2020, 11:48
Not sure for eac3to, but I use mkvtoolnix to losslessly cut any audio file.

Except the FLAC format. :)

sneaker_ger
25th April 2020, 12:05
my question: is it possible to cut the end of the file using eac3to? like cut 10s, we can cut the beginning with simple -10000ms but..
I think only if you specify the length with -edit. E.g. if the file is 1h30m long and you want to cut the last 10 seconds:
eac3to "input.eac3" "output.eac3" "-edit=1:29:50,-10000ms"
(Or maybe make the "-10000" to e.g. "-11000ms" to have some reserve for rounding/alignments.)

tebasuna51
25th April 2020, 12:28
If you know the movie length, for instance 1:50:40.000 you can cut the 10 last seconds with:

-edit=1:50:30.000,-10000ms

EDIT: to slow to make the test

richardpl
25th April 2020, 15:45
ffmpeg will not support eac3 7.1 encode, just forget it and go

It will, just pay.

filler56789
25th April 2020, 23:32
It will, just pay.

People will pay IF:

1) the price of the new encoder is lower than the price of the "official"/certified encoders

&&

2) the price of the new encoder is declared publicly;
I mean, no "send me an email and I'll tell you how much it will cost",
alright :)

videoh
26th April 2020, 00:25
Except the FLAC format. :) FLAC is easy to cut with sox.exe. Use the trim effect.

orion44
29th April 2020, 03:18
Can "-ac 2" switch in ffmpeg be used to downmix 7.1 DTS audio to stereo WAV?

Or is that switch just used for 5.1 AC3 to stereo downmixing?

Sparktank
29th April 2020, 06:29
Can "-ac 2" switch in ffmpeg be used to downmix 7.1 DTS audio to stereo WAV?

Yes, but I don't know which switch it is to normalize if clipping goes beyond 0dBFS.

I'd use eac3to for that:
eac3to source.dts stereo.wav -downStereo -normalize

It should normalize if clipping beyond 0dBFS is detected, by default. So you don't really need to add that switch to eac3to.
Recommended to use stereo if you have plain stereo playback environment (tv,etc).
-downProLogic if you have a surround sound environment that can decode Dolby Pro Logic II.

At least with eac3to, you get a log that gives you useful information.
Regarding updates, FFMPEG and eac3to should be be equal in updates. Not a whole lot has happened with DTS regarding last updates.

Bigmango
2nd May 2020, 05:57
The GUI is UsEac3to, and yes is a GUI limit, I can't understand for what we can need more than 640 Kb/s for lossy 5.1

For all the devices that can't play TrueHD or DTSMA. (i.ex. people streaming from their plex or emby server to their TVs. Even more so, look at the high end 10'000+$ Samsung TVs, they can't even play DTS, but they do play ac3 and eac3).

In the above example, streaming to the TV, with the audio out via HDMI-ARC to a receiver with the TrueHD/DTSMA re-ecoded to eac3 1664k (which is the highest bitrate for the eac3 bluray spec according to the Dolby Media Encoder) makes it as transparent as the lossless audio (depending on your ears you might need less, but better be safe, especially with audiophile headphones, etc... :) ).

That being said, the new E-ARC now passes TrueHD and DTSMA through, so the eac3 encoding will become less relevant in the near future.

Bigmango
2nd May 2020, 06:06
In my opinion 7.1 don't offer a better 2D surround than 5.1, I think is a commercial placebo, then for me is ok the ffmpeg behaviour.


Using a 7.1 source, the 5.1 at 1536k eac3 produced by ffmpeg is poor compared to the 7.1 produced by the Dolby Media Encoder. (I have tested with both).

There is a big soundstage difference.

The difference is night and day with some good audiophile reference headphones with a big soundstage (take a Sennheiser HD 650 for example...).

Bigmango
2nd May 2020, 06:11
ffmpeg will not support eac3 7.1 encode, just forget it and go


According to the ffmpeg tracker, the developper who implemented the 5.1 eac3 said that he will work on adding the 7.1, but that was a couple years ago and nothing has happened since...

Bigmango
2nd May 2020, 06:23
I also created a 6 channel EAC3 encode at 1536 Kbps using one of my DTS audio CD's as a source. And I have to say that the playback results are very good indeed.

FYI, these are the maximum bitrates eac3 can go up to with the Dolby Media Encoder:

DD+ for bluray: 1664k. (this works fine over HDMI-ARC).
DD+ standard: 3024k (I have not tested this over ARC, but according to the information I could find online, ARC supports ~1Mbs (EARC 38Mbs); so this would be the reason for the DD+ bluray spec.).

SeeMoreDigital
2nd May 2020, 08:40
Using a 7.1 source, the 5.1 at 1536k eac3 produced by ffmpeg is poor compared to the 7.1 produced by the Dolby Media Encoder. (I have tested with both).

There is a big soundstage difference.

The difference is night and day with some good audiophile reference headphones with a big soundstage (take a Sennheiser HD 650 for example...).Can you upload both of your test sample encodes for us please?

Have you compared both encoders using the same 5.1 PCM source encoded at the same bit-rate?

Sonic3R
2nd May 2020, 10:31
Hey, there’s a source code for eac3to? I wish, if possible, to adapt it for cross platform means to be used in Linux/Mac too...

jpsdr
2nd May 2020, 10:34
As far as i know, the source code is not avaible, and it's in delphi.