Log in

View Full Version : overlay 2 different movies with top movie no bg color


lindylex
14th March 2011, 12:41
How can I overlay two different movies with the top movie having no background color? I tried to set the bg color using the full opacity $FF000000 value like I do for Subtitle but that does not work for movies.

I want to know if I can do this without the use of a mask image.

a = avisource ("G:\MVI_5782.AVI", true )
intro_cutout_box_movie = BlankClip(a, audio_rate=44100, 180, color=$FF000000, width=328, height=58 )

m1=BlankClip(a, audio_rate=44100, 180, color=$B6B7AF )

return layer (m1.ConvertToRGB32(),intro_cutout_box_movie.ConvertToRGB32())

Gavino
14th March 2011, 14:01
It's not clear to me what you are trying to do or what you expected to happen here.

color=$FF000000 gives a completely transparent clip, so obviously if you layer that on top of anything, it will be invisible.

lindylex
14th March 2011, 20:17
Gavino, you are correct I was not clear enough. Inside the "intro_cutout_box_movie" movie I have a transparent png.

a = avisource ("G:\MVI_5782.AVI", true )
intro_cutout_box_1 = imagesource("C:\projects\video_editing\projects\howto\Doube_Christine\cover_cutouts_1.png", pixel_type = "RGB32")
intro_cutout_box_movie = BlankClip(a, audio_rate=44100, 180, color=$FF000000, width=328, height=58 ).overlay (intro_cutout_box_1, mode="blend", mask=intro_cutout_box_1.ShowAlpha(pixel_type="RGB32"), x=0, y=0, opacity=1)

m1=BlankClip(a, audio_rate=44100, 180, color=$B6B7AF )

return layer (m1.ConvertToRGB32(),intro_cutout_box_movie.ConvertToRGB32())

lindylex
14th March 2011, 20:35
This is what the movie looks like. I want to get rid of the black border.

http://mo-de.net/d/example.png

Gavino
14th March 2011, 21:50
Can't you just layer the image (intro_cutout_box_1) directly onto the base clip?
What purpose does intro_cutout_box_movie serve?

lindylex
14th March 2011, 22:00
I want to fade the movie in and out at different times within the timeline of the main movie and move its location. I'm treating the movie as a container.

Gavino, nice work on the Gscript. I used it before and had no idea you were the creator.

Inside intro_cutout_box_movie movie I have dynamic text. That lays on top of the transparent intro_cutout_box_1 png.

Gavino
14th March 2011, 22:50
But intro_cutout_box_1 is already a movie in its own right and can be faded in and out. It can also have text subtitles applied to it. So I still don't see what you need the 'container' for.

But if you are going to use it, you should create intro_cutout_box_movie with pixel_type="RGB32" and use Layer rather than Overlay to add the image to it. Overlay will not preserve the transparency data in its result.

lindylex
17th March 2011, 06:01
Gavino, thanks again for all the help. I was under the notion that I could only apply those effects to a movie clip. Doing the following

intro_cutout_box_1 = imagesource("C:\projects\video_editing\projects\howto\Doube_Christine\cover_cutouts_1.png", pixel_type = "RGB32")

always seemed like it was just to get the image and store it as a variable. I was not aware that I could manipulate it like a movie clip.

Thanks.