VideoHelp Forum




+ Reply to Thread
Results 1 to 5 of 5
  1. Member
    Join Date
    Oct 2006
    Location
    Australia
    Search Comp PM
    Hey

    I just figured out how to get an image into Avisynth using ImageSource()
    Atm, I'm using something like:
    ImageSource("C:\image.bmp",0,50,25)
    or
    ImageSource("C:\image.bmp",0,200,25).FadeIn(25).Fa deOut(50)

    However, I'm having troubles combining it with video.
    I want to for example, first show a video, then show the image for a few seconds and then another video.

    I thought something like this might work, but it doesn't:
    A=mpeg2source("C:\video1.d2v", idct=0)
    B=ImageSource("C:\image.bmp",0,200,25).BicubicResi ze(720,576).FadeIn(25).FadeOut(50)
    C=mpeg2source("C:\video2.d2v", idct=0)
    A+B+C

    This gives the error "Video formats do not match"

    Some help please. Thanks

    Also, this is kind of off topic, but is it possible to blend a video/image with another video/image together in Avisynth ?
    Quote Quote  
  2. Member
    Join Date
    Oct 2006
    Location
    Australia
    Search Comp PM
    EDIT: I just tried adding
    ConvertToYV12 and that fixed my problem

    Still wondering if it's possible to blend a video/image with another video/image together in Avisynth ?
    Quote Quote  
  3. Hi-

    I'm not entirely sure what you mean by "blend", but what that word conjurs up in my mind is the kinds of things you can do using the Layer or Overlay (Overlay is probably better) commands:

    http://www.avisynth.org.ru/docs/english/corefilters/layer.htm
    http://www.avisynth.org.ru/docs/english/corefilters/overlay.htm

    If by "blend" you mean something like "morph", then I don't know how to do that using AviSynth. I'm not saying it can't be done, but just that I don't know how.
    Quote Quote  
  4. Member
    Join Date
    Oct 2006
    Location
    Australia
    Search Comp PM
    Missed your post.

    By 'blend' I mean - as the first video is fading out, the second one is fading in at the same time. So, during this transition both videos should be showing (but one is obviously the opacity of one is decreasing aand the other is increasing)
    Quote Quote  
  5. Member gadgetguy's Avatar
    Join Date
    Feb 2002
    Location
    West Mitten, USA
    Search Comp PM
    Originally Posted by spanky123
    Missed your post.

    By 'blend' I mean - as the first video is fading out, the second one is fading in at the same time. So, during this transition both videos should be showing (but one is obviously the opacity of one is decreasing aand the other is increasing)
    That's what the Dissolve() filter does in AviSynth
    "Shut up Wesley!" -- Captain Jean-Luc Picard
    Buy My Books
    Quote Quote  



Similar Threads

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