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

messi magician
12th January 2013, 16:56
I seem to be experiencing strange problems with some of my blu ray rips when converting Dts-HD Master to AC3 640 using eac3to

When playing back the m2ts files using Arcsoft player the audio says Dolby AC3 along with some odd kbps figures - 31kbps or 129kbps ect

Usually films just say Dolby AC3 in Arcsoft, i've even updated to the new version of Arcsoft and it still displays these odd numbers

When i ripped the Hunger Games which come out as 31kbps the audio sounded quieter compared to some of my other films so i have to turn up the volume a few notches

Checking the files though with mediainfo it shows the track as 640kbps English 48.0 KHz, 16bits, 6 channels, AC3 which is correct


Anyone else experieced this ? is this normal or is this a known problem with eac3to not converting the audio properly ?

I'm using the latest version of eac3to and arcsoft decoder 1.1.0.0

Snowknight26
14th January 2013, 01:06
tebasuna51's results are fundamentally different. "[libav]" means eac3to got the log message from libav. "[truehd @ ...]" means ffmpeg/libav bypassed eac3to and wrote the log directly to the command line window. Which ffmpeg/libav should not do because eac3to told it to forward all log messages to eac3to instead of writing them to the command line window. So the logging system is broken for you, but not for tebasuna51, nor for me.

Had the same behavior happen on a different system.

With the sample I've PMed you, simply running
eac3to part1.m2ts+part2.m2ts 2: test.flac
is enough to show the issue.

