Export with alpha

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

NoobNoob

  • Posts: 23
  • Joined: Tue Aug 01, 2023 1:24 am
  • Real Name: Jim Stans

Export with alpha

PostWed Sep 11, 2024 4:59 pm

Hello experts,

When I export with alpha it doesn't seem to work properly and doesn't include the alpha channel.

I'm trying to export a short clip as MP4 (H.265), I've checked the option for the alpha channel in render settings, but when I try to use the file afterwards (like overlay it on something else in a new project), the alpha channel has not worked.

I've done this dozens of time before, I've got several MP4 (H.265) files on my desktop right now, that I've masked > alpha'd > exported with DaVinci Resolve, so I know this should work.

I haven't used DaVinci Resolve in a few months so I must have forgotten something, another option I need to change somewhere.

Does anyone have any ideas what I'm forgetting?
Offline
User avatar

Sean Nelson

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

Re: Export with alpha

PostWed Sep 11, 2024 8:28 pm

I can't speak as to the exporting of H.265 with Alpha channels, but I will point out that if you want to export with an Alpha channel it implies that you intend to bring that exported clip back into Resolve (or some other video processing product) in order to composite it with something. H.265 is a lossy codec and perhaps not the best choice for this.

When I do alpha exports I do so using MFX OP1A / DNxHR codec. This uses more disk space but has more fidelity, and the alpha channel definitely does work with it.
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

NoobNoob

  • Posts: 23
  • Joined: Tue Aug 01, 2023 1:24 am
  • Real Name: Jim Stans

Re: Export with alpha

PostThu Sep 12, 2024 1:16 am

Sean Nelson wrote:I can't speak as to the exporting of H.265 with Alpha channels, but I will point out that if you want to export with an Alpha channel it implies that you intend to bring that exported clip back into Resolve (or some other video processing product) in order to composite it with something. H.265 is a lossy codec and perhaps not the best choice for this.

When I do alpha exports I do so using MFX OP1A / DNxHR codec. This uses more disk space but has more fidelity, and the alpha channel definitely does work with it.


Thanks for the reply. I tried that file type and the alpha worked properly.
It's massive overkill for my needs though, I'm just making some low resolution junk for my friends. The file type you suggested came out 300x larger than the file size I'm expecting for my 3 second clip.

I really just need to know which setting it is that I've forgotten, that's stopping H.265's alpha channel working here, as I know that it should work.

Thank you for your reply though
Offline
User avatar

capthook

  • Posts: 268
  • Joined: Thu Aug 15, 2019 12:43 am
  • Real Name: Jack Jones

Re: Export with alpha

PostFri Sep 13, 2024 11:47 am

NoobNoob wrote:
I really just need to know which setting it is that I've forgotten, that's stopping H.265's alpha channel working here, as I know that it should work.

Thank you for your reply though

Mp4 h.265 is a little 'quirky' - after importing, you need to select the clip attributes and select 'Premultiplied' in the 'Alpha Mode' for the alpha to show.
Quicktime h.265 and DNxHR selects that attribute automatically when importing and shows the alpha.

Is that the step you 'forgot' - clip attributes?
DaVinci Resolve Studio 20.0 | Nvidia Studio 572.83 | Mavic 2P | GH6 | Ronin SC
i9 13900K | 64GB 5600MHz DDR5 RAM | RTX4080 16GB | (4) 990Pro 2tb m.2 | Windows 11
Offline

NoobNoob

  • Posts: 23
  • Joined: Tue Aug 01, 2023 1:24 am
  • Real Name: Jim Stans

Re: Export with alpha

PostSun Sep 15, 2024 2:25 pm

capthook wrote:
NoobNoob wrote:
I really just need to know which setting it is that I've forgotten, that's stopping H.265's alpha channel working here, as I know that it should work.

Thank you for your reply though

Mp4 h.265 is a little 'quirky' - after importing, you need to select the clip attributes and select 'Premultiplied' in the 'Alpha Mode' for the alpha to show.
Quicktime h.265 and DNxHR selects that attribute automatically when importing and shows the alpha.

