EAC3TO Requests and General Discussion

eac3to forked from madshi eac3to 3.36
User avatar
Curly
Posts: 752
Joined: Sun Mar 15, 2020 11:05 am

EAC3TO Requests and General Discussion

Post by Curly »

Welcome to the forum Birb, and thank you for your post.

Both of your suggestions seem reasonable to me. I'll see what I can do.
Curly Howard
Director of EAC3TO Development
User avatar
Curly
Posts: 752
Joined: Sun Mar 15, 2020 11:05 am

EAC3TO Requests and General Discussion

Post by Curly »

I've got the INI file -nolog implemented. Moving on to numbering for the Chapters. The numbering system is a bit of a snakepit, but I think I can emerge intact.
Curly Howard
Director of EAC3TO Development
User avatar
AYColumbia
Posts: 91
Joined: Sun Feb 12, 2012 11:29 am

EAC3TO Requests and General Discussion

Post by AYColumbia »

Curly wrote:
Mon Mar 25, 2024 6:14 am
I've got the INI file -nolog implemented. Moving on to numbering for the Chapters. The numbering system is a bit of a snakepit, but I think I can emerge intact.
I appreciate you adding the ability to disable logging. As to changing the chapter "track" #, it may break some of my scripts but I think it's a good change for consistency. Thanks for both. :) Maybe Indy can help you with the latter? :p
---
omay, arrylay, curlyq & associates
User avatar
Curly
Posts: 752
Joined: Sun Mar 15, 2020 11:05 am

EAC3TO Requests and General Discussion

Post by Curly »

AYColumbia wrote:
Mon Mar 25, 2024 12:04 pm
Maybe Indy can help you with the latter?
I didn't say I need any help. ;)
Curly Howard
Director of EAC3TO Development
User avatar
Curly
Posts: 752
Joined: Sun Mar 15, 2020 11:05 am

EAC3TO Requests and General Discussion

Post by Curly »

Guys, I had looked closely at the re-numbering thing, and even tried changing it. But it was fraught and I talked to Rocky about it. The code is so complex and therefore risky to touch that we decided not to do it. Even more so for a cosmetic thing that is not a bug. I'll release the -nolog option at some point, however.
Curly Howard
Director of EAC3TO Development
User avatar
AYColumbia
Posts: 91
Joined: Sun Feb 12, 2012 11:29 am

EAC3TO Requests and General Discussion

Post by AYColumbia »

Curly wrote:
Mon Mar 25, 2024 12:49 pm
AYColumbia wrote:
Mon Mar 25, 2024 12:04 pm
Maybe Indy can help you with the latter?
I didn't say I need any help. ;)
I was just having fun with your "snakepit" comment so mentioned Indy, i.e., Indiana Jones... :lol:
---
omay, arrylay, curlyq & associates
User avatar
Curly
Posts: 752
Joined: Sun Mar 15, 2020 11:05 am

EAC3TO Requests and General Discussion

Post by Curly »

i figgered it out this morning
Curly Howard
Director of EAC3TO Development
DAE avatar
oniiz86
Posts: 30
Joined: Wed Oct 26, 2022 5:52 am

EAC3TO Requests and General Discussion

Post by oniiz86 »

I was wondering if eac3to development has halted, will there be any further bug fixing? I believe it was said at some point that @Sherman would take over development as @Curly was taking a break, is that correct?
User avatar
Curly
Posts: 752
Joined: Sun Mar 15, 2020 11:05 am

EAC3TO Requests and General Discussion

Post by Curly »

Not halted just resting a little. Also, Rocky is hogging the PC for his CUDASynth stuff. We got the low-hanging fruit on eac3to and what's left to do is hard stuff. Be patient I'll get back to it.

Are there some bugs that you particularly would want to see addressed?
Curly Howard
Director of EAC3TO Development
DAE avatar
oniiz86
Posts: 30
Joined: Wed Oct 26, 2022 5:52 am

EAC3TO Requests and General Discussion

Post by oniiz86 »

Curly wrote:
Thu Apr 25, 2024 9:29 am
Not halted just resting a little. Also, Rocky is hogging the PC for his CUDASynth stuff. We got the low-hanging fruit on eac3to and what's left to do is hard stuff. Be patient I'll get back to it.

