View Full Version : create a movie-introduction from a picture
JoLander
11th October 2002, 10:34
Hi,
I produce very often SVCD's from DVD's by using the DVD2SVSD suite.
Here I can use a still picture as a introduction before the movie begins, but I would like to add some dynamic to this 'still' introduction.
I would like to create a short introduction for my SVCD's by using a picture (.BMP, .JPG, or whatever) which should have a 2 second fade in from blackness to full picture, than a 2 second view of the picture, and finally a 2 second fade out to blackness.
I'm sure, this can be achieved with avisynth functions or plugins, but as I'm a 'newbee' I have no idea how.
In hope for help,
Joe
Wilbert
11th October 2002, 11:03
Download ImageSequence plugin from this link (http://forum.doom9.org/showthread.php?s=&threadid=26855) (this link can also be found in the FAQ).
Make the following script:
LoadPlugin("ImageSequence.dll")
# ImageSequence("path", firstframe, lastframe, fps)
ImageSequence("c:\images\sequence%.3d.tga", 1, 1, 25)
# fades 50 frames out
clip = FadeOut2(50)
# fades 50 frames in (look here (http://www.avisynth.org/index.php?page=FadeOut))
Dissolve(Blackness(50+2, clip), clip, 50)
JoLander
11th October 2002, 11:52
Hi Wilbert,
thanks for the quick answer, but it seems to be a not working solution.
Here are some more info:
I have installed AviSynth2 and ImageSequence.
I have a picture called bild1.jpg
I used your example, loaded it into VirtualDub and received the error message:
AviSynth open failure:
Script error: Invalid arguments to function "Blackness" :confused:
I changed the function from:
Blackness(50+2, clip)
to:
Blackness(clip, 50+2)
With this version I was able to load the script into VirtualDub with no problem, but as a result I got a 5 Frame Black sequence with the lenght of 200ms :(
Here is my complete script:
LoadPlugin("C:\PROGRAMME\DVD2SVCD\IMAGESEQUENCE\ImageSequence.dll")
ImageSequence("d:\aufnahme\bild%d.jpg", 1, 1, 25)
clip = FadeOut2(50)
Dissolve(Blackness(clip, 50+2), clip, 50)
Any more ideas ??
Joe
JoLander
11th October 2002, 12:02
@Wilbert
I just tested the ImageSequence function without any fading afterwards.
It seems that the function produces only 1 frame if there is just one picture as input, but for the effect I want to have I need 150 if I use 25fps.
Do I have to produce my picture 150 times with different filenames :confused:
Hopefully not !!
Joe
Malcolm
11th October 2002, 12:10
Use 'loop(clip, 150)'
this all can be found in the avisynth docs...
Malcolm
Wilbert
11th October 2002, 12:17
Malcolm was faster. I posted without thinking. Try the following:
LoadPlugin("C:\Program Files\avisynth\Plugins\ImageSequence.dll")
ImageSequence("C:\My Documents\My Pictures\1024x768white.jpg", 1, 1, 25).Loop(100)
clip = FadeOut2(50)
Dissolve(Blackness(clip, 52), clip, 50)
# results in a clip of 104 frames: 2 black, fades in 50 frames, fades out 50 frames, 2 black
# you also need v2.04 or higher for that
JoLander
11th October 2002, 13:43
Wilbert, Malcolm,
I tested the suggested solution and......
IT WORKS :p
Thank you all very much for the help.
Malcolm, yes it is all documented, but as new as I am it is sometime difficult to follow the documented instructions.
Because I have now a feeling what's possible, I will dive a bit deeper into the documents.
Fact is, I posted a question today, and my problem has been solved within a few hours. Sometime an example is more helpful than the documentation.
Thanks again for help.
Joe
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.