Vick
14th January 2013, 16:26
@madshi
There is description of *.dtshd file in Annex E (http://www.atsc.org/cms/standards/cs_documents/S13-1-329r18-WD-changes-to-NRT-CS-cln.pdf). Can you add header (and other chunks) to DTS-MA and DTS-HR file?
If examples of *.dtshd file are necessary, I can generate ones?

rapscallion
14th January 2013, 23:23
Vick...why would he want him to? If you're talking about *.dtshd files created by DTS-MA suite, that header is only used by authoring houses. For our purposes, we do NOT want the header to be there.

It can be easily removed by demuxing the track/stream via Tsmuxer. The resulting demux will have a *.dts extension, just like on a BD disc.

jj666
14th January 2013, 23:41
Vick...why would he want him to? If you're talking about *.dtshd files created by DTS-MA suite, that header is only used by authoring houses. For our purposes, we do NOT want the header to be there.

It can be easily removed by demuxing the track/stream via Tsmuxer. The resulting demux will have a *.dts extension, just like on a BD disc.

As a reminder, you still need to have a -21ms delay when removing .dtshd MA suite headers with EAC3TO, this bug didn't get fixed yet.

Cheers,

-jj-

rapscallion
14th January 2013, 23:46
@jj, that's why I use Tsmuxer.

filler56789
14th January 2013, 23:55
If you're talking about *.dtshd files created by DTS-MA suite, that header is only used by authoring houses. For our purposes, we do NOT want the header to be there.

I think there are people who would like to decompress the DTS-HD files to .WAVs through the "official" StreamPlayer (simply because ArcSoft's DTSdecoderdll.DLL not always works as it should), and in this case too, the DTS-HD headers are mandatory.

robertcollier4
15th January 2013, 02:09
Getting a line of output per second from the Nero encoder? Nero reporting every single second seems to be making eac3to think Nero is stuck. How can we disable Nero AAC encoder from reporting second by second processing?


command line: eac3to S01E01.mkv S01E01-downDpl.aac -downDpl
------------------------------------------------------------------------------
MKV, 1 video track, 1 audio track, 1:26:26, 24p /1.001
1: h264/AVC, English, 720p (16:9)
2: AC3, English, 5.1 channels, 384kbps, 48kHz, dialnorm: -27dB
[v01] The video track doesn't contain framerate information. <WARNING>
Track 2 is used for destination file "S01E01-downDpl.aac".
[a02] Extracting audio track number 2...
[a02] Removing AC3 dialog normalization...
[a02] Decoding with libav/ffmpeg...
[a02] Downmixing multi channel audio to stereo...
[a02] Reducing depth from 64 to 32 bits...
[a02] Encoding AAC <0.50> with NeroAacEnc...
[a02] Clipping detected, a 2nd pass will be necessary. <WARNING>
[a02] The Nero AAC encoder seems to be stuck... <ERROR>
[a02] [NeroAacEnc] Processed 0 seconds...
[a02] [NeroAacEnc] Processed 1 seconds...
.... (LINES CUT OUT FOR FORUM... THERE IS A LINE PER SECOND) ...
[a02] [NeroAacEnc] Processed 5053 seconds...
[a02] [NeroAacEnc] Processed 5054 seconds...
[a02] [NeroAacEnc] Process
Aborted at file position 2801484127. <ERROR>

Vick
15th January 2013, 08:12
.... For our purposes, we do NOT want the header to be there. .....
I think there are people who would like to decompress the DTS-HD files to .WAVs through the "official" StreamPlayer (simply because ArcSoft's DTSdecoderdll.DLL not always works as it should), and in this case too, the DTS-HD headers are mandatory.
You're right.
For StreamPlayer the header is necessary. And for re-authoring.

tebasuna51
15th January 2013, 10:46
@robertcollier4
Try the workaround suggested in first post here (http://forum.doom9.org/showthread.php?t=166487):

eac3to S01E01.mkv 2: stdout.wav -downDpl | NeroAacEnc -q 0.5 -ignorelength -if - -of S01E01-downDpl.m4a

tebasuna51
15th January 2013, 11:17
@madshi
There is description of *.dtshd file in Annex E (http://www.atsc.org/cms/standards/cs_documents/S13-1-329r18-WD-changes-to-NRT-CS-cln.pdf). Can you add header (and other chunks) to DTS-MA and DTS-HR file?

I think this is not a problem related to eac3to, you can make a independent tool to do the conversion.

At least for DTS-MA you can always recode the wavs supplied by eac3to with DTS Master Audio Suite.

Vick
15th January 2013, 13:00
....
Interesting. It seems there's a whole file structure. It's very easy to understand, though, so it should be easy adding support for that. Well, "easy" means "not difficult". It does cost some time, though, so it may have to wait a while.
....


I think this is not a problem related to eac3to, you can make a independent tool to do the conversion.
....


I would like to simplify process of developing...

tebasuna51
15th January 2013, 14:00
I am not opposed to Madshi do the job, only encourage others interested guys to do it.
I think that eac3to is not necesary to do it.

EuropeanMan
17th January 2013, 21:27
I have a bluray of an indian movie, but for some reason the audio is just messed up in the DTS/MA channel. voices tend to be in the background and music in the foreground.

HOW can i fix this? please...I'd like to RE-ENCODE the audio to AC3. I'll assume that I must separate the DTS into 6wav'files and then remux in a different order into AC3...correct? If you could please show me in short...I'd appreciate it. Thank you. I did this process long long long long ago...so have forgotten.

tebasuna51
18th January 2013, 01:42
1) Decode to wav's with eac3to:
eac3to input output.wavs

2) Encode to AC3 with EncWAVtoAC3, or Aften.exe, with the correct order of channels.

EuropeanMan
18th January 2013, 02:04
^ Thanks for that...but how do I actually change or perhaps ENHANCE the channel that has the main dialogue because it seems to me, it is set to background and not foreground...that's my real question. :) Appreciate the heads-up above!

tebasuna51
18th January 2013, 02:49
You can edit the wavs between 1) and 2) but we can't know the problem without listen a sample.

Maybe you can make a new thread with a sample, but not here.

madshi
20th January 2013, 17:43
eac3to now has a bug tracker:

http://eac3to.bugs.madshi.net

You can browse the bug reports without being logged in. In order to create bug reports you need to login. Please in the future if you have a clear bug to report, use the bug tracker. Currently please use the tracker only for bug reports. Feature wishes will be silently deleted.

kylix999
21st January 2013, 12:16
Is it possible to encode wav to eac3 format but stored in mp4?
I am able to do that with aac with ffmpeg but ffmpeg can't save eac3 in mp4 :( so maybe this program can.

LigH
21st January 2013, 12:58
Maybe a current MP4Box can. But eac3to is not responsible for unusual content in strictly specified containers, rather for the raw content instead.

kylix999
21st January 2013, 13:05
MP4box can't do that, I asked on their forum and it is not supported and do not plan to make it possible. Also it is listed in this table: http://mp4ra.org/codecs.html
so it is possible to do, but don't know how

LigH
21st January 2013, 13:14
In the german doom9/Gleitz board, we just discussed how to multiplex DTS-HD in MP4; if MP4Box can't, maybe l-smash can. So check if l-smash knows E-AC3 too.

kylix999
22nd January 2013, 09:17
In the german doom9/Gleitz board, we just discussed how to multiplex DTS-HD in MP4; if MP4Box can't, maybe l-smash can. So check if l-smash knows E-AC3 too.

you saved my ass, :thanks:

robertcollier4
27th January 2013, 10:33
Can eac3to handle AAC 5.1 / AAC 6 Ch audio input? If not - does anyone know of another tool which can?

robertcollier4
27th January 2013, 10:57
I am unable to get eac3to to read an Audio AAC 5.1 File that I have demuxed from mp4box. I am trying to downmux the AAC 5.1 audio to AAC 2.0 audio.

Media Info Reports:
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 2h 16mn
Bit rate mode : Variable
Bit rate : 420 Kbps
Maximum bit rate : 430 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 409 MiB (100%)
Language : English

eac3to reports the Nero AAC decoder is installed
>eac3to -test
eac3to (v3.27) is up to date
Nero Audio Decoder (Nero 7) works fine

If I use Yamb-mp4box to demux the audio into an mp4 file, then run eac3to:
eac3to v3.27
command line: eac3to.exe "The.Amazing.Spider-Man.2012.1080p.BDRip.x264.AAC-26K_track2.mp4" test.wav -downDpl
------------------------------------------------------------------------------
The format of the source file could not be detected. <ERROR>

Or, if I use Yamb-mp4box to demux the audio into RAW Format, then run eac3to:
eac3to v3.27
command line: eac3to.exe "The.Amazing.Spider-Man.2012.1080p.BDRip.x264.AAC-26K_track2.aac" test2.wav -downDpl
------------------------------------------------------------------------------
AAC, 5.1 channels, 48kHz
Decoding with DirectShow (Nero Audio Decoder 2)...
The DirectShow audio decoder didn't accept the input stream. <ERROR>
Aborted at file position 262144. <ERROR>

Overdrive80
28th January 2013, 03:12
@robertcollier4 The containers of input only can be: MKV, EVO, M2TS, TS y VOB.

Audio format: RAW, (L)PCM, WAV (PCM, DTS, AC3), W64, RF64, AC3, E-AC3, DTS, DTS-ES, DTS-96/24, DTS-HD Hi-Res, DTS-HD Master Audio, MLP, TrueHD, TrueHD/AC3, FLAC.

tebasuna51
28th January 2013, 14:09
AAC must be also supported:

For best AAC decoding you need:
(1) Nero 7 (Nero 8 won't work!)

But don't work propperly in my test. My recommendation is don't use Nero 7 at all.

Use instead:

- BeHappy-AviSynth-BassAudio to decode, DownDPL and recode.

- Decode first to wav with Foobar2000 or UsEac3to (NeroAacDec for .m4a/.mp4 or Faad for .aac) and after eac3to for DownDPL and recode.

robertcollier4
29th January 2013, 13:04
Thanks I used the following steps to downmix from 6ch AAC to 2ch AAC:
(Note: qaac not necessary, but I prefer it since it can make AAC files with no encoder delay).

1. Demux audio into m4a file using mp4box (Yamb GUI).
2. neroaacdec -if "audio6chaac.m4a" -of "audio6chwav.wav"
3. eac3to.exe "audio6chwav.wav" stdout.wav -downDpl | qaac.exe --tvbr 127 --quality 2 --rate keep --ignorelength --no-delay - -o "audio2chaac.m4a"
4. Remux "audio2chaac.m4a" audio with original video track using mp4box (Yamb GUI)

06_taro
29th January 2013, 15:52
aac decoding works well for me with nero 7...

tebasuna51
30th January 2013, 00:21
1. Demux audio into m4a file using mp4box (Yamb GUI).
2. neroaacdec -if "audio6chaac.m4a" -of "audio6chwav.wav"
3. eac3to.exe "audio6chwav.wav" stdout.wav -downDpl | qaac.exe --tvbr 127 --quality 2 --rate keep --ignorelength --no-delay - -o "audio2chaac.m4a"
4. Remux "audio2chaac.m4a" audio with original video track using mp4box (Yamb GUI)

Ok.

For next time you don't need demux the audio from mp4.
You can use:

1. neroaacdec -if "video+audio.mp4" -of "audio6chwav.wav"

Atak_Snajpera
30th January 2013, 14:51
I want to confirm something. Does eac3to still need to decode TrueHD/DTSMA (-> wav,flac) in order to fix audio gaps?

tebasuna51
30th January 2013, 22:13
Always if there are gaps, overlaps sometimes can be solved deleting duplicated frames.

frencher
3rd February 2013, 01:23
Hi all and madshi,

I wanted to know if others have had the same problem as me for demuxing 3D Bluray PGS subtitles tracks (.sup) and if an update will fix this problem ?

Thanks

XadoX
4th February 2013, 15:19
I have a strange problem. I am trying to demux a playlist file.

With BDinfo there is show the correct lenght of the movie. But eac3to shows a wrong value and does a wrong demux.
eac3to adds the same stream multiple times to the demuxed file. mpc-hc is playing the playlist fine.

Snowknight26
4th February 2013, 18:13
You're probably processing the wrong playlist with eac3to.

XadoX
5th February 2013, 07:22
You're probably processing the wrong playlist with eac3to.
No. It is the same playlist.

Snowknight26
5th February 2013, 16:02
And which playlist would that be since it's not shown in the eac3to log?

Snowknight26
5th February 2013, 20:06
That won't be of any help.

Provide the output of
eac3to folder
followed by
eac3to folder x)
where x is the playlist index and we'll go from there.

XadoX
6th February 2013, 07:25
eac3to.exe g:\BDMV\PLAYLIST\00000.mpls
1) 00000.mpls, 0:21:26
[0+0+0+0+8].m2ts
- VC-1, 1080i60 /1.001 (16:9)
- DTS, German, stereo, 48kHz
- DTS, English, stereo, 48kHz