Are there some bugs that you particularly would want to see addressed?
Hey Curly, no worries I understand, I was just used to the frequent releases, I suppose the one that I brought to your attention regarding the DTS-HD MA/HR DialNorm being removed & the ability to demux PGS subtitles from MKV files, there also seems to be a recent addition on the "To Do List" that concerns eac3to crashing on MKV files containing mono (1.0) PCM audio, I believe @Guest 3 (Tebasuna51) had discovered that eac3to only decodes EAC3 7.1 streams as 5.1 ignoring the depending frames with the extra channels.
DAE avatar
ramicio
Posts: 6
Joined: Mon Apr 25, 2011 9:05 pm

EAC3TO Requests and General Discussion

Post by ramicio »

I just discovered this today. I had no idea there was anything beyond 3.36. I love that this is getting updates now. I love that progressnumbers works right now. Looking forward to the new version with the -nolog switch.

If I have that switch in the ini file, but then specify a log file in my actual command, with the command override that? Because when I am doing stuff by hand, I don't want log files. But if I am rattling off something like a show, for which I use a script to call them in batch, I tend to like to grep through the logs to see if there is anything of concern. It's easy to add the log switch in my batch script. Do it once and it repeats. Also, if log files are specified, does the limit of 5 of them being in that directory still apply?

