[Nvidia] How to render with GPU?

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

Dawid Stawicki

  • Posts: 3
  • Joined: Wed Jan 17, 2018 1:10 pm

[Nvidia] How to render with GPU?

PostWed Jan 17, 2018 1:25 pm

Hi,

I have bought a new graphic card from Nvidia, GTX1080 EVGA SC. Now I am trying to understand how can I render my vidoes with CUDA cores. I have took a look at Resolve's settings and set some options like: GPU processing moded (CUDA) and GPU selection (manual). The program sees my graphic card so I think should works. While my movie is rendering, I can notice that my Intel Core i5-5675c runs at 100% usage, but the graphic card is around 10-20%. Is it okay? I have done a test, one video in 4K resolution (length 44s) has been rendered in 2 mins 2 secs.

My system is:
- intel core i5 5657c,
- 16gb ram ddr3 2400mhz,
- asrock z97 extreme6,
- nvidia gtx1080 evga sc 8gb,
- samsung ssd 960 pro 500gb,
- windows 10 pro,

The system is almost fresh. Yesterday I had to reinstall Windows so now I got only Resolve studio, some drivers and Opera browser.
Offline

Jim Simon

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

Re: [Nvidia] How to render with GPU?

PostWed Jan 17, 2018 5:05 pm

That's normal.
My Biases:

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

Kays Alatrakchi

  • Posts: 1290
  • Joined: Thu Jun 26, 2014 8:22 am
  • Location: Los Angeles, CA

Re: [Nvidia] How to render with GPU?

PostWed Jan 17, 2018 7:03 pm

What video formats are you working with? Depending on the format, the CPU can get taxed far more than the GPU.
>>Kays Alatrakchi
Filmmaker based in Los Angeles, CA
http://moviesbykays.com

Resolve 18.1.4, Mac OS X 12.6.3 (Monterey), iMac Pro 64Gb RAM, Decklink Mini 4K, LG C9

Mac Book Air M1, Mac OS X 12.6 (Monterey), 16Gb RAM
Offline
User avatar

Cary Knoop

  • Posts: 1437
  • Joined: Sun Mar 12, 2017 6:35 pm
  • Location: Newark, CA USA

Re: [Nvidia] How to render with GPU?

PostWed Jan 17, 2018 8:29 pm

Dawid Stawicki wrote:Now I am trying to understand how can I render my videos with CUDA cores.

Scaling, noise reduction and effects are all done in the GPU, encoding however is not.

In ffmpeg you can use hevc_nvenc to use the GPU for encoding but there are limitations.
Offline

Dawid Stawicki

  • Posts: 3
  • Joined: Wed Jan 17, 2018 1:10 pm

Re: [Nvidia] How to render with GPU?

PostThu Jan 18, 2018 6:06 pm

Jim Simon wrote:That's normal.


Hmmm, I thought it's not.

Kays Alatrakchi wrote:What video formats are you working with? Depending on the format, the CPU can get taxed far more than the GPU.


I tried with QuickTime but I am also going to check others. I am sorry but in Resolve's world I am complete newbie. :)

Cary Knoop wrote:Scaling, noise reduction and effects are all done in the GPU, encoding however is not.

In ffmpeg you can use hevc_nvenc to use the GPU for encoding but there are limitations.


Thank you. Somebody told me that image mainly is processing by GPU.
Offline
User avatar

Jack Fairley

  • Posts: 1863
  • Joined: Mon Oct 03, 2016 7:58 pm
  • Location: Los Angeles

Re: [Nvidia] How to render with GPU?

PostThu Jan 18, 2018 8:14 pm

Dawid Stawicki wrote:Thank you. Somebody told me that image mainly is processing by GPU.

It is, encoding is not image processing in this sense.
Ryzen 5800X3D
32GB DDR4-3600
RTX 3090
DeckLink 4K Extreme 12G
Resolve Studio 17.4.1
Windows 11 Pro 21H2
Offline

Dawid Stawicki

  • Posts: 3
  • Joined: Wed Jan 17, 2018 1:10 pm

Re: [Nvidia] How to render with GPU?

PostSun Jan 21, 2018 10:34 am

Thank you for clarification. Would you recommend me please the best settings for Resolve? And... Will new processor could process videos faster? I mean, I am thinking about one of AMD processor, like Ryzen 1700 or something from incoming new cpus (Ryzen 2000).
Offline
User avatar

Jack Fairley

  • Posts: 1863
  • Joined: Mon Oct 03, 2016 7:58 pm
  • Location: Los Angeles

Re: [Nvidia] How to render with GPU?

PostMon Jan 22, 2018 7:23 pm

Yes, upgrading your processor will definitely let you render faster. If you plan to work a lot in 4K, you will benefit from upgrading to Threadripper or the Intel i9 series, though this will also require a new motherboard and new RAM. The upcoming Ryzen 2 processors will probably be good, but AMD has disappointed before.

