View Full Version : eac3to - audio conversion tool
Ripman
2nd January 2018, 14:17
Nothing in MediaInfo.
Is a typical problem, the output length is 3 times the expected because 5.1 have 3 times samples than 2.0
>clever fellow
If you don't need the video I think is better cut the ts file, maybe commercials.
But if the video is OK you can use the 5.1 extracted by SplitAc3 with:
eac3to split51.ac3 one.ac3 -64ms
(the first 2 frames)
eac3to one.ac3 two.ac3 +2304ms
(audio/video delay)
And, maybe, you can delete the last 12 frames with DelayCut, only if sound bad.
Thanks for the tip. Video and audio recovered. SplitAc3 worked nicely - if'd be cool to have an option with that simple program to leave samples in contiguous numbered files.
Ripman
2nd January 2018, 15:26
Is there any plans to integrate eac3to with mkvextract/mkvmerge? I know it works with haali, but I wondered about the others too. Almost positive I read about this within the thread last year.
nautilus7
2nd January 2018, 15:29
ffmpeg mkv muxing support would be easier.
Midzuki
2nd January 2018, 18:25
I agree, Haali is dead, and Nero is dead as well, it's time to drop them.
stax76
3rd January 2018, 18:26
mp4 muxing for avc/hevc would also be useful because LSMASHVideoSource/LibavSMASHSource can open it without indexing. (something I miss from the mkv format)
SeeMoreDigital
3rd January 2018, 18:48
mp4 muxing for avc/hevc would also be useful because LSMASHVideoSource/LibavSMASHSource can open it without indexing. (something I miss from the mkv format)Agreed ;)
Ripman
3rd January 2018, 23:38
ffmpeg mkv muxing support would be easier.
I like ffmpeg too. But I ended up at mkvmerge years ago, and the developer is pretty accessible via doom9.
Are there specific ffmpeg mkv capabilities that you use or prefer? Any capabilities that exist in ffmpeg but not in mkvmerge? Thanks.
stax76
4th January 2018, 09:31
I like ffmpeg too. But I ended up at mkvmerge years ago, and the developer is pretty accessible via doom9.
Are there specific ffmpeg mkv capabilities that you use or prefer? Any capabilities that exist in ffmpeg but not in mkvmerge? Thanks.
I think the discussion was meant about muxing libraries which mkvtoolnix probably don't expose, the ffmpeg library for muxing/demuxing is called libavformat I believe.
sneaker_ger
4th January 2018, 11:29
At what point does it become easier to add eac3to features to ffmpeg than vice versa?
nautilus7
4th January 2018, 14:28
Who said that?
If you're referring to me, I said that it would be easier to add mkv muxing with ffmpeg (libavformat), as eac3to already uses ffmpeg for decoding.
sneaker_ger
4th January 2018, 16:30
No one. Just wondering...
LigH
4th January 2018, 23:58
Adding eac3to features to other tools will not be very easy as long as eac3to stays closed-source. That's no complaint, just my thoughts...
AYColumbia
7th January 2018, 19:18
@madshi,
I noticed that the haali splitter URL is outdated in the -test info and is now located at the link below if you want to update it.
https://haali.su/mkv/
LigH
7th January 2018, 19:24
The whole Haali Media Splitter software as such is outdated. There are fortunately not many usage cases left where parts of it can still be useful...
Bandits
10th January 2018, 04:05
When demuxing a UHD disc I got an audio file with DELAY -5ms in the filename.
- Does this mean there was a delay placed on the file so it would line up correctly when remuxed?
- Does this mean I need to place a delay on the file when remuxing?
- Is there a way to stop eac3to.exe from changing the output filename when a delay is encountered?
A different disc has an issue with the video.
First pass:
1) 00000.mpls, 00001.m2ts, 2:13:12
- Chapters, 16 chapters
- h265/HEVC, 2160p24 /1.001 (16:9)
- DTS Master Audio, English, multi-channel, 48kHz
- AC3, Spanish, multi-channel, 48kHz
- AC3, French, multi-channel, 48kHz
- AC3, English, stereo, 48kHz
- DTS, English, stereo, 48kHz
Second pass:
M2TS, 1 video track, 5 audio tracks, 5 subtitle tracks, 2:13:12, 11.987p
1: Chapters, 16 chapters
2: h265/HEVC, unknown parameters
3: DTS Master Audio, English, 7.1 channels, 24 bits, 48kHz
(core: DTS, 5.1 channels, 1509kbps, 48kHz)
4: AC3, Spanish, 5.1 channels, 640kbps, 48kHz
5: AC3, French, 5.1 channels, 640kbps, 48kHz
6: AC3 Surround, English, 2.0 channels, 224kbps, 48kHz
7: DTS, English, 2.0 channels, 768kbps, 48kHz
8: Subtitle (PGS), English
9: Subtitle (PGS), French
10: Subtitle (PGS), English
11: Subtitle (PGS), French
12: Subtitle (PGS), Spanish
For some reason it cannot understand the video track on the second pass and will result in a corrupt file if demuxed. I get same result pointing straight at the M2TS also. Using version 3.34.
tebasuna51
10th January 2018, 11:21
- eac3to can't apply delay only in TrueHD tracks, and add the string "DELAY -5ms" (I don't know how change this) to remember you add the delay when remux.
With other tracks, not TrueHD, eac3to cut audio frames or add silent audio frames. then can't be always exact, and show the remaining delay in log without modify the track name.
BTW delays smaller than a video frame duration (~40 ms) can be safely ignored.
- The problem with the video track with parameters detected in mpls but not in m2ts seems:
a) If the m2ts play fine maybe it is not supported by eac3to. Cut a sample and upload it to http://eac3to.bugs.madshi.net
b) Or maybe it is corrupt.
Bandits
10th January 2018, 21:00
Loading the mpls or the m2ts gives same result for the video file.
I will send a sample. What tool can cut the m2ts correctly?
Music Fan
10th January 2018, 22:40
What tool can cut the m2ts correctly?
Probably ffmpeg (in command line), and maybe TsMuxer.
MeteorRain
11th January 2018, 01:45
I tend to hard cut m2ts using a binary file cutter -- it preserves the file structure.
You can just cut, for example, 200 megabytes from the beginning, reproduce against it and then upload.
hubblec4
11th January 2018, 02:37
What tool can cut the m2ts correctly?
DGSplit (https://forum.videohelp.com/attachments/44370-1515634594/DGSplit.7z) is for me the best binary cut tool.
rco133
22nd January 2018, 20:06
Hi.
This is a general eac3to question, but also has to do with audioconversion.
I am using eac3to 3.34 and am trying to demux a disk with several audiotracks like this:
8: E-AC3, Czech, 7.1 channels, 768kbps, 48kHz, dialnorm: -27dB
(core: AC3, 5.1 channels, 448kbps, 48kHz, dialnorm: -27dB)
When I do "eac3to 1) -demux" it says:
a08 Applying (E-)AC3 delay failed.
Seems like eac3to can't demux audio streams like that. Maybe because it is 7.1?
I would then like to demux all other tracks than the e-ac3 tracks. Is there anyway to tell eac3to to ignore some tracks when using -demux? There is 20 subtitles or so on the disk, so making a manual command line including all tracks but the e-ac3 tracks is quite cumbersome.
When I have to name the tracks manually like 15: English.sup I also Loose all the information that eac3to usually uses for the filename. Number of subs in track, and if there is any forced subs in the track.
Any help will be much appreciated.
Thanks in advance.
rco133
tebasuna51
22nd January 2018, 22:51
Yes, is a bug already reported here: http://bugs.madshi.net/view.php?id=450
More info: https://forum.doom9.org/showthread.php?p=1821743#post1821743
I don't know how help you.
AlvoErrado2
23rd January 2018, 17:58
Is it possible to change the "framerate" for eac3 audio without converting to ac3 using this tool??
sneaker_ger
23rd January 2018, 18:08
No, changing speed requires re-encoding and eac3to can only encode to the following formats:
(1) RAW, (L)PCM
(2) WAV (PCM only), W64, RF64, AGM
(3) WAVs (multiple mono WAV files, PCM only)
(4) AC3
(5) DTS
(6) AAC
(7) FLAC
You can output to WAV and encode that to eac3. But be aware there are different eac3 "flavors": https://forum.doom9.org/showthread.php?t=174418
LigH
23rd January 2018, 18:14
Video is a discrete medium, frames appear at specific times and stay for a specific while, therefore you can change quite easily their display duration; but audio is a rather continuous medium, changing the playing time (with or without preserving the pitch doesn't matter much) is always a substantial change of the whole content, usually requires decoding, resampling, and new encoding. There may be a quite simple AC3 encoder in eac3to, but E-AC3 is not supported, AFAIK.
r0lZ
24th January 2018, 12:37
MkvMerge can shrink or stretch the audio streams by a specific factor without re-encoding. I don't know how it does it, and if the quality of the audio is less good after the operation. I suppose that it changes just the sampling rate (and therefore also the pitch), but I'm not sure.
sneaker_ger
24th January 2018, 12:44
MkvMerge simply stretches/compresses the timecodes. In the end you either have all frames slightly overlapping with each other or tiny gaps between all of them. Players may react badly to this so I don't recommend it. Better to change video fps in case re-encoding is not desired.
tebasuna51
24th January 2018, 14:11
MkvMerge simply stretches/compresses the timecodes. In the end you either have all frames slightly overlapping with each other or tiny gaps between all of them. Players may react badly to this so I don't recommend it. Better to change video fps in case re-encoding is not desired.
100% agree
AlvoErrado2
24th January 2018, 19:57
Thank's all for your answers!!
I understood what I need to do, thank you one more time.:)
Eseninzhiv
27th January 2018, 23:43
can extract Dolby Atmos master file (.atmos) with eac3to from an audio file Dolby Atmos/TrueHD Audio (BluRay)?
LigH
27th January 2018, 23:51
AFAIK, eac3to can only safely skip Atmos metadata.
tebasuna51
31st January 2018, 21:53
Last 5 post moved to Create Dolby Atmos (https://forum.doom9.org/showthread.php?t=175239) thread.
Sakura-chan
1st February 2018, 00:00
Sorry I can't resist: maybe we should have asked Kurt Gödel while he was still around. It might be lossless but we will never be able to prove it since the source is unknown and will be forever. ;)
I start to wonder how lossless my rips I thought they were, actually are.
Gives the same message for "Jurassic World" as well. Since I'm paranoid now, I let decode the same DTS-HD MA track twice to FLAC in one run (dcaDec & Arcsoft) and compare if the FLAC matches.
The FLACs match despite the XLL-warning. Really lossless? Well ...
Sorry if I'm beating a dead horse here...
But I'd want to be 101% doubt free. Is DTS-HD MA decoding (for all channels and bit depths) *really* lossless?
I've seen the tired "libDcaDec reported the warning "XLL output not lossless"." since the start of times for every single DTS-HD MA track I converted. Looking for old posts it all points to it indeed being lossless.
And another thing. On the libDcaDec page it says
This program is deprecated!
This decoder has been fully integrated into FFmpeg master branch and further development will continue there. Using FFmpeg for DTS decoding is now recommended.
Why is eac3to still using it instead ffmpeg? On the other hand if libDcaDec is indeed bit perfect it's kinda a moot point.
LigH
1st February 2018, 08:32
The state of libDcaDec as a separate project with separate source repository may be deprecated. But its development continues inside the ffmpeg project. So if eac3to reports to use libDcaDec, it does not explain explicitly that this may mean "libDcaDec as developed further as a part of ffmpeg".
sneaker_ger
1st February 2018, 13:25
eac3to still uses the deprecated, separate library. (Similar with Aften AC3 encoding.)
SquallMX
25th February 2018, 20:14
Is there a way to remove DialogNorm on EAC3 7.1 tracks? I keep getting this error when trying:
M2TS, 1 video track, 6 audio tracks, 11 subtitle tracks, 2:10:31, 24p /1.001
1: Chapters, 27 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: DTS Master Audio, English, 7.1 channels, 16 bits, 48kHz
(core: DTS, 5.1 channels, 1509kbps, 48kHz)
4: AC3, English, 2.0 channels, 320kbps, 48kHz, -14ms
5: AC3, French, 5.1 channels, 640kbps, 48kHz, -14ms
6: E-AC3, Spanish, 7.1 channels, 1024kbps, 48kHz, dialnorm: -27dB
(core: AC3, 5.1 channels, 576kbps, 48kHz, dialnorm: -27dB)
7: AC3, Portuguese, 5.1 channels, 640kbps, 48kHz, -14ms
8: AC3, English, 2.0 channels, 192kbps, 48kHz, -14ms
9: Subtitle (PGS), English
10: Subtitle (PGS), French
11: Subtitle (PGS), Spanish
12: Subtitle (PGS), Portuguese
13: Subtitle (PGS), English
14: Subtitle (PGS), French
15: Subtitle (PGS), Spanish
16: Subtitle (PGS), Portuguese
17: Subtitle (PGS), French
18: Subtitle (PGS), Spanish
19: Subtitle (PGS), Portuguese
[a06] Extracting audio track number 6...
[a06] Removing AC3 dialog normalization...
[a06] Applying (E-)AC3 delay failed. <ERROR>
Aborted at file position 1048576. <ERROR>
LigH
25th February 2018, 20:26
Removing DN succeeded.
Applying delay failed.
tebasuna51
26th February 2018, 00:55
Hello SquallMX!
eac3to don't support that E-AC3 tracks, bug already reported: http://bugs.madshi.net/view.php?id=450
Pending to fix.
hubblec4
26th February 2018, 15:29
Hello SquallMX!
You could use the "-core" switch, this will work.
SquallMX
27th February 2018, 21:23
Hello SquallMX!
eac3to don't support that E-AC3 tracks, bug already reported: http://bugs.madshi.net/view.php?id=450
Pending to fix.
Thanks for the info!
Hello SquallMX!
You could use the "-core" switch, this will work.
Yes, is a workaround that works fine, unfortunately you lose the 7.1 data.
LigH
27th February 2018, 21:26
It may still be possible not to try to bring the audio stream in sync by changing it, but by multiplexing it (demultiplexed without any changes) into the copy with the same delay.
`Orum
1st March 2018, 14:55
To make a longer post (https://forum.doom9.org/showthread.php?p=1835193#post1835193) brief, there seem to be issues with the Haali muxer eac3to uses for matroska muxing. Is there any chance that this could be replaced with support for more recent muxers using libebml/libmatroska?
Alternatively, could users at least get a warning when using mkv output, so we know to expect problems?
Thunderbolt8
1st March 2018, 18:12
does eac3to have difficulties with UHD BDs which have gaps due to multiple .m2ts files? I heard makemkv does handle them correctly.
Asmodian
1st March 2018, 18:34
I have never had any issues in that regard, eac3to has always worked well with UHD BDs for me. I point it to the playlists, like I do for regular blurays.
Thunderbolt8
1st March 2018, 20:29
I have never had any issues in that regard, eac3to has always worked well with UHD BDs for me. I point it to the playlists, like I do for regular blurays.
refering to those UHD BDs with seamless branching titles
hubblec4
2nd March 2018, 15:31
Hi madshi
Only eac3to is able to remove dialog normalization(DN) from streams(ac3).
I have many mkv files muxed from VOB files with ac3 streams which include the DN.
Feature request:
Is it possible that eac3to remove the DN from the ac3 streams without demuxing-remuxing?
tormento
6th March 2018, 13:21
I am not using eac3to anymore as the ac3 encoding output is really outdate and somehow problematic. My work path now is demux audio tracks and feed them to FFMpeg. Is there any plan to use it as encoding/decoding library or is it a long way to go?
Richard1485
6th March 2018, 20:29
You could pipe to ffmpeg and continue using eac3to.
tormento
6th March 2018, 22:28
You could pipe to ffmpeg and continue using eac3to.
Decoding is buggish too. How can I use ffmpeg for both decoding and encoding?
Richard1485
6th March 2018, 23:52
I wasn't aware that decoding was buggy. In what way?
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.