How to add alpha channel to existing video clip?

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline

Jake Melon

  • Posts: 29
  • Joined: Wed Apr 19, 2017 1:33 pm
  • Location: Pennsylvania, USA

How to add alpha channel to existing video clip?

PostFri Apr 09, 2021 4:06 pm

Hi,

I've looked for this answer on youtube but almost every video out there only talks about outputting alpha channel out of Resolve or how to add a title with a transparent background.

What I am looking for is how to ADD alpha channel to my video clip. Here is the use case; I rendered a fractal animation (500 frames which I converted to .MOV). There is some black background visible in the clip and I'd like to make it transparent for use in another app.

How can that be done? I'd assume Fusion may need to be utilized, if so what is the best way to do this?

thanks
jake
1994: Amiga 3000, WarpEngine 68040 @ 40mhz, 32mb RAM, 660mb HD, DCTV, VLAB, MovieShop, Supergen SX, Lightwave

2020: Asus Z390, i9-9900k @ 5ghz, 64gb RAM, 970 Pro 512gb M2, 970 EVO 2TB M2, Radeon VII, Resolve Studio, Decklink Mini Monitor 4k
Offline

jhoepffner

  • Posts: 217
  • Joined: Wed Sep 05, 2018 9:43 am
  • Location: Paris
  • Real Name: Jacques Hoepffner

Re: How to add alpha channel to existing video clip?

PostFri Apr 09, 2021 4:40 pm

Hello,
The best way would be to output the seminal animation with alpha layer, its the normal way to do it.
For example, I made animation with Houdini or TouchDesigner, I output to .exr or .png sequence or .mov with animation RGBA codec. So th alpha mask is embeded.
If your background is black, you can try to use luma keyer in Fusion page to add an alpha mask for the black. But it depend of the other part of the image. If there is another black in it…
You can also use the color page:
– qualifier to isolate the black
– power window as garbage mask and concentrate on the subject
– tracking to follow the subject
– inverse Node
– add a alpha output
– wire the last node alpha to the alpha output
When you go back to edit page, your clip have alpha layer
W10 Ryzen7 3800X nVidia 3090 RAM 64 DVR-Fusion Studio 20b3 SSD 2To raid0 32To (HD) raid0 8To (SSD)
MSI G65 W10 / RAM 32 nVidia 1070 Intel Core i7-8750H DVR Studio 19.0.1
MBP 15" (2012) OS 10.14.6 RAM 16 nVidia 650M Intell i7 DVR Studio 17.4
Offline

Jake Melon

  • Posts: 29
  • Joined: Wed Apr 19, 2017 1:33 pm
  • Location: Pennsylvania, USA

Re: How to add alpha channel to existing video clip?

PostFri Apr 09, 2021 5:40 pm

Unfortunately I did not output my frames with alpha channel, hence the need to do it after they've been assembled. The final output will be used in Resolume (since you've mentioned TouchDesigner!). So in order to layer animations having alpha channel present is the preferred method for Resolume use.

Which one of these options would be most effective (Fusion vs Color page)? I actually have few hundred of these animations so from a workflow perspective I'm looking for a quick/easy way to add the alpha channel since it will have to be repeated multiple times.

thanks
jake
1994: Amiga 3000, WarpEngine 68040 @ 40mhz, 32mb RAM, 660mb HD, DCTV, VLAB, MovieShop, Supergen SX, Lightwave

2020: Asus Z390, i9-9900k @ 5ghz, 64gb RAM, 970 Pro 512gb M2, 970 EVO 2TB M2, Radeon VII, Resolve Studio, Decklink Mini Monitor 4k
Offline
User avatar

Sean Nelson

  • Posts: 891
  • Joined: Sun Feb 07, 2021 9:48 pm
  • Location: Vancouver, Canada
  • Real Name: Sean Nelson

Re: How to add alpha channel to existing video clip?

PostFri Apr 09, 2021 5:54 pm

Jake Melon wrote:I actually have few hundred of these animations so from a workflow perspective I'm looking for a quick/easy way to add the alpha channel since it will have to be repeated multiple times.

