Back Forum Reply New

goto frame number / overlay question

Is there a function/filter which allows you to go to a specific frame number and then apply another filter to that frame (and onward)?

Here's why I ask, and maybe it'll refine my question:

I have a full-length movie.  At regular intervals, I want a little animation (which is a separate clip) to appear in the upper right corner, play back, then disappear...  like how you see a TV channel logo appear and disappear while you're watching a show.  I figured I could just use overlay(), but overlay() would just make the animation play once.  How do I get it so that it plays multiple times throughout the movie?  I figured quot;well maybe I could just loop the animation over and over again and then use conditionalreader() to specify overlay opacity to display or hide the animation when I want..  but that'd be a pain.  It'd be much easier to be able to do this:movie = mpeg2source(...)
animation = avisource(...)
go to frame number 100 in movie
overlay animation starting at frame 100
go to frame number 300 in movie
overlay animation starting at frame 300
go to frame number 500 in movie
overlay animation starting at frame 500
etc.How would I do this?  Any help appreciated!

You could use something like this:
PHP Code:
video=avisource("movie.avi")animation=avisource("animation.avi")black=blankclip(**yoursettings**)animation=animation+blackanimation=animation+animationanimation=animation+animationanimation=animation+animation...nbsp;#donbsp;thisnbsp;untilnbsp;thenbsp;lenghtnbsp;ofnbsp;animationnbsp;isnbsp;bignbsp;enoughanimation=animation.trim(**yoursettings**)overlay(...)nbsp;

or you trim your movie into parts first:

PHP Code:
movie=avisource("movie.avi")part1=trim(...)part2=trim(...)part3=trim(...)part4=trim(...)...nbsp;#andnbsp;sonbsp;on#thenbsp;addnbsp;yournbsp;animationnbsp;tonbsp;thenbsp;partsnbsp;younbsp;wantpart2=part2.overlay(...)#returnnbsp;moviereturnnbsp;part1+part2+part3+part4+...nbsp;

hanfrunz

[QUOTE=hanfrunz]You could use something like this:

PHP Code:
video=avisource("movie.avi")animation=avisource("animation.avi")black=blankclip(**yoursettings**)animation=animation+blackanimation=animation+animationanimation=animation+animationanimation=animation+animation...nbsp;#donbsp;thisnbsp;untilnbsp;thenbsp;lenghtnbsp;ofnbsp;animationnbsp;isnbsp;bignbsp;enoughanimation=animation.trim(**yoursettings**)overlay(...)nbsp;

Better:
PHP Code:
video=avisource("movie.avi")animation=avisource("animation.avi")black=blankclip(**yoursettings**)animation=animation+blackanimation.animation.Loop()overlay(...)nbsp;

Or you could try my ApplyEvery plugin, in which case you could do something like:

Code:
c = AVISource(quot;video.aviquot;)
bug = AVISouce(quot;animation.aviquot;)
ApplyEvery(c, 1000, quot;Overlay(bug)quot;)
¥
Back Forum Reply New