View Full Version : Include Pictures with Avisynth
un1c0rn
5th May 2007, 15:07
Hi,
my english is not very good. :)
My question is:
How i can include into videos pictures? Is it possible? I'm using virtual dub and put subtitles in movies. And now i want to show pics in a video.
:thanks:
Hi,
How i can include into videos pictures?
video=AVISource("...")
image=ImageSource("<your filename here>").ConvertToYV12().AssumeFPS(video).Loop(<number of frames you need>)
return image + video
Something like that? :) (If your video is in some other colorspace, you need to change the ConvertToYV12() accordingly...)
np: Pole - Sylvenstein (Steingarten)
un1c0rn
5th May 2007, 18:03
hi, thanks for that fast answer.
my code:
video=DirectShowSource("063.wmv")
image=ImageSource("test.GIF").ConvertToYV12().AssumeFPS(video).Loop(20)
return image + video;
I'm using DirectShowSource. Is it possible like that?
If i open it with virtual dub, i get a message:
--> unexpected character ";"
what does it mean?? Is that code wrong?
I'm using DirectShowSource. Is it possible like that?
Yes. I'm just dumb, is all...
If i open it with virtual dub, i get a message:
--> unexpected character ";"
what does it mean?? Is that code wrong?
Just about every other programming language but AviSynth I'm using needs a ";" at the end of a return statement, so I automatically put one there (and didn't test it, of course) - just remove the ";" at the very end and the script should work...
np: RJD2 - Have Mercy (The Third Hand)
let me use this topic to ask a little question: i'm overlaying my image to a video, using this code:
logo = imagesource ("").ConvertToRGB32
overlay(logo,mask=logo.showalpha(), x= 315, y= 200, mode ="blend",
opacity=1)
but the case is that my image got a white background, and i wanna make it disappear (like applying full transparency on it). How could i do that? i tryed to figure out, but i couldn't
Oh, i've just got it... using ColorKeyMask and a background iwth the same color, but without any color in the main image, i was succesful doing it... and learned how to move it too... thnx avisynth :D
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.