Sampler filter for Avisynth [Readme]
Sampler - An Avisynth filter for pulling samples from a clip
By Ross Thomas <ross@grinfinity.com> This is a very simple Avisynth filter to construct "sample strips" from the source clip. This concept is best explained with an example. Suppose you had a source clip that was 10 frames in length, and you used this filter to extract 3 samples, each 2 frames in length. The resulting clip would be exactly 6 frames long, and would be made up of the 1st, 2nd, 5th, 6th, 9th and 10th frames of the original clip. Or, graphically, this clip: http://www.digitalfaq.com/archives/i.../2012/11/1.jpg becomes this clip: http://www.digitalfaq.com/archives/i.../2012/11/2.jpg In other words, this filter pulls out the specified number of evenly distributed samples of the specified length from the source clip and concatenates them into one clip which will always be precisely samples-times-sample-length frames long. Usage Code:
Sampler(clip clip, int samples, int length)
Known Issues: None. History
|
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.