Chroma to Black Transparency to Flash

Moderator: Ken Berry

Post Reply
jhowlett

Chroma to Black Transparency to Flash

Post by jhowlett »

Thank you in advance to anyone who reads this post and can save me the hair that I haven't pulled out. OK, here is my dilemma...

What I am wanting to do is to take video edited with VideoStudio 11+ and use it on my website. The video is supposed to have a transparent background and will be converted to flash for the website.

So here's what I have done:

1. Take the video using the green screen, put the video in the VS Overlay track of the timeline, and use the ChromaKey function to eliminate the green.

So far, so good.

2. The video now has a black background--which I understand that in the video world, is normal for transparency.

3. I then save the file as AVI, and import the avi into a couple of different flash converters. The problem is that the converters seem to interpret the "black transparency" as "a regular black background", and thus the SWF is made has a black background instead of a transparent one.

Not so good.

4. So, being an amateur at this, I come up with another idea...I make a transparent GIF file and put it in the video track. I again save the file as an AVI. Now the background shows up as white.

5. After importing the new AVI file into either of the flash converters, the same thing basically happens. Except now it creates a white background instead of transparent.

Not so good again.

I am about to pull my hair out....is there a better video format to save this as that flash converter software programs interpret correctly as "transparent" instead of assigning an actual color? Or is there some setting that I am missing? Or is this a problem with the flash converter programs--in which case, any suggestions on an inexpensive one would be appreciated...

Basically, anything to help would be appreciated!

Thanks,
John
User avatar
Ken Berry
Site Admin
Posts: 22481
Joined: Fri Dec 10, 2004 9:36 pm
operating_system: Windows 11
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Gigabyte B550M DS3H AC
processor: AMD Ryzen 9 5900X
ram: 32 GB DDR4
Video Card: AMD RX 6600 XT
Hard_Drive_Capacity: 1 TB SSD + 2 TB HDD
Monitor/Display Make & Model: Kogan 32" 4K 3840 x 2160
Corel programs: VS2022; PSP2023; DRAW2021; Painter 2022
Location: Levin, New Zealand

Post by Ken Berry »

I may be missing something here, but wouldn't you be better off inserting your new background (i.e. not the transparent one, but the one that substitutes for the green), during the editing stage? Then render that and convert it to flash?
Ken Berry
jhowlett

Post by jhowlett »

Thanks Ken,

The issue is that there is no other background but the website itself.

Here is a similar example to what I am trying to do...I use these folks for web hosting and I decided I wanted something similar for some of my own sites.

http://www.ixwebhosting.com

If the video doesn't come up automatically, click the "Play Erika" link in the bottom right hand side.

You'll notice that the video has a completely transparent background, and you can see behind her wherever she is on the page.

John
User avatar
Ken Berry
Site Admin
Posts: 22481
Joined: Fri Dec 10, 2004 9:36 pm
operating_system: Windows 11
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Gigabyte B550M DS3H AC
processor: AMD Ryzen 9 5900X
ram: 32 GB DDR4
Video Card: AMD RX 6600 XT
Hard_Drive_Capacity: 1 TB SSD + 2 TB HDD
Monitor/Display Make & Model: Kogan 32" 4K 3840 x 2160
Corel programs: VS2022; PSP2023; DRAW2021; Painter 2022
Location: Levin, New Zealand

Post by Ken Berry »

OK, I see what you mean. Neat effect (I run a website for a dog rescue service!) Mind you, they might have achieved the Erika effect by simply having the white background you describe, given that their website background is dead white itself.

Sorry I can't help on this one -- though I will be very interested myself if someone else posts a solution.
Ken Berry
User avatar
Ron P.
Advisor
Posts: 12002
Joined: Tue May 10, 2005 12:45 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Hewlett-Packard 2AF3 1.0
processor: 3.40 gigahertz Intel Core i7-4770
ram: 16GB
Video Card: NVIDIA GeForce GTX 645
sound_card: NVIDIA High Definition Audio
Hard_Drive_Capacity: 4TB
Monitor/Display Make & Model: 1-HP 27" IPS, 1-Sanyo 21" TV/Monitor
Corel programs: VS5,8.9,10-X5,PSP9-X8,CDGS-9,X4,Painter
Location: Kansas, USA

Post by Ron P. »

John,

The problem you're having is that VS does not output 32 bit avi files, only 24 bit. The extra 8 bits are the alpha channel or transparency. VS can see and recognize the alpha channel on video that you input to one of the overlay tracks. However as you have found out, that when you render your video project, it will use what is on the Main video track as the background, or absent of that, black.

