Searchlight effect with Avisynth

March 27th, 2008 by hitthebongo | Print

New to Avisynth ? Read my Avisynth introduction here to help get you started

This Avisynth effect takes a single feature video and overlays it with an internally generated black clip. A “searchlight” mask image sequence is then applied to the black clip to create animated areas of transparency. This of course gives the illusion of light beams striking the subject video on a dark night. This only really looks good when using a wall as the subject video. It’s use is therefore limited, but I think it could look cool as part of a title opening sequence.

 

DOWNLOAD

 

Once extracted the project folder should contain the following

  • searchlightsSOUNDTRACK.avs (Aviscript )
  • s searchlights.avs(Aviscript)
  • movie.wmv (Example source video)
  • siren.wav (Example audio file)
  • Dont_Touch Folder (Contains jpg images for the mask sequence)
screen capture

The project folder is a fully working example. Loading either of the two scripts in to an encoder such as virtualdub should produce results straight away (assuming of course that Avisynth has first been installed!)

The searchlights.avs script uses audio from the movie.wmv source video. The searchlightsSOUNDTRACK.avs script uses the external siren.wav audio clip after first muting the video clip. The siren/audio clip will loop to match the duration of the final video.

The movie.wmv and siren.wav clips are part of the demonstration and meant only for test purposes. They should be replaced by a users own video/audio clips .
In my example video, I took a brickwall jpg texture and modified it in photoshop by adding a graffiti type text. I then took the pic and rendered it in Movie Maker 2 as a short video clip (movie.wmv) The source image is available to download and modify for non-commercial purposes by clicking on the thumbnail below

:

EXPERIMENT AND HAVE FUN !
Notes – The scripts were tested on windows XP home edition with Avisynth version 2.57 installed. I’ve tested and rendered the scripts within Virtualdub-MPEG2 and Nics WM9 Encoder to good effect

More of my Avisynth stuff may be found here

Comments are closed.