VideoHelp Forum

Try DVDFab and download streaming video, copy, convert or make Blu-rays,DVDs! Download free trial !
+ Reply to Thread
Results 1 to 5 of 5
Thread
  1. There's an edit I was tinkering with but using the Loop function feels completely backwards, but maybe that's the way to go. I'll start with the first part I wanted to try.

    S1.Trim(9646,9988)
    S5=S5.Trim(37860,37900)Trim(50,0)
    MixAudio(S5,1,1)
    So basically I want to have the Audio start on Frame 50, I tried using the Loop(start,end) function but I could never get it down right.
    Quote Quote  
  2. Another approach might be to use AudioTrim, based on the time .
    http://avisynth.nl/index.php/Trim#AudioTrim

    So frame 50 * framerate would be the start time, 0 would be end time assuming you didn't want that to change
    Quote Quote  
  3. Originally Posted by poisondeathray View Post
    Another approach might be to use AudioTrim, based on the time .
    http://avisynth.nl/index.php/Trim#AudioTrim

    So frame 50 * framerate would be the start time, 0 would be end time assuming you didn't want that to change
    I'll give that a try too. What I just tried was the SelectEvery command


    S1.Trim(9646,9988)
    S5=S5.Trim(37860,37900).SelectEvery(180).Loop(Star t=0,times=2)

    S1.Trim(9646,9988).Trim(224,321).SelectEvery(50).L oop(Start=0,times=1)
    MixAudio(S5,1,1)
    So the way it works here is the audio plays twice every 180 frames, which like I said sort of works, I want it to start at Frame 50 but it won't change. So then I want to combine that with that 2nd Trim where it will play the Audio at Frame 50.
    Quote Quote  
  4. Maybe I'm not understanding what you're trying to do, but there's a delay function for audio.

    DelayAudio(1.0/FrameRate()*50.0)
    Trim(9646,9988)

    That'd delay the audio and then it'd start with the video, but you could do it the other way around.

    Trim(9646,9988)
    DelayAudio(1.0/FrameRate()*50.0)

    You can also insert silence.

    A = last.Trim(9646,9988)
    B = BlankClip(A).KillVideo()
    C = B.AudioTrim(0, 1.0/FrameRate()*50.0) ++ A.KillVideo()
    AudioDub(A, C)

    I gather you're using the audio from one clip and the video from another, or audio from different sections of the same clip, but the principle's the same.

    A = S1.Trim(9646,9988)
    B = S5.Trim(37860,37900)
    C = BlankClip(B).KillVideo()
    D = C.AudioTrim(0, 1.0/FrameRate()*50.0) ++ B.KillVideo()
    AudioDub(A, D)
    Quote Quote  
  5. Originally Posted by hello_hello View Post
    Maybe I'm not understanding what you're trying to do, but there's a delay function for audio.

    DelayAudio(1.0/FrameRate()*50.0)
    Trim(9646,9988)

    That'd delay the audio and then it'd start with the video, but you could do it the other way around.

    Trim(9646,9988)
    DelayAudio(1.0/FrameRate()*50.0)

    You can also insert silence.

    A = last.Trim(9646,9988)
    B = BlankClip(A).KillVideo()
    C = B.AudioTrim(0, 1.0/FrameRate()*50.0) ++ A.KillVideo()
    AudioDub(A, C)

    I gather you're using the audio from one clip and the video from another, or audio from different sections of the same clip, but the principle's the same.

    A = S1.Trim(9646,9988)
    B = S5.Trim(37860,37900)
    C = BlankClip(B).KillVideo()
    D = C.AudioTrim(0, 1.0/FrameRate()*50.0) ++ B.KillVideo()
    AudioDub(A, D)

    Oh, DelayAudio, that worked perfectly. Thanks for the help!
    Quote Quote  



Similar Threads