eac3to.exe g:\BDMV\PLAYLIST\00000.mpls 1)
M2TS, 1 video track, 2 audio tracks, 1 subtitle track, 1:30:00, 60i /1.001
1: VC-1, 1080i60 /1.001 (16:9)
2: DTS, German, 2.0 channels, 384kbps, 48kHz
3: DTS, English, 2.0 channels, 384kbps, 48kHz
4: Subtitle (PGS), German

tebasuna51
6th February 2013, 11:19
1) 00000.mpls, 0:21:26
[0+0+0+0+8].m2ts
Seems a bug (or file corrupt) reading the mpls.

A workaround is use:
eac3to.exe g:\BDMV\STREAM\00000.m2ts + g:\BDMV\STREAM\00008.m2ts

XadoX
6th February 2013, 11:31
Somehow playing the playlist results in shorter playtime than only playing the m2ts files. So the workaround is not that easy I think.

tebasuna51
6th February 2013, 13:18
Somehow playing the playlist results in shorter playtime than only playing the m2ts files.

Please provide the playtime of the mpls and the extracted mkv using the workaround.

There are also a strange FILES info (same file used 4 times) in your bdinfo.txt:
FILES:

Name Time In Length
---- ------- ------
00000.M2TS 0:00:00.000 0:01:31.991
00000.M2TS 0:01:31.991 0:08:43.856
00000.M2TS 0:10:15.848 0:10:26.092
00000.M2TS 0:20:41.940 0:00:43.243
00008.M2TS 0:21:25.183 0:00:00.333

