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.
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.S1.Trim(9646,9988)
S5=S5.Trim(37860,37900)Trim(50,0)
MixAudio(S5,1,1)
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 5 of 5
Thread
-
-
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) -
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)Last edited by hello_hello; 5th Jun 2020 at 19:38.
Avisynth functions Resize8 Mod - Audio Speed/Meter/Wave - FixBlend.zip - Position.zip
Avisynth/VapourSynth functions CropResize - FrostyBorders - CPreview (Cropping Preview) -
Similar Threads
-
AviSynth: Cropping a specific trim
By smike in forum EditingReplies: 6Last Post: 21st Sep 2017, 15:07 -
Cutting/Splitting video in specific parts with avisynth?
By killerteengohan in forum RestorationReplies: 34Last Post: 2nd Mar 2017, 18:18 -
Any way to deinterlace specific lines with AviSynth?
By premiumcapture in forum CapturingReplies: 14Last Post: 13th Sep 2016, 23:09 -
How can I jump to a specific time in my clip?
By peroron2000 in forum Newbie / General discussionsReplies: 8Last Post: 18th May 2016, 16:45 -
Any way to delay audio at a specific time
By hugopiugo in forum AudioReplies: 5Last Post: 23rd Oct 2015, 20:36