[Lights, Camera, Action]

Home    Forums    Tutorials    Search    Books    Links 

Windows Movie Maker tips, tutorials, forums and more...



 
Windows Movie Maker Home   Search   Login   Register   Member List  
Windows Movie Maker  > Transitions, Effects and Titles  > Re: Video Camera Overlay    
Previous Thread :: Next Thread 
 Author Thread: Video Camera Overlay
NovaDude is not online. Last active: 6/17/2004 7:29:45 PM NovaDude
Top 100 Poster
Joined: 19 May 2004
Total Posts: 11
 
Video Camera Overlay
Posted: 19 May 2004 04:09 PM
Hey there,

First of all, I'm new to the forums, so hello, I hope you guys can help me out when ever
I need some help with MM2 :-)

So here's the question I have,
I record video in game and I want to add this overlay image or effect which looks like a video camera, I have no idea how to do this but lets just say I want to make it look like it was recorded from a video camera (which would be from inside of a plane, in my movie).

I hope you guys can help me, and if I'm not specific enough, please let me know so I can
tell you more about what you need!

Thanks,
Nova
Rehan is not online. Last active: 5/8/2012 5:49:17 PM Rehan
www.rehanfx.org
Top 25 Poster
Joined: 21 Apr 2004
Total Posts: 2176
 
Re: Video Camera Overlay
Posted: 22 May 2004 05:44 AM

No idea what you are talking about.

Please explain.


www.rehanfx.org - do more with Windows Movie Maker...
rehanfx.x10hosting.com - mirror site
pezman is not online. Last active: 5/23/2004 2:39:30 AM pezman
Joined: 23 May 2004
Total Posts: 1
 
Re: Video Camera Overlay
Posted: 23 May 2004 02:21 AM
I think that you may mean either a keying effect or a picture-in picture effect? These are implemented as transitions. Below is a code snippet that will create these transitions for you. Then just match the length of the two clips and drag the transition so that it covers both clips. You will pobbly need to tweak the transitions to get what you want. References are here:
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/directx9_c/directx/htm/keytransition.asp
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/directx9_c/directx/htm/keytransition.asp

<Transitions>
<TransitionDLL guid="{BB44391D-6ABD-422f-9E2E-385C9DFF51FC}" >
<Transition name="Compositor Transition" iconid="11" comment="Compositor Transition">
<Param name="Height" value="120"/>
<Param name="Width" value="160"/>
<Param name="OffsetX" value="80"/>
<Param name="OffsetY" value="60"/>
</Transition>
</TransitionDLL>
<TransitionDLL guid="{C5B19592-145E-11D3-9F04-006008039E37}" >
<Transition name="Non-red Key Transition" iconid="11" comment="non-red Key Transition">
<Param name="KeyType" value="1"/>
<Param name="Similarity" value="50"/>
</Transition>
<Transition name="Lumi Key Transition" iconid="11" comment="Lumi Key Transition">
<Param name="KeyType" value="2"/>
<Param name="Luminance" value="10"/>
</Transition>
</TransitionDLL>
</Transitions>
NovaDude is not online. Last active: 6/17/2004 7:29:45 PM NovaDude
Top 100 Poster
Joined: 19 May 2004
Total Posts: 11
 
Re: Video Camera Overlay
Posted: 25 May 2004 03:40 PM
Hey I'm a total newbe at this, I'm really sorry, let me point some stuff out:

1) I want something like [url=http://www.m00.sys-techs.net/camera.wmv]this[/url] please look at the stuff around the crosshair.

2) I have no idea how to work with that <Transition> stuff :)

Thanks!
NovaDude is not online. Last active: 6/17/2004 7:29:45 PM NovaDude
Top 100 Poster
Joined: 19 May 2004
Total Posts: 11
 
Re: Video Camera Overlay
Posted: 25 May 2004 03:41 PM
The link went a bit weird so this is the link:

http://www.m00.sys-techs.net/camera.wmv
Rehan is not online. Last active: 5/8/2012 5:49:17 PM Rehan
www.rehanfx.org
Top 25 Poster
Joined: 21 Apr 2004
Total Posts: 2176
 
