The above four videos were created with 4 slightly different avisynth scripts.
- Script1 – Utilises a short videoloop background with a slowly revealing movie clip. The audio is provided by the movie clip
- Script2 – Same as script 1 but an external soundtrack mp3 is utilised instead
- Script3 & 4 - respectively the same as script 1 & 2 except that a jpg image is used for the background
For those that are new to avisynth I would recommend reading my Introduction guide.
Essentially the scripts take a short video loop or image source and sets this as the background canvas. The main feature video clip is then revealed piece by piece by exploiting avisynths overlay functions. Mask and overlay images are called up by the scripts to help achieve the effect.
For download I have included a project folder that contains all four scripts with media to provide a fully working example for test purposes. When satisfied that the test project works OK the test media should be replaced with a users own. The media consists of:
- mainclip.wmv – This is the main movie and may be of any length.
- background.wmv – This is the background video loop – ideally it should be just a few seconds long. For lots of free loops checkout my Texture Loops section.
- background.jpg - Instead of a looping background video, a graphic image may be used instead
- soundtrack.mp3 – If a soundtrack is required, this will replace the audio of the main vid
The download is a 3.66mb zip file. I would strongly recommend extracting the file in to an empty folder
As usual I make no promise that the scripts will work for everyone – I am simply showing what works for me !
The script makes extensive use of the DirectShow parameter which means that many different types of video files can be utilised PROVIDING a users system is equipped with the appropriate DirectShow filters. In my script examples I have based the source videos on wmv files like the type saved by Windows Movie Maker. I have chosen wmv files as I would assume that most windows machines are fully equipped by default with the appropriate filters. For better quality results a user may wish to utilise different file types such as high quality DV encoded AVI files of the type that Movie Maker can again save to. If doing so “someclip.avi” would be placed in the project folder alongside the “mainclip.wmv” file. The reference to “mainclip.wmv” in the aviscript would then need to be replaced with “someclip.avi”
I have also included some variables that can easily be altered in the top section of the script that effects things like how quickly the puzzle pieces are placed and withdrawn.
Each script will attempt to optimise the output characteristics of the final rendered video based on the “mainclip.wmv” source video. This includes framerate and resolution.