Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 31st May 2008, 04:15   #1  |  Link
kevo777
Registered User
 
Join Date: Feb 2007
Location: Dallas, TX
Posts: 28
Okay...I've searched all over this forum. I've seen lots of logo questions but none have addressed a logo that has drop shadow. I can get the image to appear in the corner just as I need but the drop shadow doesn't show up that I've applied to the original image. I have a feeling it has something to do with masking and alpha channels or whatever but I just can't wrap my head around it, even after hours of tweaking all the settings.

Code:
video=avisource("D:\~DV_Backups\California\tape.01\clip.08.avi").converttorgb32()
logo=imagesource("D:\logo-001.tif").converttorgb32()
maskclip=colorkeymask(logo,$000000,60)
clip=overlay(video,logo,mask=showalpha(maskclip),x=1,y=1,mode="blend",opacity=0.3)
return clip
That's my script. What am I doing wrong?
kevo777 is offline   Reply With Quote
Old 31st May 2008, 04:46   #2  |  Link
mikeytown2
Resize Abuser
 
mikeytown2's Avatar
 
Join Date: Apr 2005
Location: Seattle, WA
Posts: 623
Instead of overlay try Layer. Also with imagesource try this
Code:
imagesource("D:\logo-001.tif", use_DevIL=true, pixel_type="RGB32")
edit mod: corrected script

Last edited by Wilbert; 31st May 2008 at 11:51.
mikeytown2 is offline   Reply With Quote
Old 31st May 2008, 05:28   #3  |  Link
kevo777
Registered User
 
Join Date: Feb 2007
Location: Dallas, TX
Posts: 28
mikeytown2,

WOW!! Brother...you've brought tears to a grown man's eyes! I thank you, sir! That is exactly what I needed!!

God Bless the Doom9 forums!!! I'm here for life!
kevo777 is offline   Reply With Quote
Old 31st May 2008, 06:14   #4  |  Link
mikeytown2
Resize Abuser
 
mikeytown2's Avatar
 
Join Date: Apr 2005
Location: Seattle, WA
Posts: 623
Glad to help. I put the wiki in my favorites, it helps me a lot!
mikeytown2 is offline   Reply With Quote
Old 31st May 2008, 15:22   #5  |  Link
kevo777
Registered User
 
Join Date: Feb 2007
Location: Dallas, TX
Posts: 28
Yeah I hear that. I have it bookmarked as well. AviSynth's wiki is a great resource, very well done thus far. I had tried the Layer command in the past unsuccessfully [shrug]. Not sure what I was missing then.
kevo777 is offline   Reply With Quote
Old 31st May 2008, 16:43   #6  |  Link
mikeytown2
Resize Abuser
 
mikeytown2's Avatar
 
Join Date: Apr 2005
Location: Seattle, WA
Posts: 623
You needed the alpha channel of the tiff, for the drop shadow. Imagesource defaults to RGB24, you needed RGB32. pixel_type="RGB32" is the key. Here is the entry in the wiki on the subject
Quote:
pixel_type = RGB24: Added in v2.56, and allow the output pixel format to be specified, Y8 (8-bit greyscale), RGB24 and RGB32 are supported. The alpha channel is loaded only for RGB32 and only if DevIL supports it for the loaded image format.
mikeytown2 is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:22.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.