PDA

View Full Version : Want to take 0.25 sec video clips from a 10 minute video


videocheez
2nd June 2007, 22:52
A few years ago, I accidentally did something really cool when using Gordian Knot to convert some video. I had ten minutes of video and I sampled a few perhaps 0.25s of video every 10 seconds over the course of a 10 minute clip. I put some music to it and and it turned out great. I wrote and Avisynth script that did the work. The problem is that the hard drive that i saved my old Avisnyth scripts on died and I cant remember want to do since I have been out of the game for awhile. Any help would be apprecieated.

Thx in advance,

VC

Dr.Khron
2nd June 2007, 23:37
Hmmmm... I'm pretty sure that all you would need is:

Trim
AssumeFPS
+

I'm not sure if its better to AssumeFPS each Trimed peice, and then add them all back together, or if you'd want to trim the peices, add them together, and then AssumFPS the whole thing. The latter might be easier.

Usually, if I have a AVS script with that many lines, I use and excel spreadsheet to generate it, and then paste it into my script in AvsP.

J_Darnley
2nd June 2007, 23:56
If you want 0.25 sec every 10 use SelectRangeEvery()

SelectRangeEvery(round(last.framerate()*10.0), round(last.framerate()*0.25))

videocheez
3rd June 2007, 02:38
If you want 0.25 sec every 10 use SelectRangeEvery()

SelectRangeEvery(round(last.framerate()*10.0), round(last.framerate()*0.25))


Thanks. I'll give this a try to see how it looks. I suppose I can tweak the numbers if it doesn't look like I want it to.