View Full Version : eac3to : Initialization of the AC3 encoder failed.
Batman007
9th August 2015, 07:56
Hello D9,
I was demuxing tracks with eac3to using -demux
The BD had TrueHD 5.1 audio (96kHz) and ac3 embedded (5.1 , 640kbps, 48kHz)
But its giving me error:
Initialization of the AC3 encoder failed.
Aborted at file position 1048576.
Please help me out!
Thank you.
tebasuna51
9th August 2015, 10:16
I never see that error.
Try reinstall eac3to to avoid a soft corruption, if persist the error can be a bug (only madshi can help) or a corrupt source.
Please put the full log.
Batman007
9th August 2015, 10:22
I never see that error.
Try reinstall eac3to to avoid a soft corruption, if persist the error can be a bug (only madshi can help) or a corrupt source.
Please put the full log.
I'm attaching log file with this post
I tried another BD having TrueHD 5.1, it too gave me same error!
eac3to v3.29
command line: K:\eac3to\eac3to.exe "K:\Sources\Detective Byomkesh Bakshy! (2015)" 1) -demux
------------------------------------------------------------------------------
M2TS, 1 video track, 1 audio track, 2 subtitle tracks, 2:19:13, 24p
1: Chapters, 21 chapters
2: h264/AVC, 1080p24 (16:9)
3: TrueHD/AC3, Hindi, 5.1 channels, 96kHz
(embedded: AC3, 5.1 channels, 640kbps, 48kHz)
4: Subtitle (PGS), English
5: Subtitle (PGS), Arabic
[v02] The video framerate is correct, but rather unusual. <WARNING>
Creating file "00000 - Chapters.txt"...
[a03] thd, 96000, 5.1
[s04] Extracting subtitle track number 4...
[a03] Extracting audio track number 3...
[a03] Extracting audio track number 3...
[s05] Extracting subtitle track number 5...
[v02] Extracting video track number 2...
[a03] Extracting TrueHD stream...
[a03] Extracting TrueHD stream...
[a03] Decoding with libav/ffmpeg...
[a03] Remapping channels...
[a03] Encoding AC3 <640kbps> with libAften...
[a03] Initialization of the AC3 encoder failed. <ERROR>
Aborted at file position 1048576. <ERROR>
tebasuna51
9th August 2015, 17:40
Seems the -demux parameter don't work fine here, try recode the thd 96kHz and AC3 don't support 96KHz.
Demux the tracks one by one, selecting the desired audio output (thd or ac3 or thd+ac3):
K:\eac3to\eac3to.exe "K:\Sources\Detective Byomkesh Bakshy! (2015)" 1) 1: Chapters.txt 2: video.mkv 3: audio.thd+ac3 4: sub4.sup 5: sub5.sup
Batman007
10th August 2015, 10:32
Seems the -demux parameter don't work fine here, try recode the thd 96kHz and AC3 don't support 96KHz.
Demux the tracks one by one, selecting the desired audio output (thd or ac3 or thd+ac3):
K:\eac3to\eac3to.exe "K:\Sources\Detective Byomkesh Bakshy! (2015)" 1) 1: Chapters.txt 2: video.mkv 3: audio.thd+ac3 4: sub4.sup 5: sub5.sup
I demuxed the .thd with the command :
"K:\Sources\Detective Byomkesh Bakshy! (2015)" 1) 3:DBB.thd
And .ac3 embedded by "K:\Sources\Detective Byomkesh Bakshy! (2015)" 1) 3:DBB.ac3 -48000
Problem Solved!
This thread can be closed now :)
tebasuna51
10th August 2015, 10:57
The parameter -48000 here is not necessary and is ignored. Is used only to define the samplerate of a PCM input (without a header with samplerate info).
Here, when put .ac3 extension, the embedded AC3 track is extracted and the AC3 is already 48KHz.
When the input have a samplerate not supported by AC3, for instance to recode the DBB.thd extracted (96 KHz), you need:
eac3to DBB.thd DBB2.ac3 -resampleTo48000
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.