Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
17th February 2013, 20:33 | #1 | Link |
Registered User
Join Date: Dec 2012
Posts: 163
|
Speeding Up A Certain Section Of A Video??
I have a part of a video capture that i want to speed up (the end credits), the starting frame on the section i want to speed up is 18898 and the last frame is 48075. I know the command changefps but im not sure if this can be applied to a certain section of a video clip. Is there a command for this?
|
17th February 2013, 21:59 | #4 | Link |
Registered User
Join Date: Dec 2012
Posts: 163
|
I am still relatively new to Avisynth, infact im actually using AvsPmod. So what script do i need to use if im wanting to speed frames 18898 to 48075 up, there is a total of 49408 altogether. This is what i currently have....
video=AVISource("E:\CAPTURES\My Records\amarec(20130217-1858).avi") video1=fadein(video,50) video2=fadeout(video1,50 video3=lanczos4resize(video2,1920,1080) video4=converttoRGB32(video3,matrix="rec709") Return video4 What do i need to add to that script? |
17th February 2013, 22:29 | #5 | Link |
Avisynth Developer
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
|
Code:
video=AVISource("E:\CAPTURES\My Records\amarec(20130217-1858).avi") video=Trim(video, 0, 18897)++Trim(video, 18898, 48075).ChangeFPS(9.99).AssumeFPS(video)++Trim(video, 48076, 0) video1=fadein(video, 50) ... Last edited by Wilbert; 17th February 2013 at 22:31. Reason: added a dot |
18th February 2013, 20:28 | #6 | Link |
Registered User
Join Date: Dec 2012
Posts: 163
|
That works a treat thanks, can you explain how that actually works, what do the '.' mean/do?. Is it anything before the '.' and after is applied to each other?? So for the script above we have determined a section of frames (18898 and 48075) and the added a '.' and the changeFPS, so because we have added a '.' to the scripted then the 2 are added together??
|
19th February 2013, 07:47 | #7 | Link |
Registered User
Join Date: Jan 2006
Location: Finland
Posts: 134
|
The dot indicates that a filter is "chained" to act on the previous item on the same line.
Code:
return AVISource("something.avi").ChangeFPS(...).AssumeFPS(...) Code:
AVISource("something.avi") ChangeFPS(...) AssumeFPS(...) return last Code:
video = AVISource("something.avi") return video.ChangeFPS(...).AssumeFPS(...) Code:
video1 = AVISource("something1.avi") video2 = AVISource("something2.avi") video1 = video1.SomeFilter(...) video2 = video2.AnotherFilter(...) return video1 + video2 |
30th May 2013, 22:10 | #12 | Link |
Registered User
Join Date: Dec 2012
Posts: 163
|
This is my current script, how would i add that in?...
video=AVISource("E:\CAPTURES\My Records\amarec(20130529-2131).avi") video1=lanczos4resize(video,1920,1080) video2=trim(video1,0,18270) + trim(video1,18270,22150).ChangeFPS(2.88).AssumeFps(video1) +trim(video1,22151,48518) +trim(video1,53024,0) video3=fadein(video2,50).fadeout(50) return video3 ConvertToYV12() |
30th May 2013, 23:43 | #13 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
I think maybe this part may need a little extra
Code:
AssumeFps(video1,sync_audio=true)
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? |
|
|