Re: Video Camera Overlay
Posted: 25 May 2004 09:17 PM
This is a simple key transition. Here are detailed instructions:

You can achieve this by first making a still image file of the overlay camera. Give all those areas you want to appear transparent a particular color value that does not appear anywhere else in the original movie.

Now save the following xml code in a file called anything.xml and place it in C:\Program Files\Movie Maker\Shared\AddOnTFX. Make the folder if it is not there.

Run WMM, make sure the transition MyOverlay appears int he transitions. Now import your video and the image file in Collections. Add them to the Storyboard with camera image on the right, and apply the MyOverlay transition between them.

Go in Timeline mode, and increase the still camera image's duration to as long as the orignal movie. (Drag red marker on the right hand edge to right).

Now grab the image from smewhere else (with grab hand icon), and drag it towards left over the movie as much as you can.

---

<TransitionsAndEffects Version="1.0">
<Transitions>
<TransitionDLL guid="{C5B19592-145E-11D3-9F04-006008039E37}" >
<Transition name="MyOverlay" iconid="11">
<Param name="KeyType" value="0" />
<Param name="RGB" value="0" />
</Transition>
</TransitionDLL>
</Transitions>
</TransitionsAndEffects>



www.rehanfx.org - do more with Windows Movie Maker...
rehanfx.x10hosting.com - mirror site
NovaDude is not online. Last active: 6/17/2004 7:29:45 PM NovaDude
Top 100 Poster
Joined: 19 May 2004
Total Posts: 11
 
Re: Video Camera Overlay
Posted: 26 May 2004 09:13 AM
Okay I done all that, seems to be doing great, I came a lot further thank you.

But still a question now, because I dont have it to work the way I want it :-D

I made that which I want transparent a black colour.
Now what should I change in the transition to make it go transparent?

Thanks!
NovaDude is not online. Last active: 6/17/2004 7:29:45 PM NovaDude
Top 100 Poster
Joined: 19 May 2004
Total Posts: 11
 
Re: Video Camera Overlay
Posted: 26 May 2004 09:15 AM
The image:
http://www.m00.sys-techs.net/camera_overlay.bmp
NovaDude is not online. Last active: 6/17/2004 7:29:45 PM NovaDude
Top 100 Poster
Joined: 19 May 2004
Total Posts: 11
 
Re: Video Camera Overlay
Posted: 26 May 2004 09:16 AM
I'm so sorry for all the posting! I mean:
http://www.m00.sys-techs.net/camera_layer.bmp
NovaDude is not online. Last active: 6/17/2004 7:29:45 PM NovaDude
Top 100 Poster
Joined: 19 May 2004
Total Posts: 11
 
Re: Video Camera Overlay
Posted: 26 May 2004 09:17 AM
http://www.m00.sys-techs.net/camera%20layer.bmp
Rehan is not online. Last active: 5/8/2012 5:49:17 PM Rehan
www.rehanfx.org
Top 25 Poster
Joined: 21 Apr 2004
Total Posts: 2176
 
Re: Video Camera Overlay
Posted: 26 May 2004 11:46 AM
Nova, your image doesnt have black pixels in them. For the transition to work the overlay image must have black pixels which will be rendered transparent showing the image underneath...

Furthermore do not use a large image for overlay... WMM would resize your image and you may loose black pixels where you want them...

I have uploaded a modified version of the image file here:
http://server5.uploadit.org/files/rehanA-camera_layer.jpg



www.rehanfx.org - do more with Windows Movie Maker...
rehanfx.x10hosting.com - mirror site
NovaDude is not online. Last active: 6/17/2004 7:29:45 PM NovaDude
Top 100 Poster
Joined: 19 May 2004
Total Posts: 11
 
Re: Video Camera Overlay
Posted: 26 May 2004 05:59 PM
Thank you! And let me look into this.

And I'm sorry about so much posts in once, my bad!
NovaDude is not online. Last active: 6/17/2004 7:29:45 PM NovaDude
Top 100 Poster
Joined: 19 May 2004
Total Posts: 11
 
Re: Video Camera Overlay
Posted: 26 May 2004 06:06 PM
Not the best but I'm getting the hang of this:

