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. |
29th October 2008, 02:29 | #1 | Link | |
Registered User
Join Date: Oct 2008
Posts: 4
|
FadeIn/FadeOut to transparent
I have created an avisynth function (below) that creates a scoreboard that fades in and fades out, i want to overlay it onto another video. My problem is if i do a straightoverlay with no mask it fades in from a black square and fades out to a black square. If i use the ShowAlpha() it doesn't appear at all, i think the fade in/fade out is fading to black, i need it to fade to transparent:
Quote:
Last edited by codemonkey76; 29th October 2008 at 02:57. |
|
29th October 2008, 02:40 | #2 | Link |
Registered User
Join Date: Oct 2008
Posts: 4
|
oh i forgot to mention the usage of the function is
Scoreboard("0","0","0","0","1","1","1","1") where 0:0 - 0:0 is the previous score and 1:1 = 1:1 is the new score it fades in the scoreboard with the previous score, changes the score to the new score then fades the scoreboard out after a little while |
29th October 2008, 04:38 | #3 | Link |
Resize Abuser
Join Date: Apr 2005
Location: Seattle, WA
Posts: 623
|
Apply the fade in/out on the mask
http://avisynth.org/mediawiki/Mask http://avisynth.org/mediawiki/Overlay Another option is to Animate the opacity http://avisynth.org/mediawiki/Animate ps ImageSource((...,0,0,...) is one frame ImageSource((...,0,1,...) is two frames
__________________
Mine: KenBurnsEffect/ZoomBox CutFrames Helped: DissolveAGG ColorBalance LQ Animation Fixer |
29th October 2008, 04:49 | #4 | Link | |
Registered User
Join Date: Oct 2008
Posts: 4
|
Quote:
EDIT: OK, i am researching what you have suggested, so should i create a clip, say 30 seconds of white and fade to black and vice-versa and use mask to apply it to the score clip? am i on the right track? Last edited by codemonkey76; 29th October 2008 at 05:00. |
|
29th October 2008, 05:18 | #5 | Link | |
Registered User
Join Date: Oct 2008
Posts: 4
|
thanks, I guess all i needed was pointing in the right direction, i replaced the last line in the function with
Quote:
|
|
29th October 2008, 09:31 | #6 | Link |
Avisynth Developer
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
|
@codemonkey76,
Read the fine print to do with FadeIn/FadeOut with regards to them adding an extra frame, it may throw off your calculations for edit points in your scripts. Also there is a FadeIO variant. |
Thread Tools | Search this Thread |
Display Modes | |
|
|