pinkshiro
27th August 2010, 06:27
I'm trying to apply a logo to the bottom right corner of a video using avisynth.
If the logo is a png format, the mask works great. Gif on the otherhand, just won't show up when I apply the following code:
#Logo overlay
Logo=ImageSource("logo.gif", end = 1, use_DevIL=false).ConvertToRGB32()
#Create a mask for the logo
LogoMask = ImageReader("logo.gif",pixel_type="RGB32").ShowAlpha(pixel_type="RGB32")
#Logo width and height
Logowidth = Width(Logo)
Logoheight = Height(Logo)
#Add in overlay
FinalVideo = Overlay(FinalVideo, Logo, (W-Logowidth)-20, (H-Logoheight)-20, mask=LogoMask)
But works fine when it's a PNG.
Do I have an issue with my code above? Or do I need to ensure the gif is saved out a particular way?
Hopefully someone can help me out with some advice, cheers.
If the logo is a png format, the mask works great. Gif on the otherhand, just won't show up when I apply the following code:
#Logo overlay
Logo=ImageSource("logo.gif", end = 1, use_DevIL=false).ConvertToRGB32()
#Create a mask for the logo
LogoMask = ImageReader("logo.gif",pixel_type="RGB32").ShowAlpha(pixel_type="RGB32")
#Logo width and height
Logowidth = Width(Logo)
Logoheight = Height(Logo)
#Add in overlay
FinalVideo = Overlay(FinalVideo, Logo, (W-Logowidth)-20, (H-Logoheight)-20, mask=LogoMask)
But works fine when it's a PNG.
Do I have an issue with my code above? Or do I need to ensure the gif is saved out a particular way?
Hopefully someone can help me out with some advice, cheers.