Is that the step you 'forgot' - clip attributes?


That's strange, I have multiple clips that I made before (about 6 months ago), all Mp4 h.265, and they all just work, I don't need to change the attributes to make the alpha work. I just drop them in and they have transparency.

I can't make any new ones that work though. The moment I hit 'Render' the 'Export Alpha' checkbox deselects.
Offline

NoobNoob

  • Posts: 23
  • Joined: Tue Aug 01, 2023 1:24 am
  • Real Name: Jim Stans

Re: Export with alpha

PostSun Sep 15, 2024 2:27 pm

This is what the files show, the ones I made previously with DaVinci Resolve, they all say that they include the alpha in the codecs and they all work properly. Any new h.265 ones I make do not include that alpha part and the transparency doesn't work.
Attachments
alpha-channel.png
alpha-channel.png (36.28 KiB) Viewed 3418 times
Offline

NoobNoob

  • Posts: 23
  • Joined: Tue Aug 01, 2023 1:24 am
  • Real Name: Jim Stans

Re: Export with alpha

PostSun Sep 15, 2024 2:29 pm

capthook wrote:
NoobNoob wrote:
I really just need to know which setting it is that I've forgotten, that's stopping H.265's alpha channel working here, as I know that it should work.

Thank you for your reply though

Mp4 h.265 is a little 'quirky' - after importing, you need to select the clip attributes and select 'Premultiplied' in the 'Alpha Mode' for the alpha to show.
Quicktime h.265 and DNxHR selects that attribute automatically when importing and shows the alpha.

Is that the step you 'forgot' - clip attributes?


Quicktime h.265 doesn't work for me either. It does exactly the same as Mp4, the alpha channel does not get included in the exported file.
Offline

NoobNoob

  • Posts: 23
  • Joined: Tue Aug 01, 2023 1:24 am
  • Real Name: Jim Stans

Re: Export with alpha

PostSun Sep 15, 2024 3:07 pm

I think h.265 export is bugged in the current version of Resolve, I'd be interested to know if anyone can successfully export h.265 on a silicon Mac and preserve the alpha, as for me it doesn't work at all anymore.

But I've found a workaround.

If I export as AppleProRes 4444 (resulting in a massive file), I can then select the exported file on my desktop, 'Encode Selected Video Files', choose HEVC, which gives the option to 'Preserve Transparency'. Mac will then convert it for you and the alpha works just like it used to in Resolve, no need to mess around with clip attributes, no blocky mess and it's a nice small file that's only 1% the size of ProRes.
Offline
User avatar

Sean Nelson

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

Re: Export with alpha

PostMon Sep 16, 2024 3:30 am

NoobNoob wrote:This is what the files show, the ones I made previously with DaVinci Resolve, they all say that they include the alpha in the codecs and they all work properly. Any new h.265 ones I make do not include that alpha part and the transparency doesn't work.

Is it possible you're using a different encoder? On my system not all of the encoders support alpha channels...

H.265-Encoders.jpg
H.265-Encoders.jpg (48.68 KiB) Viewed 3356 times
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
User avatar

Robert Niessner

  • Posts: 5627
  • Joined: Thu Feb 21, 2013 9:51 am
  • Location: Graz, Austria

Re: Export with alpha

PostMon Sep 16, 2024 11:36 am

Have you added the Alpha output on the color page?
Saying "Thx for help!" is not a crime.
--------------------------------
Robert Niessner
LAUFBILDkommission
Graz / Austria
--------------------------------
Blackmagic Camera Blog (German):
http://laufbildkommission.wordpress.com

Read the blog in English via Google Translate:
http://tinyurl.com/pjf6a3m
Offline
User avatar

Uli Plank

  • Posts: 25458
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: Export with alpha

PostMon Sep 16, 2024 4:26 pm