http://www.m00.sys-techs.net/overlay.wmv
Glynnagen is not online. Last active: 10/30/2009 6:06:44 AM Glynnagen
Joined: 18 Sep 2004
Total Posts: 99
 
Re: Video Camera Overlay
Posted: 06 Oct 2004 07:59 PM
Hey, could you make it so there was the other primrary colours in the overlay colour? Instead of just black? Or even a tutorial teach how to change the colour to whatever a person wanted.

What does current events show about George Bush's Management Skills?
Glynnagen is not online. Last active: 10/30/2009 6:06:44 AM Glynnagen
Joined: 18 Sep 2004
Total Posts: 99
 
Re: Video Camera Overlay
Posted: 06 Oct 2004 08:09 PM
would there be a way to get animated gifs working in this?

What does current events show about George Bush's Management Skills?
Rehan is not online. Last active: 5/8/2012 5:49:17 PM Rehan
www.rehanfx.org
Top 25 Poster
Joined: 21 Apr 2004
Total Posts: 2176
 
Re: Video Camera Overlay
Posted: 08 Oct 2004 12:02 PM
Color is specified as a decimal integer which in hex form is like this: 0xRRGGBB. If you dont know how to work with hexa-decimal numbers then the following works out in decimal numbers:

Let your color be (r,g,b) where each r,g,b is from 0 to 255.

white is (255,255,255) and black is (0,0,0)

The formula is:

d = r*65536 + g*256 + b

Therefore to use an orange shade (255,103,33) as the key color, the value should be:

d = 255*65536 + 103*256 + 33
= 16738081

Hope it helps



www.rehanfx.org - do more with Windows Movie Maker...
rehanfx.x10hosting.com - mirror site
Glynnagen is not online. Last active: 10/30/2009 6:06:44 AM Glynnagen
Joined: 18 Sep 2004
Total Posts: 99
 
Re: Video Camera Overlay
Posted: 08 Oct 2004 07:41 PM
Like in the windows colour picker in paint?

and also can animated gifs work in this effect?

So I can have an animated gif going over the top of a clip. Is this possible?

What does current events show about George Bush's Management Skills?
Sparky is not online. Last active: 10/15/2004 1:38:45 PM Sparky
Joined: 12 Oct 2004
Total Posts: 3
 
Re: Video Camera Overlay
Posted: 15 Oct 2004 12:52 PM
I have a question on this?
I have tried to use colors other than black but it doesn't seem to work. Only if I use black. My overlay logo has black so black won't work.

Btw, I am restarting the program after changing the decimal value.
Anyone know what I might be doing wrong?
dlk is not online. Last active: 7/2/2011 1:14:29 PM dlk
Top 25 Poster
Joined: 11 Sep 2004
Total Posts: 2027
 
Re: Video Camera Overlay
Posted: 15 Oct 2004 06:11 PM
I have found that getting a color match can be tricky. I
went out out to google images and searched for color bar.
I downloaded a couple of those, and tested away...
See which colors I could get to become transparent.
I think I used one called colorbartest.gif, and got
red,green, blue and yellow to work But the funny
thing was...I could never get all the color to become
transparent. If you test with colorbartest, you will see
what I mean.
Then I tried taking a snaphot of my video clip(within
movie maker) and loaded that image into photoshop.
Then I used the eyedropper to sample the color, and
get the exact RGB code. I coded my transition with
that RGB....but no luck. I spent a lot of time on this, but....
no help, just commiseration.

dlk
Rehan is not online. Last active: 5/8/2012 5:49:17 PM Rehan
www.rehanfx.org
Top 25 Poster
Joined: 21 Apr 2004
Total Posts: 2176
 
Re: Video Camera Overlay
Posted: 15 Oct 2004 06:59 PM
Glynn: Yes animated gifs should work. But I dont understand "going over" bit... If you mean some character/object inside the gif moving within the initial gif... then yes it will appear moving over your clip if you apply the overlay/key properly.

Sparky: Make sure you are calculating key value corrcetly. Give me a link to your overlay image and integer value you calculated for it, to verify if it is ok.

www.rehanfx.org - do more with Windows Movie Maker...
rehanfx.x10hosting.com - mirror site
Rehan is not online. Last active: 5/8/2012 5:49:17 PM Rehan
www.rehanfx.org
Top 25 Poster
Joined: 21 Apr 2004
Total Posts: 2176
 
