I'm sure this is a question that has been asked and answered before but I seem to be having a hard time finding a solution to my question. Heck, I might not even be using the right terminology for what I want to do so I will describe what I want to do. Pretend the following image is a standalone 15 second video:
What I want to do is overlay another video on top of the screen of the video above. How can I do this?
+ Reply to Thread
Results 1 to 9 of 9
Thread: Overlay video on video?
yes, there are other ways
e.g. you could do it in avisynth with overlay() or mt_merge() . It requires scripting, and there is a learning curve
All you need is a video editor with 2 tracks. Even free video editors should be able to do this. Something like wax should be able to do this
this video, the scripting looks rather simple so if there is a learning curve, it won't be a steep one. I might use Virtual Dub since it is already installed on my computer. I can't wait to actually dig into this!
Avisynth isn't that bad once you start if you have some coding background.
But I can forsee a problems you 're going to have if that is your actual background image . If your background image has alpha channel, it will most likely not be rendered in your final format (it will be "black" in most video formats, which typically are YCbCr , and are not RGBA). I'm referring to the background area around the monitor in the base picture
Also what is this for? What is the final format goal (how is it going to be watched) ? or is it for use in another program ?
If you provide a sample of your elements (the background image, and sample of the overlay video) someone here can help you with starting a script
It's just usually much much easier for most people to use a video editor. You just drop & drag the overlay video, scale it to "fit" within the monitor screen graphic.
Avisynth. I feel that Avisynth has potential to do a lot for free and I want to see that potential myself.
vegas when all i am doing is purely experimenting :P. I mean unless there is a free editor that can do what I want or there is something similar to Avisynth then I see Avisynth as the only solution. Am I wrong?
No, it's not the only solution there are free NLE's e.g. lightworks , videopad ? , and you can use the free trials on most NLE's for a month, I think even blenders' VSE can do this
What you want to do is actually quite easy in avisynth with Overlay() , it will basically take 3 lines and might look something like this
background = Imagesource("background.png") overlayvideo = AVISource("video.avi") Overlay(background, overlayvideo, x=0, y=0)
vid=AviSource("vid.avi").BicubicResize(204,130) bg=ImageSource("tv.png").ConvertToYV12() Overlay(bg,vid,27,49)
I used a screen cap to make the image file so you'll probably have to adjust the overlay X,Y location if you use the original source image. You can use an alpha (transparency) map if you want to feather the edges.