I'm afraid to be the bearer of bad news, but even the "quickest" and "easiest" ways are going to be an awful lot of time and drudgery if you're talking about hundreds of clips.

If there's something unique about the background that isn't any part of the foreground such as luminance or colour, then a chroma or luminance key in Fusion would probably be the easiest way to do it. But even that usually requires close review and cleanup to make it work well.

The animations came from somewhere - considering the task you're facing I'd suggest it would be worth investigating whether or not they can be redone.
DR Studio 19.1.4 Build 11, Win10Pro x64 22H2/19045.5608
Asus C246 Pro Motherboard, Xeon E-2278G@3.4GHz, 64GB ECC RAM
GeForce 3060 12GB, "Studio" driver 560.81
OS,Library: 1TB NVMe SSD - Project,Cache: 1TB NVMe SSD
Offline

Jake Melon

  • Posts: 29
  • Joined: Wed Apr 19, 2017 1:33 pm
  • Location: Pennsylvania, USA

Re: How to add alpha channel to existing video clip?

PostFri Apr 09, 2021 11:35 pm

Hmm, some of these fractal animations took over a week to render so re-rendering is not an option.

jake
1994: Amiga 3000, WarpEngine 68040 @ 40mhz, 32mb RAM, 660mb HD, DCTV, VLAB, MovieShop, Supergen SX, Lightwave

2020: Asus Z390, i9-9900k @ 5ghz, 64gb RAM, 970 Pro 512gb M2, 970 EVO 2TB M2, Radeon VII, Resolve Studio, Decklink Mini Monitor 4k
Offline
User avatar

Sean Nelson

  • Posts: 891
  • Joined: Sun Feb 07, 2021 9:48 pm
  • Location: Vancouver, Canada
  • Real Name: Sean Nelson

Re: How to add alpha channel to existing video clip?

PostFri Apr 09, 2021 11:52 pm

Jake Melon wrote:Hmm, some of these fractal animations took over a week to render so re-rendering is not an option.

Well, if nothing else you now know to make sure that any future animations are rendered with an alpha channel in order to save you time on your future projects.
DR Studio 19.1.4 Build 11, Win10Pro x64 22H2/19045.5608
Asus C246 Pro Motherboard, Xeon E-2278G@3.4GHz, 64GB ECC RAM
GeForce 3060 12GB, "Studio" driver 560.81
OS,Library: 1TB NVMe SSD - Project,Cache: 1TB NVMe SSD
Online
User avatar

waltervolpatto

  • Posts: 11319
  • Joined: Thu Feb 07, 2013 5:07 pm
  • Location: Pictureshop 6040 Sunset Blvd, Hollywood, CA 90028

Re: How to add alpha channel to existing video clip?

PostSat Apr 10, 2021 3:09 am

Sean Nelson wrote:
Jake Melon wrote:Hmm, some of these fractal animations took over a week to render so re-rendering is not an option.

Well, if nothing else you now know to make sure that any future animations are rendered with an alpha channel in order to save you time on your future projects.


Can you post a single frame?
W10-19043.1645- Supermicro MB C9X299-PGF - RAM 128GB CPU i9-10980XE 16c 4.3GHz (Oc) Water cooled - 12x8TB SSD RAID5 internal (80TB)
Decklink Studio 4K (12.4.1)
Resolve 19.1.3 / fusion studio 19
GPU 3090ti drivers 512.59 studio
Offline

Hendrik Proosa

  • Posts: 3400
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: How to add alpha channel to existing video clip?

PostSat Apr 10, 2021 8:42 am

It is possible to use ffmpeg for automatically luma keying your footage and injecting alpha channel. Look at this Reddit thread for a handle: https://www.reddit.com/r/ffmpeg/comment ... _to_alpha/

You could scan through all your source clips in a batch process loop and autogenerate alpha for them.
I do stuff

Return to DaVinci Resolve

Who is online

Users browsing this forum: ashevillevideoproduction, AXIS360Media, Dan Anon, waltervolpatto and 219 guests