I wondered if something could be different for the -mono switch, or add another one. If there was a way to actually mix left and right and do -6dB with a simple switch. Sometimes the channels are just slightly different (subtract them in Goldwave and the difference isn't -200dB, and each channel has a different md5sum). I go and use sox to mix to a mono wav, then come back to eac3to to go back to FLAC.

Would there be a way, when processing lossless stereo, to detect if both channels are identical (bit-wise, not a dB threshold)? I use Goldwave to look at every stereo file, and invert mix the channels. If the result is -200dB, it tells me they're the same. I then double check by issuing a "eac3to input.flac output.wavs" to get both channels as mono wavs, and do an md5sum on them both. It would be handy if eac3to warned me. Or would this be pretty computationally-intense to do on the fly? I mentioned bit-wise vs a dB threshold. Perhaps either method could be useful. The dB one would show regardless, where the bit detection one would only trigger if they're perfectly the same. Maybe a switch, so it's not doing it all of the time?

Thank you for your work.
User avatar
Curly
Posts: 752
Joined: Sun Mar 15, 2020 11:05 am

EAC3TO Requests and General Discussion

Post by Curly »

Specifying a log file on the command line overrides -nolog.

Currently, there is always a limit of 5 log files. You can work around that by copying to a different name in your batch file.

Your requests about audio processing are noted but, honestly, are unlikely to be addressed.
Curly Howard
Director of EAC3TO Development
User avatar
AYColumbia
Posts: 91
Joined: Sun Feb 12, 2012 11:29 am

EAC3TO Requests and General Discussion

Post by AYColumbia »

Thank you for the -nolog switch as it's much appreciated as well as your continued work on eac3to. :)
---
omay, arrylay, curlyq & associates
DAE avatar
ramicio
Posts: 6
Joined: Mon Apr 25, 2011 9:05 pm

EAC3TO Requests and General Discussion

Post by ramicio »

Curly wrote:
Sun Jul 21, 2024 8:05 am
Specifying a log file on the command line overrides -nolog.

Currently, there is always a limit of 5 log files. You can work around that by copying to a different name in your batch file.

Your requests about audio processing are noted but, honestly, are unlikely to be addressed.
How does it know previously-made log files to get to that 5 limit? I.e. if I specify the log name, how would new eac3to processes know that some random text files are eac3to logs and delete the oldest one? I understand how it does it when there's no -nolog and no specified name. It's a eac3to-generated name.
User avatar
Curly
Posts: 752
Joined: Sun Mar 15, 2020 11:05 am

EAC3TO Requests and General Discussion

Post by Curly »

AYColumbia wrote:
Sun Jul 21, 2024 1:42 pm
Thank you for the -nolog switch as it's much appreciated as well as your continued work on eac3to.
Thank you, AY!
Curly Howard
Director of EAC3TO Development
User avatar
Curly
Posts: 752
Joined: Sun Mar 15, 2020 11:05 am

EAC3TO Requests and General Discussion

Post by Curly »

ramicio wrote:
Sun Jul 21, 2024 6:35 pm
How does it know previously-made log files to get to that 5 limit? I.e. if I specify the log name, how would new eac3to processes know that some random text files are eac3to logs and delete the oldest one? I understand how it does it when there's no -nolog and no specified name. It's a eac3to-generated name.
The last 5 files matching "log*.txt" are retained.
Curly Howard
Director of EAC3TO Development
DAE avatar
spinkeln
Posts: 1
Joined: Wed Jul 24, 2024 4:14 pm

EAC3TO Requests and General Discussion

Post by spinkeln »

Hi, I'm new to the forum and I have some questions:

The movie Spirit (original, not the sequel) was never released on Blu-ray here in Denmark, so in order to bring the best possible version of it to my kids, I'm trying to sync the dubbed DVD (PAL 25fps) audio to the american Blu-ray (NTSC 23.976fps).

After much trial and error in both Audacity and with different FFmpeg scripts, I tried both MeGUI and eac3to (I use the GUI version called UsEac3To) and while they both seem to produce the same, correct pitch (when listened to) and the exact same length on the files, their spectrograms looks vastly different (I'm using Spek to view them), and I'm not sure which file is the most correct to use going forward.

My plan is this: make an MKV from the DVD with MakeMKV, then use gMKVExtractGUI to extract the AC3 from the MKV file, slow it down from 25fps to 23.976fps whilst converting it to a lossless format (I'm currently stuck here), import it into Audacity and line it up with the audio from the Blu-ray, since it starts a bit later than the DVD does (even when the DVD's video is converted from 25fps to 23.976fps), and when done editing, export it as AC3 for compability reasons (my old 5.1 receiver is connected to the TV through Toslink Optical).

The reason for the last file, the one ending in "no2ndpass" is eac3to said it is clipping and a second pass is needed, and when that second pass was run through, the finished product looked vastly different on the spectrogram in comparison to the MeGUI one, I therefore added -no2ndpass in the hopes that it would look more like the original file, but it didn't. I have uploaded a gif of the different spectrograms here:

Image


If the gif is moving too fast, here are the images of the spectrograms, one by one:

Code: Select all

[img]https://i.ibb.co/56zH8Y2/Spirit-Original.png[/img]
[img]https://i.ibb.co/BfyyM1f/Spirit-Me-GUI.png[/img]
[img]https://i.ibb.co/n06RyLd/Spirit-Us-Eac3-To.png[/img]
[img]https://i.ibb.co/hyhdkpt/Spirit-Us-Eac3-To-no2ndpass.png[/img]

I know this is the thread for eac3to, but here follows the log for MeGUI (6666.1007), if it might be useful:

Code: Select all

[Information] Log
-[Information] Versions
--[Information] MeGUI: 2944 x64
--[Information] MeGUI Debug Data: available
--[Information] Update Check: stable update server
--[Information] System Information
---[Information] Operating System: Windows 10 Pro 22H2 x64 (10.0.19045.4651)
---[Information] .NET Framework: 4.0 (4.0.0.0)
---[Information] .NET Framework: 4.8 (4.8.09037)
---[Information] Redistributables
----[Information] Microsoft Visual C++ 2010 x64:  10.0.40219
----[Information] Microsoft Visual C++ 2010 x86:  10.0.40219
----[Information] Microsoft Visual C++ 2015-2022 x64:  14.40.33810
----[Information] Microsoft Visual C++ 2015-2022 x86:  14.40.33810
---[Information] DPI: 125% (120/120)
---[Information] Monitor 1
----[Information] Resolution: 1920x1080
----[Information] Primary Screen: True
--[Information] Component Information
---[Information] Haali Media Splitter: 1.9.42.1 (10-01-2009)
---[Information] Haali DSS2: not installed
---[Information] ICSharpCode.SharpZipLib: 0.85.5.452 (07-08-2008)
---[Information] MediaInfo: 18.05.0.0 (08-05-2018)
---[Information] SevenZipSharp: 0.64.3890.29348 (02-01-2011)
---[Information] 7z: 9.20 (18-11-2010)
--[Information] AviSynth Information
---[Information] AviSynth Wrapper
----[Information] Version: 1.0.2847.0
----[Information] Date: 06-05-2018
----[Information] Interface: 3
---[Information] AviSynth
----[Information] AviSynth Status: ignored as portable build is forced
---[Information] AviSynth portable
----[Information] File Version: 3.5
----[Information] File Date: 02-04-2020
----[Information] File Name: AviSynth+ 3.5 (r3106, 3.5, x86_64)
----[Information] File Path: c:\users\oscar\nedlastinger\firefox\megui.x64-6666.1405\avisynth.dll
----[Information] AviSynth Version: AviSynth+ 3.5 (r3106, 3.5, x86_64)
----[Information] AviSynth+: true
----[Information] AviSynth MT: true
----[Information] AviSynth Status: active
-[Information] Update detection
--[Information] [25.07.2024 14:32:08] Using cached update config and server: http://megui.org/auto/stable/
--[Information] [25.07.2024 14:32:08] No package requires an update
-[Information] Log for job1 (audio, Spirit_Original.ac3 -> Spirit_MeGUI.flac)
--[Information] [25.07.2024 14:32:32] Started handling job
--[Information] [25.07.2024 14:32:32] Preprocessing
--[Information] [25.07.2024 14:32:32] MediaInfo
---[Information] File: D:\Video\Spirit_Original.ac3
---[Information] General
----[Information] Format: AC-3
----[Information] FileSize: 230487552
----[Information] PlayTime: 01:20:01.824
---[Information] Audio
----[Information] Format: AC-3
----[Information] FormatInfo: Audio Coding 3
----[Information] SamplingRate: 48000
----[Information] SamplingRateString: 48.0 kHz
----[Information] Channels: 6
----[Information] ChannelsString: 6 channels
----[Information] ChannelPositionsString2: 3/2/0.1
----[Information] BitRateMode: CBR
----[Information] [25.07.2024 14:32:32] The language information is not available for this track. The default MeGUI language has been selected.
--[Information] [25.07.2024 14:32:32] Trying to open the file with LWLibavAudioSource()
--[Information] [25.07.2024 14:32:34] Successfully opened the file with LWLibavAudioSource()
--[Information] [25.07.2024 14:32:37] AviSynth script
---[NoImage] ClearAutoloadDirs()
---[NoImage] AddAutoloadDir("C:\Users\Oscar\Nedlastinger\Firefox\MeGUI.x64-6666.1405\tools\avs\plugins")
---[NoImage] LoadPlugin("C:\Users\Oscar\Nedlastinger\Firefox\MeGUI.x64-6666.1405\tools\lsmash\LSMASHSource.dll")
---[NoImage] LWLibavAudioSource("D:\Video\Spirit_Original.ac3")
---[NoImage] # detected channels: 6
---[NoImage] # detected channel positions: 3/2/0.1
---[NoImage] ConvertAudioToFloat(last)
---[NoImage] SSRC(Round((AudioRate()*1001.0)/960.0)).AssumeSampleRate(AudioRate())
---[NoImage] AudioBits(last)>24?ConvertAudioTo24bit(last):last 
---[NoImage] return last
--[Information] [25.07.2024 14:32:37] Command line used: --force --force-raw-format --endian=little --sign=signed -5 - -o "{0}"
--[Information] [25.07.2024 14:32:37] AviSynth script environment opened
--[Information] [25.07.2024 14:32:38] Script loaded
--[Information] [25.07.2024 14:32:38] Output Decoder
---[Information] [25.07.2024 14:32:38] Channels: 6
---[Information] [25.07.2024 14:32:38] Bits per sample: 24
---[Information] [25.07.2024 14:32:38] Sample rate: 48000
--[Information] [25.07.2024 14:32:38] Job command line: C:\Users\Oscar\Nedlastinger\Firefox\MeGUI.x64-6666.1405\tools\flac\flac.exe --force --force-raw-format --endian=little --sign=signed -5 - -o "D:\Video\Spirit_MeGUI.flac" --channels=6 --bps=24 --sample-rate=48000
--[Information] [25.07.2024 14:32:38] Process started
--[Information] [25.07.2024 14:32:38] Standard output stream
--[Information] [25.07.2024 14:32:38] Standard error stream
---[Information] [25.07.2024 14:37:40] flac 1.4.2
---[Information] [25.07.2024 14:37:40] Copyright (C) 2000-2009  Josh Coalson, 2011-2022  Xiph.Org Foundation
---[Information] [25.07.2024 14:37:40] flac comes with ABSOLUTELY NO WARRANTY.  This is free software, and you are
---[Information] [25.07.2024 14:37:40] welcome to redistribute it under certain conditions.  Type `flac' for details.
---[Information] [25.07.2024 14:37:40] (No runtime statistics possible; please wait for encoding to finish...)
--[Information] [25.07.2024 14:37:40] MediaInfo
---[Information] File: D:\Video\Spirit_MeGUI.flac
---[Information] General
----[Information] Format: FLAC
----[Information] FileSize: 1977106095
----[Information] PlayTime: 01:23:26.901
---[Information] Audio
----[Information] Format: FLAC
----[Information] FormatInfo: Free Lossless Audio Codec
----[Information] SamplingRate: 48000
----[Information] SamplingRateString: 48.0 kHz
----[Information] Channels: 6
----[Information] ChannelsString: 6 channels
----[Information] ChannelPositionsString2: 3/2/0.1
----[Information] BitRateMode: VBR
----[Information] [25.07.2024 14:37:40] The language information is not available for this track. The default MeGUI language has been selected.
--[Information] [25.07.2024 14:37:40] Postprocessing
---[Information] [25.07.2024 14:37:40] Deleting intermediate files
----[Information] [25.07.2024 14:37:40] Successfully deleted D:\Video\Spirit_Original.ac3.lwi
--[Information] [25.07.2024 14:37:40] Job completed

Here is the logfile for UsEac3To (eac3to352-UsEac3to134) with second run:

Code: Select all

eac3to v3.52
command line: "C:\Users\Oscar\Nedlastinger\Firefox\eac3to352-UsEac3to134\eac3to.exe"  "D:\Video\Spirit_Original.ac3" Spirit_UsEac3To.flac -slowdown -progressnumbers -log="C:\Users\Oscar\Nedlastinger\Firefox\eac3to352-UsEac3to134\UsEac3To.log"
------------------------------------------------------------------------------
Running in fast mode
Keeping dialnorm
AC3, 5.1 channels, 1:20:02, 384kbps, 48kHz, dialnorm: -27dB
Decoding with libav/ffmpeg...
Changing FPS from 25.000 to 23.976...
Reducing depth from 64 to 24 bits...
Encoding FLAC with libFlac...
Creating file "Spirit_UsEac3To.flac"...
Clipping detected, a 2nd pass will be necessary.  <WARNING>
Starting 2nd pass...
Decoding with libav/ffmpeg...
Changing FPS from 25.000 to 23.976...
Reducing depth from 64 to 24 bits...
Encoding FLAC with libFlac...
Applying -1.67dB gain...
Creating file "Spirit_UsEac3To.flac"...
eac3to processing took 24 minutes, 31 seconds.
Done.

Here is the logfile for UsEac3To (eac3to352-UsEac3to134) without second run:

Code: Select all

eac3to v3.52
command line: "C:\Users\Oscar\Nedlastinger\Firefox\eac3to352-UsEac3to134\eac3to.exe"  "D:\Video\Spirit_Original.ac3" Spirit_UsEac3To_no2ndpass.flac -slowdown -no2ndpass -progressnumbers -log="C:\Users\Oscar\Nedlastinger\Firefox\eac3to352-UsEac3to134\UsEac3To.log"
------------------------------------------------------------------------------
Running in fast mode
Keeping dialnorm
AC3, 5.1 channels, 1:20:02, 384kbps, 48kHz, dialnorm: -27dB
Decoding with libav/ffmpeg...
Changing FPS from 25.000 to 23.976...
Reducing depth from 64 to 24 bits...
Encoding FLAC with libFlac...
Creating file "Spirit_UsEac3To_no2ndpass.flac"...
Clipping detected, a 2nd pass will be necessary.  <WARNING>
The 2nd pass is skipped by request.  <WARNING>
eac3to processing took 11 minutes, 17 seconds.
Done.

Let me know if you want a sample-file (and how I can chop it up into smaller pieces without ruining the audio) or the whole file, and I'll get it to you. I'm willing to throw everything I've learned about this slowdown process out the window and learn the proper way, if I've done something wrong or in an improper way.

Thank you very much. :)
Post Reply