madshi
6th February 2013, 13:26
Such playlists (using defined sub-sections of m2ts files) are perfectly legal, according to the Blu-Ray spec, but they're only very very rarely used in real life. As a result eac3to always uses the full m2ts files, ignoring the "Time In" and "Length" information in the playlist.

XadoX
6th February 2013, 13:26
I have asked neuron2 also. Maybe this (http://neuron2.net/board/viewtopic.php?f=8&t=264&sid=da4b63faa6ca216efc052509a2e5dbf0&p=2339#p2339) helps?

LigH
6th February 2013, 13:27
Looks like having an M2TS file in a playlist does not necessarily mean to play the whole M2TS file, but possibly only several ranges in them (e.g. skipping some "Director's Cut" scenes)?

XadoX
6th February 2013, 13:28
Such playlists (using defined sub-sections of m2ts files) are perfectly legal, according to the Blu-Ray spec, but they're only very very rarely used in real life. As a result eac3to always uses the full m2ts files, ignoring the "Time In" and "Length" information in the playlist.
Somehow this is great so it was not my fault doing something wrong :)
Any chance of a workaround?

madshi
6th February 2013, 13:59
Support for playlists with sub-sections of m2ts files is not planned for eac3to anytime soon. Implementing that would not be as easy as it might sound. An m2ts file consists of many different streams, all with their own timestamps. So figuring out which streams to cut when and where is not straightforward, especially because after a cut you want to start with a key frame and there's no guarantee that the "Time In" position in the playlist points to a key frame.

