View Single Post
Old 14th January 2019, 19:14   #1  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
RandomSource - v1.01 - 14 Jan 2019

RandomSource(), Simple source filter producing RGB32 640x480@24 FPS clip by default, random colored for test purposes.

dll's for avs v2.58, Avs/+ v2.60 x86 & x64.
Requires VS2008 CPP Runtimes,

First posted in Devs forum:- https://forum.doom9.org/showthread.p...t=Randomsource
Code:
RandomSource(), Produces (by default) a 640 x 480 @ 24FPS RGB32, 1 hour (24*60*60 frame) clip [No audio].     # by StainlessS @ Doom9

dll's for avs v2.58, Avs/+ v2.60 x86 & x64.
Requires VS2008 CPP Runtimes,


RandomSource(Int "seed"=0,Int "Length"=(24*60*60),Int "Width"=640,Int "Height"=480)

    Seed,       Default 0 (always same). -1, Random Seed(different every script run), other supplied seeds set that value seed (again repeatable, same every time).
    Length,     Default 24 * 60 * 60 = 1hour @ Default 24 FPS.
    Width,      Default 640.
    Height,     Default 480.

Create a YV24, 720x576 @ 25.00, 1 Hour, Always same random pattern at each script run [different random patterns for each frame], no audio.

return RandomSource(Seed=0, length=25*60*60, Width=720, Height=576).ConvertToYV24.AssumeFPS(25)
See MediaFire in sig below this post for zip.
zip includes 3 dll's 2.58, v2.60 x86 and x64 + source + full VS2008 project files for easy rebuild.

EDIT: Below image default args converted to YV12 prior to creating jpeg.


EDIT: Oops, should have no clip arg.
RandomSource(clip c,Int "seed"=0,Int "Length"=(24*60*60),Int "Width"=640,Int "Height"=480)
Re-Posted at MediaFire & SendSpace
__________________
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 ???

Last edited by StainlessS; 15th January 2019 at 01:14.
StainlessS is offline   Reply With Quote