View Full Version : Looking for a eac3 7.1 encoder
tebasuna51
16th August 2022, 09:37
Yep. It's only decoding the core. I found a creative way to "force" a test,
The easy way to test encoders/decoders/players is use a channel_test like I upload here (https://forum.doom9.org/showthread.php?p=1963170#post1963170)
1) Decode it to wav/wavs (w64 not needed because it is short)
2) Encode it to codec to test
3) Decode it with the decoder to test and see (*) the output in an audio editor or listen it in the player to test
(*) The order and images must be like:
SeeMoreDigital
16th August 2022, 12:51
Perhaps the DTS talk should be split off into its own topic...
Balling
16th August 2022, 19:49
The only reencoder that can preserve Atmos when going from TrueHD to eac3 is in LG TVs. Would be interesting to get that.
pcroland
17th August 2022, 09:05
The only reencoder that can preserve Atmos when going from TrueHD to eac3 is in LG TVs. Would be interesting to get that.
It's not the only one. I'm planning to implement it to deew. DEE can encode DDP Atmos but you have to use DRP (Dolby Reference Player) for decoding.
Enverex
17th August 2022, 14:34
It is well know than Plex encoder add Dynamic Range Compression to the eac3 tracks, and I don't know how avoid that.
By default the decoders must obey the DRC info and the players must disable explicitly the DRC to avoid that effect.
What is the player used?
I've tried both VLC, MPC and WMF via Windows Media Player.
Shame about Plex's encoder doing the weird DRC effect though, it's the ONE thing stopping me being able to create perfect results in the project I was working on. If anyone's actually able to figure out why it's doing that and how to stop it, I'd be eternally grateful.
Regarding the DTS decoding issues, the Plex encoder is ancient so I transcode to FLAC then let EAE convert it to EAC3 to avoid issues like the DTS one you're hitting here. It doesn't even support MP3!
tebasuna51
17th August 2022, 21:39
I've tried both VLC, MPC...
In both you need disable the DRC like the images, but if the E/AC3 is sended passtrough by SPDIF/HDMI to your AVR, is the AVR who needs be disabled.
BuccoBruce
18th August 2022, 02:06
Perhaps the DTS talk should be split off into its own topic...
I've tried both VLC, MPC and WMF via Windows Media Player.
Shame about Plex's encoder doing the weird DRC effect though, it's the ONE thing stopping me being able to create perfect results in the project I was working on. If anyone's actually able to figure out why it's doing that and how to stop it, I'd be eternally grateful.
Regarding the DTS decoding issues, the Plex encoder is ancient so I transcode to FLAC then let EAE convert it to EAC3 to avoid issues like the DTS one you're hitting here. It doesn't even support MP3!
Sorry, I got a little carried away. There's no need for that, since a. DCA can't do 7.1 anyways b. encoding DTS-ES or DTS-HD MA isn't as walled off as E-AC-3 or THD.
But uh, yeah, Plex devs confirmed that they do not decode anything other than DCA 5.1 core audio from any DTS streams (for legal reasons? of all things...) so it is still worth noting as a PSA for anyone using EAE to encode E-AC-3. Like you mentioned, you can still get around it by just feeding it 7.1 FLAC or PCM instead.
It doesn't even support MP3!
Plex's transcoder is fucking weird. They --disable-decoders when they compile ffmpeg and then use external libraries for everything.
The easy way to test encoders/decoders/players is use a channel_test like I upload here (https://forum.doom9.org/showthread.php?p=1963170#post1963170)
1) Decode it to wav/wavs (w64 not needed because it is short)
2) Encode it to codec to test
3) Decode it with the decoder to test and see (*) the output in an audio editor or listen it in the player to test
(*) The order and images must be like:
I could've just used Fraunhofer's 7.1 AAC channel test since i have that one saved, but where is the fun in that? The vuvuzela clip makes a statement!
Balling
19th August 2022, 04:59
BTW, wanted to paste docx (ETSI insider) documentaion of EAC3. It is very nice, docx from which public pdf was done. https://www.upload.ee/files/14428160/ea3specdocx.zip.html
Balling
19th August 2022, 07:44
tried the same with my plexserver and get this:
C:\Program Files (x86)\Plex\Plex Media Server\Plex Transcoder.exe" -i "C:\tmp\cut.mkv" -map v:0 -map a:0 -c:v copy -c:a:0 eac3_eae -b:a:0 1280k plex_convert.mkv
[truehd_eae @ 02a6f400] No EAE watchfolder set!
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (truehd (truehd_eae) -> eac3 (eac3_eae))
Error while opening decoder for input stream #0:1 : Generic error in an external library
ideas?
As you can see from its source code https://github.com/Diagonactic/plex-new-transcoder/blob/3cf85fd34bfa94f679ca934ebf9e2a31ff0bb0eb/plex-ffmpeg-source/NewPlexTranscoder/libavcodec/eae.c#L235
you need to SET EAE_ROOT to something like your user folder and create 8 folders there (it will not do mkdir for you). After that you need to lauch EasyAudioEncoder.exe and it must see its license file (key, that is, not GPL 2.0 license text) online keygen from plex itself is here: https://github.com/pabloromeo/clusterplex/issues/125#issuecomment-1216753569
After you got the .exe or ELF file, you should launch it, after that transcoder.exe will work like ffmpeg.exe.
Balling
19th August 2022, 09:43
"And as I mentioned before, I paid for Plex Pass, which may have allowed me EasyAudioEncoder for 7.1 transcoding when playing on Plex (existence of EasyAudioEncoder and license file). BUT, I don't know that 100%, I actually suspect it is included with the free version"
It is not included, no, but you can just download it on the direct link (do not forget to activate it) or open any sdr video with .thd inside for plex do it for you.
E.g. (do not forget to apt-get install xq):
└─# curl -s "https://plex.tv/api/codecs/easyaudioencoder?build=windows-x86_64-standard&deviceId=c34abbdd-77d6-4fcf-8e9d-3a86d1b98f4f&oldestPreviousVersion=1%2E28%2E0%2E5999-97678ded3&version=1785" | xq
<?xml version="1.0" encoding="UTF-8"?>
<MediaContainer friendlyName="myPlex" identifier="com.plexapp.plugins.myplex" title="Codec Downloads" codec="easyaudioencoder" version="1785" size="1">
<Codec url="https://downloads.plex.tv/codecs/1785/windows-x86_64-standard/EasyAudioEncoder-windows-x86_64-standard.zip" fileSha="f5433e0e4e487b90018dcffabe0bf9d5a9e3148b" fileSha256="59a4ccc00c4d7742f0da2535d55628330c7a3d89bac8c7d8c8c1df0aed6600b4" fileName="EasyAudioEncoder-windows-x86_64-standard.zip" build="windows-x86_64-standard" license="1663058784 4475d0cda9afb4c554efedb263f4e808a0b6f2c0a00ea2ef40279e548fe4 8c82bc73403f1f0c12b69eb598e70189cbf064153afa88e0f6a1b6512365f78c"/>
</MediaContainer>
Put license key above to eae-license.txt in the same folder.
Enverex
22nd August 2022, 17:29
In both you need disable the DRC like the images, but if the E/AC3 is sended passtrough by SPDIF/HDMI to your AVR, is the AVR who needs be disabled.
This was the first thing I tried when I initially ran into the problem, it made no difference as though the volume was actually changing in the audio stream, not a DRC issue.
This also wouldn't work even if it was the issue as I obviously can't have everyone disable DRC...
Balling
22nd August 2022, 20:03
Anyway, could not help myself changing two bytes in EAE.exe in IDA pro 7.7. https://github.com/pabloromeo/clusterplex/files/9396885/EasyAudioEncoder.zip
BTW, priming samples in eac3 of Mediaconcept SFK in eae.exe is ~1760 samples compared to 256 in ffmpeg. And of course mp4 container is not fixing priming in editlist's media time (just set to 0). Not cool.
Also, it can correctly do fully packed 24 bit TrueHD in all cases (https://trac.ffmpeg.org/ticket/5054) and it can even decode mono truehd correctly, our decoder in ffmpeg when it was not broken was not lossless apparently (https://trac.ffmpeg.org/ticket/1726#comment:7).
Who can compare Audiotion 2017 and Plex? I can do, I have both now!
Balling
24th August 2022, 16:51
Apparently mlp decoder in ffmpeg is not lossless compared to what EAE.exe gives!!! (That was on DVD, Blu-ray uses TrueHD.) https://trac.ffmpeg.org/ticket/4786#comment:4
Just like mono TrueHD.
Also it applies DRC by default for some TrueHD!! So it also makes it lossy. Wow.
Channels in wav are all in correct place, though.
Balling
25th August 2022, 17:34
Who knows how to delete thd DRC? It is really crazy that lossless format has such metadata. It is one thing to apply DR and Gain...
richardpl
25th August 2022, 21:24
Stop spreading your nonsense misinformation.
speedy
28th August 2022, 06:32
Should I be able to use pcroland/deew these days instead of ymgenesis/audiotool for TrueHD 7.1 to EAC3 7.1 conversion?
How about for the following as well?
1) TrueHD 5.1 to EAC3 5.1
2) DTS XLL 7.1 to EAC3 7.1
3) DTS XLL 5.1 to EAC3 5.1
4) TrueHD Atmos to EAC3 Atmos
Thanks!
pcroland
29th August 2022, 18:56
ymgenesis/audiotool uses ffmpeg, which is way worse than using a Dolby certified encoder like DEE (that deew uses).
richardpl
29th August 2022, 22:24
pcroland's "software" uses certified software illegally. Breaking Dolby's company intellectual property rights and never asked permission to use Dolby utility, not even asked Plex for permission to write this so called wrapper.
rwill
30th August 2022, 04:08
pcroland's "software" uses certified software illegally. Breaking Dolby's company intellectual property rights and never asked permission to use Dolby utility, not even asked Plex for permission to write this so called wrapper.
Can you please elaborate further ?
--
I post on my own and not in the name of the company I work for.
pcroland
30th August 2022, 08:04
pcroland's "software" uses certified software illegally. Breaking Dolby's company intellectual property rights and never asked permission to use Dolby utility, not even asked Plex for permission to write this so called wrapper.
It's not included in deew and it has nothing to do with Plex. Have you even looked at the repo? You shouldn't say bullshit like that if you have no clue what you talk about.
Balling
31st August 2022, 09:19
pcroland's "software" uses certified software illegally. Breaking Dolby's company intellectual property rights and never asked permission to use Dolby utility, not even asked Plex for permission to write this so called wrapper.
You are not a laywer, are you? Because a) it does not use Plex, it uses DEE that is 400$USD, b) it is not illegal to automate licensed Plex EAE.exe and it is not illegal to use ffmpeg (Plex Transcoder.exe) to use EAE.exe.
And anyway, unless it is commercial, there is no way to prosecute endusers for that, there is almost no precedent.
Enverex
31st August 2022, 18:06
pcroland's "software" uses certified software illegally. Breaking Dolby's company intellectual property rights and never asked permission to use Dolby utility, not even asked Plex for permission to write this so called wrapper.
I don't remember anyone asking you. Also they aren't distributing the DD encoder OR EAE, so what are you talking about? Please don't derail this thread with this garbage, it's very important to some of us.
Balling
1st September 2022, 20:40
Atmos open source decoder (EAC3 only for now), Paul, please implement this (Huffman tables are on ETSI side):
https://github.com/VoidXH/Cavern/blob/81fc7366ac637b9a3181f794e5c50527be791413/Cavern.Format/Decoders/EnhancedAC3/JointObjectCodingDecoder.cs
Here is Huffman entry point: https://github.com/VoidXH/Cavern/search?q=Huffman
FFmpeg did a lot of stuff to add 9.1.6 and other even more complex ambysonic layouts. Of course flac does not support 16 channles, only wv does, yet wavpack decoder (not encoder) in ffmpeg does not support producing 16 channels.
https://forum.ixbt.com/post.cgi?id=attach:61:2844:6486:1.png
Balling
2nd September 2022, 07:39
Checked some real DVDA. MLP is after all decoded same as in ffmpeg!
Instead of setting any cmd.exe variables with SET you can just use Plex Transcoder.exe (ffmpeg) option -eae_root C:\Users\Name.
So that (hacked Easyaudioencoder.exe) and eae_root in Plex Transcoder.exe allow very simple and very nice workflow!
Balling
4th September 2022, 10:55
Checked EAC3 too!!! Apprently it applies DRC there too, not cool!! eac3_eae that is, on the left here: https://imgur.com/a/odapgAC
while on the right is FFmpeg decoder. eac3_mf that is in the binary too is also a little different.
QUESTION: is eac3 like TrueHD? 24 bit really, because encoding directly to flac produces 24 bit mode of flac, not 16 (as that is just the default for wav). TrueHD is like that, 100%.
tebasuna51
4th September 2022, 11:28
QUESTION: is eac3 like TrueHD? 24 bit really...
Lossy encodes (eac3) don't have bitdepth at all, the precission is always less than 16 bits (can't recover the source bitdepth exactly).
BTW, like decoders works with float samples, is always better recover the decodec sources at float 32 or at least 24 int.
Balling
4th September 2022, 14:59
Latest commit from https://github.com/VoidXH/Cavern can now create per object 16 channel ADM with iXML. Commit before fixed key problem with decoding atmos. So it is now production ready. Unity app requires .wav and .mkv with eac3 inside to play objects' Brownian motion: see https://photos.app.goo.gl/biAubMWnT8AM18Xm6
We really need to compare ADMs.
Balling
5th September 2022, 08:40
You can also create a separate XML + WAV file!! That is done on the last saving state in explorer.exe window.
I also opened an issue that talks about how EAC3 is more than 16 bit technically (and even provided a workaround to force initial 24 bit), I checked two 24 bit file (silence is 0x00 in to 24 bit, but 0xFF in case of doing 16 bit --> 24 bit), one of which was done from default 16 bit ffmpeg wav (a bug really, I asked everyone on the team to fix it, but I suppose they are afraid it will break too much).
I also created an ADM with iXML inside and detached XML using that workaround!! Guys, please check in Dolby Tools and Nuendo + Davinci (no need to use detached XML). Thanks! I want to know it renders the 16 objects correctly using panning position metadata! https://disk.yandex.ru/d/adBuxVIZAG_5wg
Ah, yes, newest verion of CavernizeGUI with ADM and WAV+ADM XML: https://github.com/VoidXH/Cavern/files/9487389/caverngui.zip
Balling
5th September 2022, 08:49
Lossy encodes (eac3) don't have bitdepth at all, the precission is always less than 16 bits (can't recover the source bitdepth exactly).
BTW, like decoders works with float samples, is always better recover the decodec sources at float 32 or at least 24 int.
The precision even in flac is not always the same bits! That is not argument, if only 10 bits are needed to preserve the wav file. It may have some parts less than 16 bits, but may have some more.
tebasuna51
5th September 2022, 10:47
I also opened an issue that talks about how EAC3 is more than 16 bit technically
Encoders convert source time samples (like stored in WAV files) to frequency domain using float maths. Decoders convert frequency domain data to time samples, even until 64 bits float, try:
eac3to input.ac3 output.wav -full
...
Decoding with libav/ffmpeg...
...
The processed audio track has a constant bit depth of 64 bits.
It is not a upsize, are real outputs from libav decoders.
If the source is only 16 bits int how we have now 64 bits float?
But lossy encoders do not guarantee recover the same 16 bits than source, only a good approximation, better with more bitrate (more frequency domain data) was used to encode. For that the quality in lossy encoders is mesured in bitrate and don't have any exact bitdepth.
Lossless encoderst guarantee recover the same 16 bits than source.
I checked two 24 bit file (silence is 0x00 in to 24 bit, but 0xFF in case of doing 16 bit --> 24 bit)
Samples in wav have 3 bytes signed_le from 0x7FFFFF (stored FFFF7F=+1), 0x000000 (0),0xFFFFFF (-0.000001), 0x800000 (stored 000080=-1)
one of which was done from default 16 bit ffmpeg wav (a bug really...)
A bug? Select the bitdepth desired decoding lossy formats.
If you decode lossless and upsize (16 ->24) read about dither (https://en.wikipedia.org/wiki/Dither).
The precision even in flac is not always the same bits! That is not argument, if only 10 bits are needed to preserve the wav file. It may have some parts less than 16 bits, but may have some more.
Without sense.
With lossless encoders the original source can be recovered with all bits exacts.
Average human ears can difference sounds until a precision of 20 bits,
All parts in a lossless encode have the same bitdepth precision,
Balling
5th September 2022, 17:07
The bug is that TrueHD decodes to 16 bit wav. That is always wrong. 20 bit encoding is not supported by THD encoder (TODO), decoder always decodes to 24 bit anyway. And I argued that, but people said 16 bit is the default for wav since 24 bit wav can break some old devices. It is a bug, 100%. The problem is 24 bit md5 is not the same as 16 bit and if 24 bit file has bits outside 64 bit for EAC3 is certainly too big. I do know ffmpeg support 64 bit int PCM, sure.
There is a bug in ffmpeg that talks ahout how 24 bit decode of TrueHD is not correct! EAE correctly decodes.
Dither is not needed when changing bitdepth. Only when changing frequency, and anyway, as I said, sox may be better, though Paul (richardpl) argued ffmpeg code is now better...
tebasuna51
10th September 2022, 12:13
Anyway, could not help myself changing two bytes in EAE.exe in IDA pro 7.7. https://github.com/pabloromeo/clusterplex/files/9396885/EasyAudioEncoder.zip
...
Who can compare Audiotion 2017 and Plex? I can do, I have both now!
There are a way to use EAE in windows without install PLEX?
Seems EAE have the same problem than DEE (https://forum.doom9.org/showthread.php?p=1974383#post1974383): the 'none' DRC
And we can obtain (FL FR FC LF SL SR TFL TFR) channel map 3D 5.1.2 with EAE?
For these 2 options my choice is now Audition 2017, I doubt we can discover quality differences between the two encoders.
tebasuna51
10th September 2022, 13:10
There is a bug in ffmpeg that talks ahout how 24 bit decode of TrueHD is not correct! EAE correctly decodes.
ffmpeg truehd decoder work fine for me with 24 bits, same output than Dolby Reference Player (drp.exe)
Latest commit from https://github.com/VoidXH/Cavern can now create per object 16 channel ADM with iXML.
Decoding Atmos is offtopic here, I open a new thread (https://forum.doom9.org/showthread.php?t=184364) for it
Kuler087
10th September 2022, 15:05
how do you use EAE? is it a cmd-line tool? is there documentation on how to use it, I can't find any?
Balling
13th September 2022, 05:03
I suppose I was wrong, and Atmos EAC3 on Blu-ray is still using worse quality AC3 inside, but it is not AC3 separate sound, it is hidden inside the EAC3 audio.
"how do you use EAE? is it a cmd-line tool? is there documentation on how to use it, I can't find any?"
Download https://downloads.plex.tv/codecs/1785/windows-x86_64-standard/EasyAudioEncoder-windows-x86_64-standard.zip
Change two bytes in hex editor (this changes one [jump] instruction and its jump destination):
9F 00 00 85 C0 0F 89 12
to
9F 00 00 85 C0 0F 88 88
(Or directly use patched https://github.com/pabloromeo/clusterplex/files/9396885/EasyAudioEncoder.zip)
Then you can encode, after you first launch EasyAudioEncoder.exe server app:
"C:\Program Files\Plex\Plex Media Server\Plex Transcoder.exe" -eae_root C:\Users\XXXX -c:a eac3_eae -i "C:\Users\XXXX\01 - Yello - Waba Duba.ac3" adawsdaq_micro.flac
Encoding to flac will force 24 bit decoder.
But we do not know how to turn off DRC yet, so please only encode with eac3_eae for now!
Balling
13th September 2022, 05:11
ffmpeg truehd decoder work fine for me with 24 bits, same output than Dolby Reference Player (drp.exe)
Decoding Atmos is offtopic here, I open a new thread (https://forum.doom9.org/showthread.php?t=184364) for it
It does work the same for some sample without DRC meta and without 24 bit silence. But were you decoding to 24 bit? Force it with flac or -c:a pcm_s24le.
Kuler087
13th September 2022, 23:34
@Balling thanks a lot.
tebasuna51
14th September 2022, 10:30
... after you first launch EasyAudioEncoder.exe server app:
"C:\Program Files\Plex\Plex Media Server\Plex Transcoder.exe" -eae_root C:\Users\XXXX -c:a eac3_eae -i "C:\Users\XXXX\01 - Yello - Waba Duba.ac3" adawsdaq_micro.flac
But you need:
1) install PLEX
2) create a account (it can be free?)
3) and remain conected to internet when encode
is OK?
Balling
14th September 2022, 18:23
But you need:
1) install PLEX
2) create a account (it can be free?)
3) and remain conected to internet when encode
is OK?
1) No, you can just copy Plex Transcoder
2) No?
3) Certainly no.
tebasuna51
16th September 2022, 11:08
@Balling thanks a lot.
Seems than now Plex Transcoder.exe works for you,
Like you are a windows user please explain how.
In your edited post there are a command line without success:
"C:\Program Files\Plex\Plex\Plex Transcoder.exe" -eae_root "D:\EasyAudioEncoder.exe" -c:a eac3_eae -i D:\1.mka test.eac3
What is the correct one?
And how run EasyAudioEncoder.exe? Before or after Plex Transcoder.exe?
I try different options always with errors.
Kuler087
18th September 2022, 14:10
I can't get it to work as well... :(
@bailling, More info please, how can i encode 7.1 lossless audio to EC3 7.1
cmd:
"C:\Program Files\Plex\Plex\Plex Transcoder.exe" -eae_root D:\other\EAE\ -c:a eac3_eae -i D:\other\EAE\1.ac3 test.eac3
with mkv/mka(with THD) input:
udc input failed with 1011
decoder returned no data
No data written!
safe_fopen: CreateFileW failed: 2
Guessed Channel Layout for Input Stream #0.1 : 7.1
Input #0, matroska,webm, from 'D:\other\EAE\1.mkv':
Metadata:
encoder : libebml v1.4.2 + libmatroska v1.6.4
Duration: 00:07:01.92, start: 0.000000, bitrate: 8100 kb/s
Stream #0:0: Video: hevc, none, 3840x2160, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 1k tbc (default)
Metadata:
BPS : 12119622
DURATION : 00:02:01.789000000
NUMBER_OF_FRAMES: 2920
NUMBER_OF_BYTES : 184504593
_STATISTICS_WRITING_APP: mkvmerge v68.0.0 ('The Curtain') 64-bit
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Side data:
DOVI configuration record: version: 1.0, profile: 8, level: 6, rpu flag: 1, el flag: 0, bl flag: 1, compatibility id: 1
Stream #0:1(eng): Audio: eac3, 48000 Hz, 7.1, s16p (default)
Metadata:
BPS : 4556864
DURATION : 00:06:59.904000000
NUMBER_OF_FRAMES: 503885
NUMBER_OF_BYTES : 239180708
_STATISTICS_WRITING_APP: mkvmerge v68.0.0 ('The Curtain') 64-bit
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(eng): Subtitle: subrip
Metadata:
BPS : 13
DURATION : 00:06:24.009000000
NUMBER_OF_FRAMES: 39
NUMBER_OF_BYTES : 662
_STATISTICS_WRITING_APP: mkvmerge v68.0.0 ('The Curtain') 64-bit
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
File 'test.eac3' already exists. Overwrite? [y/N] y
Stream mapping:
Stream #0:1 -> #0:0 (eac3 (eac3_eae) -> eac3 (eac3_eae))
Press [q] to stop, [?] for help
Error while decoding stream #0:1: Error number -16976906 occurred
Last message repeated 62 times
[eac3_eae @ 00000275a5a93e80] error reading output
Error while decoding stream #0:1: Unknown error occurred
Error while decoding stream #0:1: Error number -16976906 occurred
Last message repeated 19 times
[eac3_eae @ 00000275a5a93e80] error reading output
Error while decoding stream #0:1: Unknown error occurred
Error while decoding stream #0:1: Error number -16976906 occurred
Last message repeated 25 times
[eac3_eae @ 00000275a5a93e80] error reading output
Error while decoding stream #0:1: Unknown error occurred
Error while decoding stream #0:1: Error number -16976906 occurred
Last message repeated 37 times
[eac3_eae @ 00000275a5a93e80] error reading output
Error while decoding stream #0:1: Unknown error occurred
Error while decoding stream #0:1: Error number -16976906 occurred
Last message repeated 46 times
[eac3_eae @ 00000275a5a93e80] error reading output
Error while decoding stream #0:1: Unknown error occurred
Error while decoding stream #0:1: Error number -16976906 occurred
Last message repeated 35 times
[eac3_eae @ 00000275a5a93e80] error reading output
Error while decoding stream #0:1: Unknown error occurred
Error while decoding stream #0:1: Error number -16976906 occurred
Last message repeated 38 times
[eac3_eae @ 00000275a5a93e80] error reading output
Error while decoding stream #0:1: Unknown error occurred
Error while decoding stream #0:1: Error number -16976906 occurred
Last message repeated 15 times
[eac3_eae @ 00000275a5a93e80] error reading output
Error while decoding stream #0:1: Unknown error occurred
Error while decoding stream #0:1: Error number -16976906 occurred
Last message repeated 16 times
[eac3_eae @ 00000275a5a93e80] error reading output
Error while decoding stream #0:1: Unknown error occurred
Error while decoding stream #0:1: Error number -16976906 occurred
Last message repeated 15 times
[eac3_eae @ 00000275a5a93e80] error reading output
Error while decoding stream #0:1: Unknown error occurred
Error while decoding stream #0:1: Error number -16976906 occurred
Last message repeated 19 times
[eac3_eae @ 00000275a5a93e80] error reading output
Error while decoding stream #0:1: Unknown error occurred
Error while decoding stream #0:1: Error number -16976906 occurred
Last message repeated 35 times
[eac3_eae @ 00000275a5a93e80] error reading output
Error while decoding stream #0:1: Unknown error occurred
Error while decoding stream #0:1: Error number -16976906 occurred
Last message repeated 20 times
[eac3_eae @ 00000275a5a93e80] error reading output
Error while decoding stream #0:1: Unknown error occurred
Error while decoding stream #0:1: Error number -16976906 occurred
Last message repeated 19 times
[eac3_eae @ 00000275a5a93e80] error reading output
Error while decoding stream #0:1: Unknown error occurred
Error while decoding stream #0:1: Error number -16976906 occurred
Last message repeated 17 times
[eac3_eae @ 00000275a5a93e80] error reading output
Error while decoding stream #0:1: Unknown error occurred
Error while decoding stream #0:1: Error number -16976906 occurred
Last message repeated 23 times
[eac3_eae @ 00000275a5a93e80] error reading output
Error while decoding stream #0:1: Unknown error occurred
Error while decoding stream #0:1: Error number -16976906 occurred
Last message repeated 35 times
[eac3_eae @ 00000275a5a93e80] error reading output
Error while decoding stream #0:1: Unknown error occurred
Error while decoding stream #0:1: Error number -16976906 occurred
Last message repeated 35 times
[eac3_eae @ 00000275a5a93e80] error reading output
Error while decoding stream #0:1: Unknown error occurred
Error while decoding stream #0:1: Error number -16976906 occurred
Last message repeated 28 times
[eac3_eae @ 00000275a5a93e80] error reading output
Error while decoding stream #0:1: Unknown error occurred
Error while decoding stream #0:1: Error number -16976906 occurred
Last message repeated 40 times
[eac3_eae @ 00000275a5a93e80] error reading output
Error while decoding stream #0:1: Unknown error occurred
Error while decoding stream #0:1: Error number -16976906 occurred
Last message repeated 20 times
[eac3_eae @ 00000275a5a93e80] error reading output
Error while decoding stream #0:1: Unknown error occurred
Error while decoding stream #0:1: Error number -16976906 occurred
Last message repeated 13 times
[eac3_eae @ 00000275a5a93e80] error reading output
Error while decoding stream #0:1: Unknown error occurred
Error while decoding stream #0:1: Error number -16976906 occurred
Last message repeated 9 times
[eac3_eae @ 00000275a5a93e80] error reading output
Error while decoding stream #0:1: Unknown error occurred
[eac3_eae @ 00000275a5a93e80] error reading output
Error while decoding stream #0:1: Unknown error occurred
[eac3_eae @ 00000275a5a980c0] No EAE watchfolder set!
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!
with just AC3 input:
[ac3 @ 00000256aafa8300] Estimating duration from bitrate, this may be inaccurate
Input #0, ac3, from 'D:\other\EAE\1.ac3':
Duration: 00:07:01.47, start: 0.000000, bitrate: 640 kb/s
Stream #0:0: Audio: eac3, 48000 Hz, 5.1(side), s16p, 640 kb/s
File 'test.eac3' already exists. Overwrite? [y/N] y
Stream mapping:
Stream #0:0 -> #0:0 (eac3 (eac3_eae) -> eac3 (eac3_eae))
Press [q] to stop, [?] for help
[eac3_eae @ 00000256aafe2540] No EAE watchfolder set!
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!
tebasuna51
18th September 2022, 20:11
The same here, can't use EAE
(your mkv have eac3 already, nor THD)
Kuler087
18th September 2022, 20:30
(your mkv have eac3 already, nor THD)
I know the log says that but the mka or mkv I'm testing have TrueHD 7.1 audio only.
Balling
18th September 2022, 23:35
Thanks to richardpl we now have both Mono decoder fixed (it is now bitperfect with Plex, so I was right, ffmpeg never before decoded mono thruehd correctly, though there are just 9 more samples (zeroes) in Plex decoder) and 24 bit full decoder fixed too!! Only DRC is left.
Mono encoder now works and decodes to mono wav. All's good!
Balling
18th September 2022, 23:43
-eae_root "D:" is a folder. It may or may not contain EasyAudioEncoder.exe. But it must contain 6 folders of derivatives.
Convert to Dolby Digital (High Quality - 640 kbps)
Convert to Dolby Digital (Low Quality - 384 kbps)
Convert to Dolby Digital Plus (High Quality - 384 kbps)
Convert to Dolby Digital Plus (Max Quality - 1024 kbps)
Convert to WAV (to 2ch or less)
Convert to WAV (to 8ch or less)
>And how run EasyAudioEncoder.exe? Before or after Plex Transcoder.exe?
Before, as I said. It is server app, Plex Transcoder will need it.
Kuler087 is testing encoder, I said decoder works: "C:\Program Files\Plex\Plex\Plex Transcoder.exe" -eae_root D:\other\EAE\ -c:a eac3_eae -i D:\other\EAE\1.ac3 test.flac
To make encoder work use:
"C:\Program Files\Plex\Plex Media Server\Plex Transcoder.exe" -eae_root C:\Users\XXXX -c:a eac3_eae -i "C:\Users\XXXX\01 - Yello - Waba Duba.ac3" -eae_root C:\Users\XXXX adawsdaq8.eac3
BTW, Powershell 7 requires adding "& " before those commands.
tebasuna51
19th September 2022, 11:06
In that folder:
Directorio de C:\Users\Pepe
...
15/09/2022 00:49 <DIR> Convert to Dolby Digital (High Quality - 640 kbps)
15/09/2022 00:49 <DIR> Convert to Dolby Digital (Low Quality - 384 kbps)
15/09/2022 00:49 <DIR> Convert to Dolby Digital Plus (High Quality - 384 kbps)
15/09/2022 00:49 <DIR> Convert to Dolby Digital Plus (Max Quality - 1024 kbps)
19/09/2022 11:10 <DIR> Convert to WAV (to 2ch or less)
16/09/2022 18:33 <DIR> Convert to WAV (to 8ch or less)
13/09/2022 13:12 139.404.590 Core.thd
22/08/2022 15:30 1.999.872 EasyAudioEncoder.exe
...
I open a CML window and execute:
C:\Users\Pepe>EasyAudioEncoder.exe
...
udc input failed with 1001
...
decoder returned no data
No data written!
safe_fopen: CreateFileW failed: 2
udc input failed with 1011
...
udc input failed with 1001
decoder returned no data
No data written!
safe_fopen: CreateFileW failed: 2
udc input failed with 1011
...
udc input failed with 1001
decoder returned no data
No data written!
^C
C:\Users\Pepe>
In other CML window I execute just after EasyAudioEncoder:
C:\Users\Pepe>"C:\tmp\Plex\Plex Media Server\Plex Transcoder.exe" -eae_root C:\Users\Pepe -c:a eac3_eae -i "C:\Users\Pepe\Core.thd" -eae_root C:\Users\Pepe core.eac3
ffmpeg version c4efa15-4365 Copyright (c) 2000-2021 the FFmpeg developers
built with Plex clang version 11.0.1 (https://plex.tv 9b997da8e5b47bdb4a9425b3a3b290be393b4b1f)
configuration: --disable-static ...
libavutil 56. 63.101 / 56. 63.101
libavcodec 58.117.101 / 58.117.101
libavformat 58. 65.101 / 58. 65.101
libavfilter 7. 96.100 / 7. 96.100
libswscale 5. 8.100 / 5. 8.100
libswresample 3. 8.100 / 3. 8.100
[truehd @ 027ef900] Estimating duration from bitrate, this may be inaccurate
Input #0, truehd, from 'C:\Users\Pepe\Core.thd':
Duration: 06:27:14.10, start: 0.000000, bitrate: 48 kb/s
Stream #0:0: Audio: eac3, 48000 Hz, 3.0(back), s16p, 48 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (eac3 (eac3_eae) -> eac3 (eac3_eae))
Press [q] to stop, [?] for help
Error while decoding stream #0:0: Error number -16976906 occurred
Last message repeated 29 times
[eac3_eae @ 027f0080] error reading output
Error while decoding stream #0:0: Unknown error occurred
Error while decoding stream #0:0: Error number -16976906 occurred
Last message repeated 18 times
...
Last message repeated 16 times (412 times)
Output #0, eac3, to 'core.eac3':
Metadata:
encoder : Lavf58.65.101
Stream #0:0: Audio: eac3, 48000 Hz, 5.1(side), s16, 128 kb/s
Metadata:
encoder : Lavc58.117.101 eac3_eae
size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
Conversion failed!
C:\Users\Pepe>
tebasuna51
19th September 2022, 11:11
I know the log says that but the mka or mkv I'm testing have TrueHD 7.1 audio only.
You are right, even with .thd the log say eac3 [3.0(back)]???.
Kuler087
19th September 2022, 15:01
same for me... It only works when the input is AC3.
Balling
19th September 2022, 16:08
In that folder:
Directorio de C:\Users\Pepe
...
15/09/2022 00:49 <DIR> Convert to Dolby Digital (High Quality - 640 kbps)
15/09/2022 00:49 <DIR> Convert to Dolby Digital (Low Quality - 384 kbps)
15/09/2022 00:49 <DIR> Convert to Dolby Digital Plus (High Quality - 384 kbps)
15/09/2022 00:49 <DIR> Convert to Dolby Digital Plus (Max Quality - 1024 kbps)
19/09/2022 11:10 <DIR> Convert to WAV (to 2ch or less)
16/09/2022 18:33 <DIR> Convert to WAV (to 8ch or less)
13/09/2022 13:12 139.404.590 Core.thd
22/08/2022 15:30 1.999.872 EasyAudioEncoder.exe
...
I open a CML window and execute:
In other CML window I execute just after EasyAudioEncoder:
You cannot decode thruehd with eae_eac3, this is ffmpeg 101. Use truehd_eae. Also, thruehd decoding requires -c:a pcm_s24le.
Kuler087
19th September 2022, 17:25
ha thank you for the clarification, now it's working.
Now I hope it works on my TV, the DEE EC3 7.1 tracks are not playing correctly.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.