I even looked at MSP8, and could only find 24 bit output. I think you will need to determine the color of the background this video is to be placed against, and use it for your background color in your video. That way it will appear to be transparent.
Ron Petersen, Web Board Administrator
jhowlett

Post by jhowlett »

Thanks Ron,

That's what I call a good answer...I guess I have one more question though...does anyone know if any other output format from VS would work? Many of the flash converters out there can input many types of files...so I'm grasping at one more straw here...

Thanks!
User avatar
Ron P.
Advisor
Posts: 12002
Joined: Tue May 10, 2005 12:45 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Hewlett-Packard 2AF3 1.0
processor: 3.40 gigahertz Intel Core i7-4770
ram: 16GB
Video Card: NVIDIA GeForce GTX 645
sound_card: NVIDIA High Definition Audio
Hard_Drive_Capacity: 4TB
Monitor/Display Make & Model: 1-HP 27" IPS, 1-Sanyo 21" TV/Monitor
Corel programs: VS5,8.9,10-X5,PSP9-X8,CDGS-9,X4,Painter
Location: Kansas, USA

Post by Ron P. »

John,

Try this to see if it will work....

When you go to Save/Render your video file, Choose Quick Time .mov file, and then click on Options>Compression. Then on the drop-down menu beside Data Type you can select 32 Bit.
Ron Petersen, Web Board Administrator
railroadguy

Post by railroadguy »

vidoman wrote:John,

Try this to see if it will work....

When you go to Save/Render your video file, Choose Quick Time .mov file, and then click on Options>Compression. Then on the drop-down menu beside Data Type you can select 32 Bit.
Not for me. I was playing around when I saw this topic. It's still a 24 bit master. Like saving an 8 bit GIF into a 24 bit JPG. It appears you must have the alpha channels in the master to do what he wants.

I found this http://findarticles.com/p/articles/mi_m ... i_n6078090 that may help explain this.
railroadguy

Post by railroadguy »

Here is a better link: http://www.adobe.com/support/documentat ... mples.html

In short: In general, the video file must meet the following requirements:

* 32-bit video with million+ colors
* Includes a color-key background
* Is encoded to enable the alpha channel
jhowlett

Post by jhowlett »

Unfortunately, I'm not getting it to work either. My thanks to all of you who helped with this.

Since I really like the "Erika effect", I'm going to have to look for another software solution I guess. In the meantime, I may use the white background approach.

Thanks again.
User avatar
Ken Berry
Site Admin
Posts: 22481
Joined: Fri Dec 10, 2004 9:36 pm
operating_system: Windows 11
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Gigabyte B550M DS3H AC
processor: AMD Ryzen 9 5900X
ram: 32 GB DDR4
Video Card: AMD RX 6600 XT
Hard_Drive_Capacity: 1 TB SSD + 2 TB HDD
Monitor/Display Make & Model: Kogan 32" 4K 3840 x 2160
Corel programs: VS2022; PSP2023; DRAW2021; Painter 2022
Location: Levin, New Zealand

Post by Ken Berry »

Given that Adobe now own Macromedia (and thus the origins of Flash), one suspects that their programs might produce the desired effect. In other words, Premiere Pro 2.0 (soon to be 3) -- which is, of course, hellishly expensive. Perhaps their Premiere Elements too, but you would need to check beforehand.
Ken Berry
AlanN
Posts: 1
Joined: Wed Jan 06, 2010 8:37 pm
Location: UK

Post by AlanN »

Hi . I'm looking at solving the same issue as this original post from 2007.
By now I'm guessing everyone is more familiar with the effect that John was attempting to produce, basically the walk on actor with a transparent background which is turned into a flash movie and uses the website as the background.

I Just bought a copy of VideoStudio Pro X2 (Not specifically for this), and hoping that there has been an enhancement in the last 3 years to allow this ?.

Now we already have CS3 including flash, so I'm ok with converting the output into a flash movie, the problem is getting some kind of output from VideoStudio that has the alpha channel properly encoded to remove the background.

Is it possible, or am I wasting my time trying ?

I know it can be done with After Effects or Premiere, but I'm not for splashing out that kind of money for what might be a single project never to be repeated. (Although I might try the 30 day trial)

All suggestions appreciated. Thanks
Regards AlanN
Curlinghall Solutions
Black Lab
Posts: 7429
Joined: Wed Dec 15, 2004 3:11 pm
operating_system: Windows 8
System_Drive: C
32bit or 64bit: 64 Bit
Location: Pottstown, Pennsylvania, USA

Post by Black Lab »

As has been stated, you need to output to 32 bit AVI. As far as I know no VS version is able to do that.

However, as also has been stated, you can try to render as a Quick Time MOV file. Playing around with the different types of compression reveal some that are 32 bit. :roll:
Post Reply