VideoHelp Forum




+ Reply to Thread
Results 1 to 10 of 10
  1. Is there a simple way to fade in and fade out images with alpha channel transparency into and out of clips with AviSynth?

    If so, please help me out.
    Quote Quote  
  2. Dissolve("File_01.avi","File_02.avi")

    or using Import

    Dissolve(Import("File_01.avs"),Import("File_02.avs "))
    .

    You'll have to cut at the transition points though.
    .
    Quote Quote  
  3. No, I know how to dissolve.

    I mean images, such as logos and the such, overlaid over the video. Again, I know how to overlay video, but:

    (1) How to I import an image with alpha transparency for overlay, and
    (2) How do I fade in and out in an overlay?
    Quote Quote  
  4. How to I import an image with alpha transparency
    with the ImageMagic plugin.

    (1) How to I import an image with alpha transparency for overlay
    Overlay doesn't take the alpha of one of the clips. You need to extract the alpha with ShowAlpha() and use that as the maskclip in Overlay.

    (2) How do I fade in and out in an overlay?
    You want to fade an overlay clip (actually a pic) into the background clip?
    Quote Quote  
  5. Yep, that does it. Thanks! For reference:

    Code:
    # Grabbing the movie clip on top of which the image should be placed. #
    
    clip1 = avisource("testing.avi")
    
    # Grabbing the image. Since IM only gives you one frame, we'll change the FPS to 2000 and assume it's 25. This gives us eight seconds worth image. Fade it in and out of nothingness. #
    
    clip2 = immareadpic("testing.png").changefps(2000).assumefps(25).fadein(60).fadeout(60)
    
    # Then overlay it over clip1, take the alpha-channel, and give the location where it's overlaid. I used a full video size image and positioned the text in my image processor, so it's set to 0:0. #
    
    overlay (clip1, clip2, mode="blend", mask=showalpha(clip2), x=0, y=0)
    This produces what you see in the attachment.

    Edit: I don't seem to be able to attach anything, so grab it here (712kb).
    Quote Quote  
  6. Cool!

    Btw, you also use loop:

    clip2 = immareadpic("testing.png").loop(2000).assumefps(25 ).fadeIO(60)

    or something like that.
    Quote Quote  
  7. Hey, I've never noticed the existence of loops before. Cool!

    => Goes to read the manual cover to cover.
    Quote Quote  
  8. Trying to bring my files into VirtualDub. The result is same with VDub and VDubMod as well as in v. 1.6.5.



    The only line in an entire test script is:

    Code:
    immareadpic("background.tga")
    TGA or PNG won't make a difference. Everything works fine in my media players.
    Quote Quote  
  9. I will try this myself this weekend. (I never saw this error message.)
    Quote Quote  
  10. Re-installing AviSynth didn't help. Installing AS 2.5.6 Beta3 didn't help. And I can't really re-install VirtualDub now, can I? Tested versions 1.5.10 and 1.6.6.

    Testing with other media players: BSPlayer works fine. Media Player Classic works fine. Windows Media Player crashes with the same error as VDub.

    TMPEGEnc works like a charm.

    The bizarre thing is that it worked first in VDub, as proven by the video I posted.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!