If you're exporting in H.264, that is also particularly demanding. If you have the storage space and it works for your delivery requirements, you may want to try DNxHD instead.
Ryzen 5800X3D
32GB DDR4-3600
RTX 3090
DeckLink 4K Extreme 12G
Resolve Studio 17.4.1
Windows 11 Pro 21H2
Offline

HaveBlue

  • Posts: 133
  • Joined: Mon Nov 12, 2018 2:03 am
  • Real Name: Lars Dennert

Re: [Nvidia] How to render with GPU?

PostMon Nov 12, 2018 2:13 am

First time doing a short 3Min 4K test project with Resolve. Pretty disappointing that the GPU is not utilized for rendering and transcoding. I have a GTX 1050 on a healthy Core i5 with a selection of SSD and platter drives. Rendering takes more than 30 min.

Compare that to Nero Video that can transcode in realtime and it feels like Resolve would be a bear to render a bigger project. Editing seems to also be missing some very basic tools like ripple insertion for quick moving of clips that in Resolve require complicated steps.

A bit sad for such an otherwise comprehensive set of tools that puts Premiere Pro to shame.
W10Pro, Resolve Studio, Ryzen 7 3700X, 32GB RAM, SSD and platter drives, GTX 1070 8GB, LG 10bit 4K 32" monitor with two 20" HD monitors
Offline

Jim Simon

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

Re: [Nvidia] How to render with GPU?

PostWed Nov 14, 2018 9:03 pm

HaveBlue wrote:missing some very basic tools like ripple insertion


Insert will by definition move other media out of the way. Overwrite will not.
My Biases:

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

Jack Fairley

  • Posts: 1863
  • Joined: Mon Oct 03, 2016 7:58 pm
  • Location: Los Angeles

Re: [Nvidia] How to render with GPU?

PostWed Nov 14, 2018 9:42 pm

HaveBlue wrote:Pretty disappointing that the GPU is not utilized for rendering and transcoding.

Your system is below recommended specs, read the config guide. It's also not as simple to just "utilize" the GPU for encoding. Hardware encoding requires dedicated hardware on the card for that specific task, not regular operations. Resolve Studio 15.2 can export H.264 and H.265 with NVIDIA hardware encoding, which is more than you can say for competitors.
Ryzen 5800X3D
32GB DDR4-3600
RTX 3090
DeckLink 4K Extreme 12G
Resolve Studio 17.4.1
Windows 11 Pro 21H2
Offline

HaveBlue

  • Posts: 133
  • Joined: Mon Nov 12, 2018 2:03 am
  • Real Name: Lars Dennert

Re: [Nvidia] How to render with GPU?

PostFri Nov 16, 2018 6:01 am

I've been editing hd video since 2006 and sd for years before that. I feel that I have a pretty good grasp on when software is transcoding using the CPU or gpu. My current pc can handle 4k .265 transcoding in Realtime or better using cuda compute level 6 card or Intel quicksync using the silly onboard Intel hd chip. In those cases, the CPU isn't near 100% Dr utilizes neither graphics chip and renders very slow. It's pretty obvious. Just push Ctrl alt esc while you are rendering. Wondering if others over the same. Dr says you need a compute level 3 card so how is mine inadequate?
W10Pro, Resolve Studio, Ryzen 7 3700X, 32GB RAM, SSD and platter drives, GTX 1070 8GB, LG 10bit 4K 32" monitor with two 20" HD monitors
Offline

Peter Chamberlain

Blackmagic Design

  • Posts: 13875
  • Joined: Wed Aug 22, 2012 7:08 am

Re: [Nvidia] How to render with GPU?

PostSun Nov 18, 2018 6:45 am

HaveBlue wrote:I've been editing hd video since 2006 and sd for years before that. I feel that I have a pretty good grasp on when software is transcoding using the CPU or gpu. My current pc can handle 4k .265 transcoding in Realtime or better using cuda compute level 6 card or Intel quicksync using the silly onboard Intel hd chip. In those cases, the CPU isn't near 100% Dr utilizes neither graphics chip and renders very slow. It's pretty obvious. Just push Ctrl alt esc while you are rendering. Wondering if others over the same. Dr says you need a compute level 3 card so how is mine inadequate?


Are you on v15.2
DaVinci Resolve Product Manager
Offline
User avatar

Jean Claude

  • Posts: 2973
  • Joined: Sun Jun 28, 2015 4:41 pm
  • Location: France

Re: [Nvidia] How to render with GPU?

PostSun Nov 18, 2018 11:32 am

Some tests with NVIDIA encoding and => fast more if you have a good GPU (s)
According to the source and the parameters of the project one can obtain:



Code: Select all
General
Complete name                            : G:\Temp\H265\HDR10\test_H265.mov
Format                                   : MPEG-4
Commercial name                          : HDR10
Format profile                           : QuickTime
Codec ID                                 : qt   0000.02 (qt  )
File size                                : 394 MiB
Duration                                 : 2 min 38 s
Overall bit rate                         : 20.8 Mb/s
Writing application                      : Lavf57.25.100

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Commercial name                          : HDR10
Format profile                           : Main 10@L5@Main
Codec ID                                 : hvc1
Codec ID/Info                            : High Efficiency Video Coding
Duration                                 : 2 min 38 s
Bit rate                                 : 19.3 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 59.940 (60000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 10 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.039
Stream size                              : 365 MiB (93%)
Language                                 : English
Color primaries                          : BT.2020
Transfer characteristics                 : PQ
Matrix coefficients                      : BT.2020 non-constant
Mastering display color primaries        : BT.2020
Mastering display luminance              : min: 0.0001 cd/m2, max: 4000 cd/m2
Maximum Content Light Level              : 1000 cd/m2
Maximum Frame-Average Light Level        : 400 cd/m2
Codec configuration box                  : hvcC

Audio
ID                                       : 2
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : lpcm
Duration                                 : 2 min 38 s
Bit rate mode                            : Constant
Bit rate                                 : 1 536 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Bit depth                                : 16 bits
Stream size                              : 29.0 MiB (7%)
Language                                 : English
Default                                  : Yes
Alternate group                          : 1

Other
ID                                       : 3
Type                                     : Time code
Format                                   : QuickTime TC
Duration                                 : 2 min 38 s
Time code of first frame                 : 01:00:00:00
Time code, striped                       : Yes
Language                                 : English
Default                                  : No

Other
Code: Select all
eneral
Complete name                            : G:\Temp\H265\Test_H265_V2.mov
Format                                   : MPEG-4
Format profile                           : QuickTime
Codec ID                                 : qt   0000.02 (qt  )
File size                                : 25.1 MiB
Duration                                 : 4 s 129 ms
Overall bit rate                         : 51.0 Mb/s
Writing application                      : Lavf57.25.100

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main@L6@Main
Codec ID                                 : hvc1
Codec ID/Info                            : High Efficiency Video Coding
Duration                                 : 4 s 129 ms
Bit rate                                 : 49.5 Mb/s
Width                                    : 4 608 pixels
Height                                   : 2 592 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.173
Stream size                              : 24.4 MiB (97%)
Language                                 : English
Transfer characteristics                 : PQ
Mastering display color primaries        : R: x=0.682780 y=0.318600, G: x=0.237620 y=0.813540, B: x=0.121740 y=0.000000, White point: x=0.312700 y=0.329000
Mastering display luminance              : min: 0.0001 cd/m2, max: 4000 cd/m2
Maximum Content Light Level              : 1000 cd/m2
Maximum Frame-Average Light Level        : 400 cd/m2
Codec configuration box                  : hvcC

Audio
ID                                       : 2
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : lpcm
Duration                                 : 4 s 129 ms
Bit rate mode                            : Constant
Bit rate                                 : 1 536 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Bit depth                                : 16 bits
Stream size                              : 774 KiB (3%)
Language                                 : English
Default                                  : Yes
Alternate group                          : 1


Advantage of the H265 on the H264 (NVIDIA) on compression:
For the same clip:
H264 = 2,281,495 KB
H265 = 403,111 KB

The H265 is compatible in delivery with the Resolution Custom timeline, for example: 4608 x 2592. H264 : NO

Next test : HDR Full...I'm confident... :)
"Saying it is good, but doing it is better! "
Win10-1809 | Resolve Studio V16.1 | Fusion Studio V16.1 | Decklink 4K Extreme 6G | RTX 2080Ti 431.86 NSD driver! |
Offline

Virion

  • Posts: 18
  • Joined: Mon Oct 01, 2018 8:40 pm
  • Real Name: David Teksowski

Re: [Nvidia] How to render with GPU?

PostSun Nov 18, 2018 5:53 pm

Vegas renders the same files 2 x faster and uses NVENC.
I think this is the limit of the free version Resolve.
Offline

HaveBlue

  • Posts: 133
  • Joined: Mon Nov 12, 2018 2:03 am
  • Real Name: Lars Dennert

Re: [Nvidia] How to render with GPU?

PostSat Dec 22, 2018 11:10 pm

So apparently Resolve doesn't have an updater. You have to redownload and reinstall every time there is a patch. I'm now on 15.2.2 It seems to render at 12fps for 4K 21:9 footage now and seems to use a good chunk of the GPU to do it now. Could also be since Nero deprecated SDK 4.0 in the drivers recently that it threw a wrench in the spokes.

15.0 I would get out of memory errors every 10 seconds as well while doing simple single track edits. I changed the timeline to FHD for editing and then changed it back to 4K before rendering. But even rendered transitions came out choppy. It was a constant litany of memory errors. I have 8GB of total memory allocated to the GPU. My scratch drive is an SSD.

Hopefully I'll see less memory errors in 15.2. I already have the monitors set down to 720. I really don't want to switch back to another NLE but Resolve isn't proving to be very stable. The only software I've seen that's less stable is Pinnacle Studio from 15 years ago.
W10Pro, Resolve Studio, Ryzen 7 3700X, 32GB RAM, SSD and platter drives, GTX 1070 8GB, LG 10bit 4K 32" monitor with two 20" HD monitors

Return to DaVinci Resolve

Who is online

Users browsing this forum: Bing [Bot], obcdublin, panos_mts and 161 guests