Did you use "Main" for the profile? It seems that H.265 in Main10 on the Mac doesn't offer alpha.
My disaster protection: export a .drp file to a physically separated storage regularly.
www.digitalproduction.com

Studio 19.1.3
MacOS 13.7.4, 2017 iMac, 32 GB, Radeon Pro 580 + eGPU
MacBook M1 Pro, 16 GPU cores, 32 GB RAM, MacOS 14.7.2
SE, USM G3
Offline
User avatar

capthook

  • Posts: 268
  • Joined: Thu Aug 15, 2019 12:43 am
  • Real Name: Jack Jones

Re: Export with alpha

PostTue Sep 17, 2024 4:39 am

NoobNoob wrote:I think h.265 export is bugged in the current version of Resolve, I'd be interested to know if anyone can successfully export h.265 on a silicon Mac and preserve the alpha, as for me it doesn't work at all anymore.

I'm on Windows and don't know about Mac - different beast.
Can't imagine it's bugged.

Sean, Robert and Uli offered some good comments.
DaVinci Resolve Studio 20.0 | Nvidia Studio 572.83 | Mavic 2P | GH6 | Ronin SC
i9 13900K | 64GB 5600MHz DDR5 RAM | RTX4080 16GB | (4) 990Pro 2tb m.2 | Windows 11
Offline
User avatar

Uli Plank

  • Posts: 25458
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: Export with alpha

PostTue Sep 17, 2024 5:00 am

As I wrote, it's limited to the plain Main profile, but it works for me on a Mac with Apple silicon.
You have to tell DR to use alpha in the Clip Attributes.
My disaster protection: export a .drp file to a physically separated storage regularly.
www.digitalproduction.com

Studio 19.1.3
MacOS 13.7.4, 2017 iMac, 32 GB, Radeon Pro 580 + eGPU
MacBook M1 Pro, 16 GPU cores, 32 GB RAM, MacOS 14.7.2
SE, USM G3
Offline

NoobNoob

  • Posts: 23
  • Joined: Tue Aug 01, 2023 1:24 am
  • Real Name: Jim Stans

Re: Export with alpha

PostMon Nov 04, 2024 2:29 am

Sean Nelson wrote:
NoobNoob wrote:This is what the files show, the ones I made previously with DaVinci Resolve, they all say that they include the alpha in the codecs and they all work properly. Any new h.265 ones I make do not include that alpha part and the transparency doesn't work.

Is it possible you're using a different encoder? On my system not all of the encoders support alpha channels...

The attachment H.265-Encoders.jpg is no longer available


Hi Sean,

I don't even have an encoder option when I go to export my clip. Mine looks like this.
Attachments
encoder.png
encoder.png (47.93 KiB) Viewed 2958 times
Offline

NoobNoob

  • Posts: 23
  • Joined: Tue Aug 01, 2023 1:24 am
  • Real Name: Jim Stans

Re: Export with alpha

PostMon Nov 04, 2024 2:34 am

Robert Niessner wrote:Have you added the Alpha output on the color page?


Hi Robert,

Yes I have. I add an alpha output on the color page, then I drag the line to link up to the blue dot. Then I do m magic mask and the alpha shows properly when I play back on the timeline.

It just doesn't render the alpha channel in my final when I export my video. It still 'blacks-out' the area I want to remove from the clip, it just doesn't include the transparency in the video so I cannot use it as an overlay.

I've exported dozens of clips this way and it's always worked before, it just doesn't work anymore.
Last edited by NoobNoob on Mon Nov 04, 2024 3:02 am, edited 1 time in total.
Offline

NoobNoob

  • Posts: 23
  • Joined: Tue Aug 01, 2023 1:24 am
  • Real Name: Jim Stans

Re: Export with alpha

PostMon Nov 04, 2024 2:37 am

Uli Plank wrote:Did you use "Main" for the profile? It seems that H.265 in Main10 on the Mac doesn't offer alpha.


I used 'Main' and always have done.
If you select Main10, the 'export alpha' checkbox disappears so you have to use 'Main'.
Offline

