NVidia hw encoder corruption when using magic mask

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

smunaut

  • Posts: 529
  • Joined: Sat Jan 30, 2021 6:15 pm
  • Real Name: Sylvain Munaut

NVidia hw encoder corruption when using magic mask

PostSat Mar 13, 2021 10:14 pm

When I try to use the HW encoder to produce either h264 or h265, if the source uses magic mask, then the output is corrupted / garbage.

In the output file, all is good in the title, then as soon as it switches to the clip with magic mask, garbage.
Output to DNX / GrassValley / ... work just fine.

Davinci Resolve Studio 17.1 running on linux with RTX2070 Super
Resolve Studio - Ryzen 5800X3D - AMD RX6600 / NVidia RTX 4070 (switching between the 2) - Linux
Offline

Jim Simon

  • Posts: 36143
  • Joined: Fri Dec 23, 2016 1:47 am

Re: [bug] NVidia hw encoder corruption when using magic mask

PostSat Mar 13, 2021 10:49 pm

I can't reproduce this in Studio 17.1 for Windows using an 8GB 1070. The render comes out fine.

Could be specific to Linux, your media, your GPU driver, your precise Delivery settings...
My Biases:

You NEED training.
You NEED a desktop.
You NEED a calibrated (non-computer) display.
Offline

smunaut

  • Posts: 529
  • Joined: Sat Jan 30, 2021 6:15 pm
  • Real Name: Sylvain Munaut

Re: [bug] NVidia hw encoder corruption when using magic mask

PostSat Mar 13, 2021 10:57 pm

Mmm ... I'll try to make a minimal reproducing project. I'm using the magic mask to create an alpha output to isolate a subject to overlay it over another clip. That might matter.
Could also have an interaction with hw decode of h265 source clips.

ATM machine is busy rendering so can't test things.

Drivers are 460.39.
Delivery settings were defaults.
Resolve Studio - Ryzen 5800X3D - AMD RX6600 / NVidia RTX 4070 (switching between the 2) - Linux
Offline

Jim Simon

  • Posts: 36143
  • Joined: Fri Dec 23, 2016 1:47 am

Re: [bug] NVidia hw encoder corruption when using magic mask

PostSat Mar 13, 2021 10:58 pm

smunaut wrote:That might matter.
It could. Alpha wasn't part of my test.
My Biases:

You NEED training.
You NEED a desktop.
You NEED a calibrated (non-computer) display.
Offline

smunaut

  • Posts: 529
  • Joined: Sat Jan 30, 2021 6:15 pm
  • Real Name: Sylvain Munaut

Re: NVidia hw encoder corruption when using magic mask

PostSun Mar 14, 2021 9:39 pm

Turns out it has nothing to do with the magic mask ... still trying to narrow it down.

ATM I need a fusion comp clip (just background + png logo) followed by two h264 video overlaid atop each other (crop and resized so part of them are "off screen") and when switching from fusion comp title (which renders fine) to the two overlaid video it bugs. But if I remove the fusion comp, then it works fine.
Resolve Studio - Ryzen 5800X3D - AMD RX6600 / NVidia RTX 4070 (switching between the 2) - Linux
Offline

Jim Simon

  • Posts: 36143
  • Joined: Fri Dec 23, 2016 1:47 am

Re: NVidia hw encoder corruption when using magic mask

PostSun Mar 14, 2021 10:17 pm

Just to get the work done, you might try skipping Fusion and adding the Background and PNG to the timeline directly.
My Biases:

You NEED training.
You NEED a desktop.
You NEED a calibrated (non-computer) display.
Offline

smunaut

  • Posts: 529
  • Joined: Sat Jan 30, 2021 6:15 pm
  • Real Name: Sylvain Munaut

Re: NVidia hw encoder corruption when using magic mask

PostSun Mar 14, 2021 10:23 pm

Well the actual composition in the main project is more complex, this was just to reproduce the bug in a minimal config.

For the actual project I got it rendered in DNX and then used ffmpeg to convert to h264.

But I can reproduce the bug without too much trouble so I'd like to narrow it down to get it fixed because not being able to render to h264 or h265 is a major pain :/ (And being on linux, the nvidia hw encoder is the only option, no software encoder available)
Resolve Studio - Ryzen 5800X3D - AMD RX6600 / NVidia RTX 4070 (switching between the 2) - Linux
Offline

Jim Simon

  • Posts: 36143
  • Joined: Fri Dec 23, 2016 1:47 am

Re: NVidia hw encoder corruption when using magic mask

PostSun Mar 14, 2021 10:25 pm

Got it.

But that might lead us back to the OS or driver as a root cause here.
My Biases:

You NEED training.
You NEED a desktop.
You NEED a calibrated (non-computer) display.

Return to DaVinci Resolve

Who is online

Users browsing this forum: alkessler, Baidu [Spider], Greg Agiannidis, luisvalenzuela, panos_mts, ShutterlabCreative and 289 guests