Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > General > Animation and Effects

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-28-2003, 02:07 PM   #1
idpexec
Senior Member
 
Join Date: Apr 2003
Posts: 111
Default FLV with Alpha Channel

Hey there,

Anyone know if it's possible to preserve the alpha channel when going from After Effects to Squeeze so that the flv has an alpha?

I'm trying to get a subject against a transparent background.

Thanks,
WARD
idpexec is offline   Reply With Quote
Old 07-29-2003, 01:47 PM   #2
jevans
Masked Member
 
jevans's Avatar
 
Join Date: Dec 2001
Location: Canada
Posts: 257
Default alpha channels / transparent video backgrounds

hey idpexec,

just wondering if you had found any usefull info on your post re: exporting alpha channels. i too am in the same sort of predicament. apparently this software www.wildform.com/tutorials/transparent/#1 makes it possible to export swf's with transparent backgrounds. does anyone have any knowledge at all on importing alpha channels from video to flash.

thanks for your time, jevans
jevans is offline   Reply With Quote
Old 05-13-2004, 10:43 AM   #3
charlieFlash
another concerned citizen
 
charlieFlash's Avatar
 
Join Date: Feb 2002
Location: Fayetteville, NY
Posts: 149
Send a message via AIM to charlieFlash
Default

Same question:

Can flash import a video alpha layer or do you have to use a png sequence or what?

Any help out there?
__________________
{ charlie : flashDeveloper }

// concept. code. test. debug. test again.
if (success) {
beer();
} else {
coffee();
}
charlieFlash is offline   Reply With Quote
Old 05-13-2004, 11:50 AM   #4
petefs
Fried Onions
 
petefs's Avatar
 
Join Date: Apr 2004
Location: Chicago, IL
Posts: 1,328
Send a message via AIM to petefs Send a message via MSN to petefs Send a message via Yahoo to petefs
Default

I don't believe the Sorenson Spark codec allows for alpha transparency -- so for FLV I believe you're out of luck. What are your project intentions more specifically? You can use a PNG sequence, as charlieFlash mentions, or you could pre-composite if it's feasible in your project. pre-compositing will save you quite a bit of filesize either way, as you're dropping a whole 8-bit channel every frame.

If I'm wrong about FLV I'd love to hear, but I've read nowhere that FLV has support for 8-bit alpha.
petefs is offline   Reply With Quote
Old 05-13-2004, 12:12 PM   #5
charlieFlash
another concerned citizen
 
charlieFlash's Avatar
 
Join Date: Feb 2002
Location: Fayetteville, NY
Posts: 149
Send a message via AIM to charlieFlash
Default

Thanks, this confirms what I suspected. Nowhere could I find info that Flash supports alpha channel video imports.

I was wondering because I don't have a ton of video experience (read: I rent movies from Blockbuster and thats about it) and I wanted to have a video of a narrator with a transparent bg that I could then load into flash on top of my other content and have the narrator 'interact' with the flash piece. I suppose exporting a png sequence from Premiere or Director would support selecting a bg color in my video clip to be the alpha channel?
__________________
{ charlie : flashDeveloper }

// concept. code. test. debug. test again.
if (success) {
beer();
} else {
coffee();
}
charlieFlash is offline   Reply With Quote
Old 05-13-2004, 01:17 PM   #6
petefs
Fried Onions
 
petefs's Avatar
 
Join Date: Apr 2004
Location: Chicago, IL
Posts: 1,328
Send a message via AIM to petefs Send a message via MSN to petefs Send a message via Yahoo to petefs
Default

I don't use Premiere, but what you'll be looking for is a Chroma Key filter of some sort. Set the key colour to the background, and adjust the spill & tolerance until the key looks good. When you render from premiere there should be an option to do a frame sequence, and PNG is your best choice of formats -- just make sure it's 24bit with alpha channel enabled.

Be careful with doing chroma shots in video -- as I'm sure you're doing. There are a few things you want to pay careful attention to

1) MiniDV/DV standard is 4:1:1. What those numbers stand for are -
4: Luma (brightness)
1:1 Chroma (color)
and it reffers to how often each is 'sampled' or 'recorded'. So for every four frames, chroma is only sampled once in DV! That's the primary reason for a 'smeary' sort of look compared to film cameras that shoot 4:4:4 (or expensive high-def cameras).

What does this mean for your chroma key shot? It means that if there is any fast motion it will cause all sorts of problems with your key. To minimize this, try to keep your narrator in the center of your frame and avoid any quick gestures. If you really want him to flail his arms like a madman, try doing it in slow motion and speeding it up afterwards : ) There is software available to help reduce DV color contamination (my favourite is The Magic Bullet from http://www.theorphanage.com/ ), but I'm sure you don't want to dig that deep yet.

2) lighting! I'm sure you don't have a professional lighting kit, but you don't need one ^_^ If you have a few bucks go to home depot and pick up some tungsten or halogen work lamps of a few different wattages (if they have colour/temperature ratings, choose the lower temperature because it's a warmer light), some transparent amber plastic (I think they should have something like that), and whatever cheap hardware you can find to give you flexible positioning. Also if they have some light-diffusion material that will be very useful (traditionally chroma key lighting is done with soft-boxes).

What you want as far as lighting a chroma key shot are three things
a) Even lighting on your background
b) No shadows cast on your background
c) No blue being reflected off the backround onto your subject's shoulders/body (it will creep onto the edges of his body, causing for a difficult key. Spill control in software helps, but it will only do so much!)

To achieve this position your lights low and wide -- if you notice blue spilling onto your subject, try putting the transparent amber material (called a 'gel', but I'm not sure they'll have actual gels at home depot) in front of your lights. Keep in mind that you want the background as bright as possible without causing 'spill'.

3) The screen itself! Chroma key material is actually rather expensive, as with most things in the overpriced movie-making world. You're not going for a world-class key, but again...spending a few bucks will give you a much better result : ) If you have something flat that you can paint, buy some matte green paint (ask the paint person what the flattest dullest base they have is. you want the paint to be DEAD flat). Blue will work as well, but if your subject has dark skin it will cause problems. Green is almost always your better bet. You want the brighest and most saturated tint they have. In RGB terms you want 0x00FF00. UBER-GREEN : ) Paint a few coats and try to make sure it's as even as possible.

4) Shoot as close-up as you can -- if you're only going to be using him from midriff up, shoot as close as possible and leave as little headroom as you can in the shot. Scaling him down afterwards will reduce chroma key artifacts and make the key look better.

Well, there's your basic chroma key primer! I know it's probably more than you wanted, but I used to be the director of visual effects for a post house and I miss it sometimes... so let me relive my glory days just this once ^_^ If you have any questions, let me know! I'd love to help : )
petefs is offline   Reply With Quote
Old 05-14-2004, 07:50 AM   #7
charlieFlash
another concerned citizen
 
charlieFlash's Avatar
 
Join Date: Feb 2002
Location: Fayetteville, NY
Posts: 149
Send a message via AIM to charlieFlash
Thumbs up

Wow that is great info! I am having the video professionally done for the final product (it's got to look good!), but for doing our in-house testing this info will help tremendously. Maybe I can now swap 'trade secrets' with the video crew and look all professional and stuff, HA.

Seriously, thanks I'll put this to good use.
__________________
{ charlie : flashDeveloper }

// concept. code. test. debug. test again.
if (success) {
beer();
} else {
coffee();
}
charlieFlash is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:14 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.