Log in

View Full Version : basic avisynth questions and problems


josh000
5th February 2009, 12:51
Hello

I have 2 questions which I did not understand after reading the documentation.

I had a very basic script, calling avisource, and then blankclip to add a black clip to the end, however only a blackclip is produce. When I remove the link for blankclip the file specified in avisource plays fine.

I used ImageSource and ImageReader on a heap of frames stored as jpegs, and when playing in a player that supports avisynth, it was very jittery. It was fine after dubbing with virtualdub. Is this normal and expected behavior?

J_Darnley
5th February 2009, 13:00
1 - You need to splice the two together like: AviSource() + BlankClip()
2 - It can be very slow reading lots of files from a hard disk. I don't know what player you were using but it may have skipped frames if they weren't shown in time. Playing in VirtualDub will show frames as fast as it can without dropping any.

josh000
5th February 2009, 16:54
I did splice them, it was still just a blank clip.

kemuri-_9
5th February 2009, 17:10
post your script so we can point out the problem.

josh000
6th February 2009, 12:55
AviSource("XXX.AVI") + BlankClip(length=3000, color=$000000)

Gavino
6th February 2009, 13:42
AviSource("XXX.AVI") + BlankClip(length=3000, color=$000000)
That will only work if your clip happens to have the same properties as the default BlankClip, ie 640x480 24fps.

Otherwise you will have to make the BlankClip inherit your clip properties as follows:
v = AviSource("XXX.AVI")
v + BlankClip(v, length=3000, color=$000000)