View Full Version : AC3 audio in AVISynth
koolcracker
10th October 2006, 22:21
I have a question here. I know that AC3 audio is generally quieter when played on computer rather than tvs. My question is though, why, when you process the .vob with gordian knot or something, the sound level come out normal, but when you demux and use the ac3 file in an avs script, it come out quiet?
I havnt found a solution to this yet, so I dont know if its jsut me experienceing this, but are there any reasonable explanations? and are there any solutions? I use DGindex, and have played aroudn with the audio settings but i always end up with incredibly quiet audio whether i decode it or just use the ac3 file. Any hel is appreciated.
Wilbert
10th October 2006, 23:06
Normalize()
koolcracker
11th October 2006, 00:40
Alright, so I tried to use:
Video=MPEG2source("C:\BatmanBegins.d2v", cpu=4, info=3).ColorMatrix(hints=true)
Audio=DirectShowSource("C:\BatmanBegins T01 3_2ch 448Kbps DELAY -25ms.ac3")
Audio=Normalize()
Audiodub(Video, Audio)
FluxSmoothST()
BicubicResize(640, 480)
LimitedSharpenFaster()
But it told me there was a script error and Normalize had invalid arguements. What SHOULD my script be?
BigDid
11th October 2006, 00:52
... But it told me there was a script error and Normalize had invalid arguements. What SHOULD my script be?
Hi,
From avisynth help:
Normalize (clip, float "volume", bool "show")
i.e.
# normalizes signal to 98%
video = AviSource("C:\video.avi")
audio = WavSource("c:\autechre.wav")
audio = Normalize(audio, 0.98)
return AudioDub(video, audio)
If you don't want to tackle scripts (you'll have to do so sooner or later if you want to use powerful functions or filters), for audio re or transcoding you can use BeHappy instead: http://forum.doom9.org/showthread.php?t=104686
Did
koolcracker
11th October 2006, 01:00
so would I just have to add the audio path inside the brackets? if i leave out the number, would it fill in a default?
BigDid
11th October 2006, 01:30
so would I just have to add the audio path inside the brackets? if i leave out the number, would it fill in a default?
Hi,
I don't use that core filter and I am quite a noob in avisynth myself. So you will have to try by yourself and, if not working, dig in the help file or the Q&A: http://forum.doom9.org/showthread.php?t=25002
Hence my suggestion to use Behappy...
Did
koolcracker
11th October 2006, 02:47
Alright, I have tried to follow those normalize directions, but it jsut wouldnt work. It wa either too quiet or just froze up my virtualdub and virtualdubmod. Does anyone know what to do to my script? or should I try the BeHappy?
Edit: I finally got it to work by using:
Video=MPEG2source("C:\BatmanBegins.d2v", cpu=4, info=3).ColorMatrix(hints=true)
Audio=DirectShowSource("C:\BatmanBegins T01 3_2ch 448Kbps DELAY -25ms.ac3").Normalize()
Audiodub(Video, Audio)
FluxSmoothST()
BicubicResize(640, 480)
LimitedSharpenFaster()
foxyshadis
11th October 2006, 06:38
Normalize is not what is being asked for! Avisynth's audio processing tools are very primitive compared to video processing. DVD players apply dynamic compression to the sound, which raises the volume of quiet areas (unless it's in home theater mode). The heavier the compression the louder quiet parts get.
AC3filter has excellent capabilities here, and there's a rough avisynth plugin made by dimzon here (http://forum.doom9.org/showthread.php?t=108470). But most people who transcode use BeSweet, with BeLight, which can normalize, compress, and encode in one step.
Alain2
11th October 2006, 14:30
AC3filter has excellent capabilities here, and there's a rough avisynth plugin made by dimzon here (http://forum.doom9.org/showthread.php?t=108470). But most people who transcode use BeSweet, with BeLight, which can normalize, compress, and encode in one step.
Do you have a copy of this plugin ? If so can you share it somewhere ?
Thank you :)
koolcracker
11th October 2006, 21:52
Ya, any links for this plugin anywhere? I'd love to give it a try.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.