NoobNoob

  • Posts: 23
  • Joined: Tue Aug 01, 2023 1:24 am
  • Real Name: Jim Stans

Re: Export with alpha

PostMon Nov 04, 2024 2:41 am

Uli Plank wrote:As I wrote, it's limited to the plain Main profile, but it works for me on a Mac with Apple silicon.
You have to tell DR to use alpha in the Clip Attributes.


I tried that when you mentioned it before, that creates a horrible blocky outline which makes it unusable.

It used to work perfectly well, without needing to go into 'clip attributes' and it didn't use to leave blocky artefacts around the edges of the object. Something has changed or been broken or bugged in the last couple of updates.
Offline
User avatar

Uli Plank

  • Posts: 25458
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: Export with alpha

PostMon Nov 04, 2024 3:29 am

Well, I can't reproduce that here, but HEVC is still a heavily compressed format.
I'd consider a better codec instead for delicate work with an alpha channel.
My disaster protection: export a .drp file to a physically separated storage regularly.
www.digitalproduction.com

Studio 19.1.3
MacOS 13.7.4, 2017 iMac, 32 GB, Radeon Pro 580 + eGPU
MacBook M1 Pro, 16 GPU cores, 32 GB RAM, MacOS 14.7.2
SE, USM G3
Offline

LeonhardRender

  • Posts: 121
  • Joined: Thu Feb 09, 2023 7:23 pm
  • Real Name: Leonhard Scarlet

Re: Export with alpha

PostFri Nov 22, 2024 12:21 pm

[quote="NoobNoob"]
Were you able to fix it?

I'm having the same problem. Both H265 and MP4/QuickTime have a strange black outline.

I can only export as alpha properly in CineForm or DNxHR. But these codecs are heavy and not very compatible compared to MP4/QuickTime.

Regarding the MP4, I was only able to activate alpha when importing by marking “Alphe mode premultiplied” in clip attributes.

I think Resolve should detect when an H265 MP4 has an alpha channel and activate it automatically, because if a person uses an alpha file, they certainly want to use it as alpha most of the time, so this should be the default behavior.

MP4 H265
Screenshot 2024-11-22 002019.png
Screenshot 2024-11-22 002019.png (48.88 KiB) Viewed 2704 times


QuickTime H265
Screenshot 2024-11-21 234116.png
Screenshot 2024-11-21 234116.png (16.85 KiB) Viewed 2704 times


DNxHR ou CineForm
Screenshot 2024-11-21 234152.png
Screenshot 2024-11-21 234152.png (78.24 KiB) Viewed 2704 times
Offline

Andrew_RH

  • Posts: 7
  • Joined: Sun May 14, 2023 5:53 pm
  • Real Name: Andrew Reeves-Hall

Re: Export with alpha

PostThu May 29, 2025 11:55 pm

Exporting alpha (transparent background) fails with H.265 but works with AppleProRes in Davinci Resolve 20.0, too.

The H.265 quicktime does not have the transparent background when it is imported to another project, whereas the prores quicktime does.

~Andrew~

Animation .mov - Quicktime H.265:
Bug 2025-05-30 Davinci Resolve 20.0 - No alpha for png in fusion from h.265 render.png
Alpha test - H.265
Bug 2025-05-30 Davinci Resolve 20.0 - No alpha for png in fusion from h.265 render.png (290.44 KiB) Viewed 657 times


Animation .mov - Quicktime ProRes:
Bug 2025-05-30 Davinci Resolve 20.0 - No alpha for png in fusion from h.265 render - prores works.png
Alpha test - ProRes
Bug 2025-05-30 Davinci Resolve 20.0 - No alpha for png in fusion from h.265 render - prores works.png (297.43 KiB) Viewed 657 times

Return to DaVinci Resolve

Who is online

Users browsing this forum: Google [Bot], Kirill Tupta, nicholaslat, Peter Cave, Rakesh Malik and 276 guests