VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. Member
    Join Date
    Mar 2006
    Location
    United States
    Search Comp PM
    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]
    Quote Quote  
  2. 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.
    Quote Quote  
  3. Guest34343
    Guest
    Originally Posted by dennisthemenace
    (1). Is there an easier way to load the ac3 audio than using DirectShowSource?
    I prefer to use NicAudio.dll.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!