I finally got the following script to work in AVISynth 2.56. I have a few questions. The d2v and ac3 file were created using DGMPGDEC.
loadplugin("C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll"
video = mpeg2source("C:\movie.d2v")
audio = DirectShowSource("C:\Movie T01 3_1ch 384Kbps DELAY 24ms.ac3").cacheaudio()
DelayAudio(audio, +0.024)
audiodub(video, audio)
Sharpen(0.55)
anoth
(1). Is there an easier way to load the ac3 audio than using DirectShowSource? I got this example from another post in this forum. Why is the Cache Audio appended to the end of the prior statement instead of being on a line by itself? Is there an advantage to doing it this way or would either method work.
(2). Does it make any difference in what order the audio is processed? Should it be cache, fix the delay, and then dub or cache, dub. delay or some other sequence?
(3) I noticed in AVSEdit that most of these commands have a first parameter of "clip" and it can be audio or video. How is this used? Especially in an obvious video filter such as sharpen.
As a test I changed to Sharpen(video, 0.55). The sharpen seemed to work but I lost the audio.
[/quote]
+ Reply to Thread
Results 1 to 3 of 3
-
-
Hi-
I can't really answer the audio questions, but I question why you're processing AC3 audio through AviSynth in the first place. If you have to do some editing, it can be done before encoding.
Why is the Cache Audio appended to the end of the prior statement instead of being on a line by itself?
It's the same as giving it a line by itself, except that line would be written (I think) as:
Audio=audio.cacheaudio()
Does it make any difference in what order the audio is processed?
Sorry, don't know as I don't do my audio in AviSynth.
Sharpen(0.55)
That sharpen is lousy. There are other better ones, but the best AviSynth sharpener is Limited Sharpen(Faster).
I noticed in AVSEdit that most of these commands have a first parameter of "clip" and it can be audio or video.
You're using it:
DelayAudio(audio, +0.024)
the "audio" is the replacement for "clip". Or your "audiodub(video, audio)" line. Compare it to the first line here:
http://www.avisynth.org/AudioDub
You're just changing the name from "clip" to whatever.
As a test I changed to Sharpen(video, 0.55). The sharpen seemed to work but I lost the audio.
it should probably be something like:
Video=Video.Sharpen(0.55)
audiodub(video, audio)
but don't hold me to that, as, like I said, I don't do audio in my scripts and I have no way to test anything. Maybe someone that knows more about it will also answer and correct me if or when necessary.
Similar Threads
-
New AVISynth UI
By tin2tin in forum Latest Video NewsReplies: 23Last Post: 19th Jan 2012, 01:53 -
avisynth
By sportflyer in forum Newbie / General discussionsReplies: 1Last Post: 16th Feb 2010, 04:36 -
Using avisynth
By bsuska in forum Video ConversionReplies: 8Last Post: 16th Jul 2009, 08:32 -
AVIsynth help!
By helper in forum Newbie / General discussionsReplies: 11Last Post: 15th Oct 2008, 03:35 -
Avisynth 3.0
By nbi in forum LinuxReplies: 1Last Post: 30th Oct 2007, 16:50