Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
10th April 2006, 08:15 | #1 | Link | |
Squeeze it!
Join Date: Oct 2003
Location: Germany
Posts: 472
|
Patching ac3enc of ffmpeg
Seems the patching of the ac3enc.c regarding the low volume has begone:
From the FFmpeg-Devel Mailing list: Quote:
|
|
10th April 2006, 12:32 | #2 | Link |
....
Join Date: May 2002
Location: Australia
Posts: 2,797
|
i already tried the change awhile ago with an unreleased version of QuEnc. it does raise the volume noticably both a tester and myself found. cant say if its the same as input volume as we didnt test it that exactly but it is much better and sounds close enough to me.
__________________
Narrator: And of course, with the birth of the artist came the inevitable afterbirth - the critic. (History of the World part 1) |
10th April 2006, 22:27 | #3 | Link |
Squeeze it!
Join Date: Oct 2003
Location: Germany
Posts: 472
|
I did post a comparison on the german doom9/Gleitz board.
The first three links are the resulted audio files out of using Output_Example.exe from the ffmpeg compiling process. The compiled binary of ffmpeg is further below compressed/provided as 7z: http://forum.gleitz.info/showpost.ph...87&postcount=2 You opinion on the volumes? |
11th April 2006, 05:24 | #5 | Link |
....
Join Date: May 2002
Location: Australia
Posts: 2,797
|
its a whole 1 line, well to be honest 1 character change.
http://mplayerhq.hu/pipermail/ffmpeg...il/010175.html his explanation there was coonsidered wrong and so it was rejected. so then he had to write a little test program to prove what was wrong so the patch couyld be accepted.
__________________
Narrator: And of course, with the birth of the artist came the inevitable afterbirth - the critic. (History of the World part 1) |
11th April 2006, 12:55 | #7 | Link |
....
Join Date: May 2002
Location: Australia
Posts: 2,797
|
Videolan 0.8.4a plays the resulting .ac3 ,produced by QuEnc with the 1 character change, fine here.
__________________
Narrator: And of course, with the birth of the artist came the inevitable afterbirth - the critic. (History of the World part 1) |
11th April 2006, 12:57 | #8 | Link | |
BDVD Team
Join Date: Dec 2004
Location: Rio de Janeiro - RJ/Brasil
Posts: 306
|
Quote:
Cheers, |
|
11th April 2006, 12:58 | #9 | Link |
Registered User
Join Date: Dec 2004
Location: Melbourne, AU
Posts: 1,963
|
I applied the patch to fccHandler's ac3-acm codec (which uses ac3enc for encoding) and ran some tests on a 20 minute sample using cooledit's analyze statistics option.
Original: Code:
Left Right Min Sample Value: -6480 -6532 Max Sample Value: 6546 6525 Peak Amplitude: -13.99 dB -14.01 dB Possibly Clipped: 0 0 DC Offset: 0 0 Minimum RMS Power: -141.72 dB -141.73 dB Maximum RMS Power: -20.39 dB -20.48 dB Average RMS Power: -30.19 dB -30.39 dB Total RMS Power: -28.3 dB -28.5 dB Actual Bit Depth: 16 Bits 16 Bits Using RMS Window of 50 ms Code:
Left Right Min Sample Value: -3437 -3408 Max Sample Value: 3423 3466 Peak Amplitude: -19.59 dB -19.51 dB Possibly Clipped: 0 0 DC Offset: 0 -.001 Minimum RMS Power: -106.36 dB -105.39 dB Maximum RMS Power: -26.37 dB -26.47 dB Average RMS Power: -36.19 dB -36.4 dB Total RMS Power: -34.31 dB -34.51 dB Actual Bit Depth: 16 Bits 16 Bits Using RMS Window of 50 ms Code:
Left Right Min Sample Value: -6935 -6982 Max Sample Value: 6905 7043 Peak Amplitude: -13.49 dB -13.35 dB Possibly Clipped: 0 0 DC Offset: -.001 -.001 Minimum RMS Power: -99.71 dB -98.92 dB Maximum RMS Power: -20.37 dB -20.47 dB Average RMS Power: -30.17 dB -30.38 dB Total RMS Power: -28.29 dB -28.49 dB Actual Bit Depth: 16 Bits 16 Bits Using RMS Window of 50 ms |
11th April 2006, 13:49 | #10 | Link | ||
Squeeze it!
Join Date: Oct 2003
Location: Germany
Posts: 472
|
Nice!
Quote:
My sample was just outputted by the output_example.exe which also results when compiling ffmpeg. Maybe its a bug in output_example.c out of a recent change in that code also? Hmmmm ... Quote:
Someone tested the 5.1 output? Im at work now so I cant do it by myself If things are getting clear, maybe we also should give a hint to DspGuru so he can update the ac3enc.dll for BeSweet/BeLight Last edited by Inc; 11th April 2006 at 13:54. |
||
11th April 2006, 14:09 | #11 | Link | ||||
....
Join Date: May 2002
Location: Australia
Posts: 2,797
|
Quote:
Quote:
Quote:
Quote:
__________________
Narrator: And of course, with the birth of the artist came the inevitable afterbirth - the critic. (History of the World part 1) |
||||
11th April 2006, 14:17 | #12 | Link |
Registered User
Join Date: Dec 2004
Location: Melbourne, AU
Posts: 1,963
|
All I did was get the source to ac3acm and patch the single line in ac3enc.cpp. Encoding was done with virtualdub. I don't have VLC installed so I can't test it, sorry.
Wouldn't the best way to check the output streams be to play them on a stand alone player? They seem to be the most "picky" about ac3 in my experience. |
26th April 2006, 22:13 | #14 | Link |
Squeeze it!
Join Date: Oct 2003
Location: Germany
Posts: 472
|
Whats the correct way compiling a new version of ac3enc.dll for besweet/belight???
I got the ac3enc sources from DspGuru's Homepage but I'm not able to compile it properly. It starts with the issue that within ac3enc.c the functions are set to "static" so the linker wont be able to link it!? I get unresolved external symbols of exactly these functions. If I do change these ones in ac3enc.c from static to extern then the compile is done but an ac3enc.dll resulting in about 1.9Mb is the result and Besweet.exe cant access the ac3enc interface. |
27th April 2006, 00:19 | #15 | Link |
Actually in reserve
Join Date: Oct 2004
Posts: 1,605
|
I would appreciate to use that patched/debugged version but cannot help for compiling.
Kurtnoise maybe? Did
__________________
Having a problem with AutoGK? Read & use the FAQ & MORE FAQ first Want to exchange on AutoGK? try doom10.org In reserve (inactive) for an undefined period of time. |
Thread Tools | Search this Thread |
Display Modes | |
|
|