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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 7th July 2008, 07:36   #1  |  Link
Alex-Kid
Antronio's DV ambassador
 
Alex-Kid's Avatar
 
Join Date: Mar 2006
Location: Santiago, Chile
Posts: 115
Animated overlay with transparency

Hi everybody.

I've always visited this forum as a knowledge source in every video job i've done. Now it's time to make a question because I still haven't found what I'm looking for (yes, i like U2 ).

I started a week ago editing some baby fútbol (smallest field with five players) material I've filmed. Every goal scored must have an animated overlay (similar to euro 2008) showing name of the player and time of scoring everytime a goal has occured. The overlay is a sequence of PNG images with transparency enabled (with fade in and out)and the text is shown through subtitles (fading out together with overlay). The script I'm using is as follows:

Code:
testcard = avisource("petazetas_vs_mamaestapresa.avi").ConvertToRGB32()
tcard01 = testcard.trim(8587,8757)
subs = ImmaRead("gol%02d.png", start=1, end=45)
logo = Overlay(tcard01, subs, 165, 280, ShowAlpha(subs), 255, "blend")
dissolve(trim(testcard, 0, 8586),logo,trim(testcard,8758,24546),5)
subtitle("JUAN CASTILLO", 230, 287, 8622, 8752, "Arial Narrow Cursiva", 16, $00ffffff, $ff000000, 7)
subtitle("MIN. 51", 248, 307, 8622, 8752, "Arial Narrow Cursiva", 14, $00ffffff, $ff000000, 7)
converttoyv12()
At this time, there's only one issue with dissolve ranges, easy to solve. But there are another issues I think they can be enhanced:
  1. The trim/dissolve filters must be used for showing the overlay from the beginning (if not, it starts from frame 0 of testcard, and the animation gets lost).
  2. Subtitles have not fading out. Anybody, please?
  3. This script shows only one goal. The matches have often 5-8 goals average, so the overlay must be showed many times. Can memory issues occur (overlay called several times)?
  4. Finally, Would be better to make a function for this?

Thanks in advance. Saludos

By ALEX-KID
Alex-Kid is offline   Reply With Quote
 

Tags
animated, logo, overlay, transparency

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 16:19.


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