tebasuna51
6th February 2013, 14:00
Such playlists (using defined sub-sections of m2ts files) are perfectly legal, according to the Blu-Ray spec, but they're only very very rarely used in real life. As a result eac3to always uses the full m2ts files, ignoring the "Time In" and "Length" information in the playlist.

Yes, but XadoX say:
eac3to adds the same stream multiple times to the demuxed file.
...
M2TS, 1 video track, 2 audio tracks, 1 subtitle track, 1:30:00, 60i /1.001

And don't work:
eac3to.exe g:\BDMV\STREAM\00000.m2ts + g:\BDMV\STREAM\00008.m2ts

madshi
6th February 2013, 14:06
The playlist references the 00000.m2ts file 4 times, so it's correct that eac3to shows [0+0+0+0+8]. The key problem is that the playlist doesn't want the whole 00000.m2ts file 4 times, instead it wants 4 different subsections of 00000.m2ts, and that's not supported by eac3to at the moment. I don't know how long 00000.m2ts and 00008.m2ts are exactly, but I suppose that the playlist doesn't cover the whole 00000.m2ts and 00008.m2ts files, but just a part of them. That's why using "eac3to 00000.m2ts+00008.m2ts" produces a wrong length, too.

XadoX
6th February 2013, 14:09
...I don't know how long 00000.m2ts and 00008.m2ts are exactly, but I suppose that the playlist doesn't cover the whole 00000.m2ts and 00008.m2ts files, but just a part of them. That's why using "eac3to 00000.m2ts+00008.m2ts" produces a wrong length, too.

Absolutly right!