Log in

View Full Version : avisynth script for "image plus background sound"?


DocDragon
14th July 2004, 04:20
i'm absolutely new to avisynth and my search through the forum didn't give me the desired result. i have a project and could use some help to create the following script:

1. i have a landscape picture in JPG-format.
2. i'd like to add some sound to the picture - let's say a 2-minute wave-file.
3. both 1) and 2) will be fed to CCE Basic via AVS script.

the result is basically my landscape picture with some background sound in a "movie" format. sounds pretty simple, huh? (but not for me :confused: )

any help is greatly appreciated.

DD

sh0dan
14th July 2004, 08:30
Something like:
image = ImageSource("c:\pics\landscape.jpg",0,1,25).ConvertToYUY2().loop(25*60*2)
sound = WavSource("c:\snd\sound.wav")
audiodub(image, sound)

DocDragon
14th July 2004, 14:19
Originally posted by sh0dan
Something like:
image = ImageSource("c:\pics\landscape.jpg",0,1,25).ConvertToYUY2().loop(25*60*2)
sound = WavSource("c:\snd\sound.wav")
audiodub(image, sound)


sh0dan:

thanks a lot for your input :) !!! it's interesting, though, that "ImageSource" is not recognized. i get the following error message:

Script error: there is not function named "ImageSource"

but if i replace "ImageSource" with "ImageReader," the script works great... :confused: do you have any explanation? btw, i'm using avisynth v2.54 b/c it is recommended with DVD-Rebuilder.

TIA.

DD

sh0dan
14th July 2004, 14:32
Sorry - Replace ImageSource with ImageReader, when using 2.54.