Re: Video Camera Overlay
Posted: 15 Oct 2004 09:46 PM
dlk, I found the colorbartest.gif using google, is this same one you are using?.

Using Paint shop pro I can examine that the red and green in this file are pure red and green values and so the overlay transitions with these values 16711680 (for red) and 65280 (for green) work ok.

However blue in the image is not pure blue. it turns out to be (32,32,222) = 2105566. Again using this number the overlay key transition works fine.

www.rehanfx.org - do more with Windows Movie Maker...
rehanfx.x10hosting.com - mirror site
dlk is not online. Last active: 7/2/2011 1:14:29 PM dlk
Top 25 Poster
Joined: 11 Sep 2004
Total Posts: 2027
 
Re: Video Camera Overlay
Posted: 16 Oct 2004 04:43 PM
Rehan,

Yep, that looks like the one I used. Now, let's take green for example.
There are like 16 green bars...and only 12 of them become transparent...
the other 4 stay green. So "it seems" that small variations mess it up,
but "it seems" that getting uniform colors on a video clip would be
difficult, so "it seems" that transparent GIFs or PNG files are you best
bet. Unless..I am just doing something wrong.
Here is my XML...
<TransitionsAndEffects Version="1.0">
<Transitions>
<TransitionDLL guid="{C5B19592-145E-11D3-9F04-006008039E37}" >
<Transition name="MyOverlaygr" iconid="11">
<Param name="KeyType" value="0" />
<Param name="RGB" value="0x00FF00" />
</Transition>
</TransitionDLL>
</Transitions>
</TransitionsAndEffects>

I also found a reference to a param called Similary...but that
doesn't seem to have an affect.
I thought it might allow for color variations

dlk
dlk is not online. Last active: 7/2/2011 1:14:29 PM dlk
Top 25 Poster
Joined: 11 Sep 2004
Total Posts: 2027
 
Re: Video Camera Overlay
Posted: 16 Oct 2004 04:47 PM
Rehan...
In regards to animated GIFs. I find that yes... they work, but the ones I find
are small and when you add them to your project...they strech to fill the screen,
which makes them useless. You can alter them in photoshop...but I haven't
figured out the easy way to do it. I am sure there is an easy way.

dlk
Rehan is not online. Last active: 5/8/2012 5:49:17 PM Rehan
www.rehanfx.org
Top 25 Poster
Joined: 21 Apr 2004
Total Posts: 2176
 
Re: Video Camera Overlay
Posted: 17 Oct 2004 06:35 AM
Your xml code is fine. Exactly the value you use (0x00FF00) works here. I guess you must be using a smaller thumbnail of the actual gif image? Can you get the one from the link I sent and try again.

You assumption about color variation is correct. It seems there are a few bugs in directx implmentation: <i>Similarity</a> value other than 0 don't work properly. Also Non-Red key transition (KeyType=1) doesnt work as expected. For example with the above gif image one would expect cyan and green which dont have red components to become transparent but actually cyan, pink and blue become transparent. I can't explain it other than to say that it must be broken.

Animated GIFs can be resized using Paint shop Pro's accompanying animation program "Animation Shop". But resizing smaller images into bigger size will always be pixelated, though a bit less than MM resizing. What you need to do is resize

www.rehanfx.org - do more with Windows Movie Maker...
rehanfx.x10hosting.com - mirror site
Rehan is not online. Last active: 5/8/2012 5:49:17 PM Rehan
www.rehanfx.org
Top 25 Poster
Joined: 21 Apr 2004
Total Posts: 2176
 
Re: Video Camera Overlay
Posted: 17 Oct 2004 06:37 AM
Sorry pressed the post button in the middle of a sentense...

What you need to do is resize the frame without resizing the contents by filling up the extra region with background color. I dont know any software that might do that. Anybody ?

www.rehanfx.org - do more with Windows Movie Maker...
rehanfx.x10hosting.com - mirror site
Previous Thread :: Next Thread 
Goto to page:  Prev Next
 
Movie Maker Forums  > Windows Movie Maker  > Transitions, Effects and Titles  > Re: Video Camera Overlay