No hardware acceleration for Canon RAW?

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

Lucius Snow

  • Posts: 730
  • Joined: Sun Nov 24, 2013 1:19 pm

No hardware acceleration for Canon RAW?

PostWed Sep 13, 2023 4:52 pm

Hi all,

Canon RAW CRM files are running very slowly on Linux (a few frames per second) with version 18.5.1. The same files on the same computer with the same DaVinci project play in real time on Windows.

Is there any component missing on Linux?

Thanks.
Last edited by Lucius Snow on Thu Sep 14, 2023 8:23 pm, edited 1 time in total.
Offline

Lucius Snow

  • Posts: 730
  • Joined: Sun Nov 24, 2013 1:19 pm

Re: No hardware acceleration for Canon RAW?

PostThu Sep 14, 2023 8:18 pm

Same on 18.6 :\
Offline

Jim Simon

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

Re: No hardware acceleration for Canon RAW?

PostFri Sep 15, 2023 4:41 pm

I'm getting barely realtime performance with C4K 23.976 clips in Studio 18.6 on Windows 10 with an RTX 3060 12 GB.
My Biases:

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

Lucius Snow

  • Posts: 730
  • Joined: Sun Nov 24, 2013 1:19 pm

Re: No hardware acceleration for Canon RAW?

PostFri Sep 15, 2023 5:14 pm

Yes it's fine on Windows.
Offline
User avatar

Dwaine Maggart

Blackmagic Design

  • Posts: 13260
  • Joined: Wed Aug 22, 2012 2:53 pm

Re: No hardware acceleration for Canon RAW?

PostFri Sep 15, 2023 5:18 pm

My crm sample is from a Canon C200, and is 4096x2160 at 23.98 and is 7.6GB and plays back in real time on an HD timeline on my Rocky 8.6 Linux system with Resolve Studio 18.6.

Can you share a link to a file that's not playing well for you, so I can test that?
Dwaine Maggart
Blackmagic Design DaVinci Support
Offline

Lucius Snow

  • Posts: 730
  • Joined: Sun Nov 24, 2013 1:19 pm

Re: No hardware acceleration for Canon RAW?

PostFri Sep 15, 2023 6:03 pm

Offline

Lucius Snow

  • Posts: 730
  • Joined: Sun Nov 24, 2013 1:19 pm

Re: No hardware acceleration for Canon RAW?

PostWed Sep 20, 2023 3:08 pm

Hello Dwaine,

Have you been able to have a look? The link expires in two days.

Thanks.
Offline
User avatar

Dwaine Maggart

Blackmagic Design

  • Posts: 13260
  • Joined: Wed Aug 22, 2012 2:53 pm

Re: No hardware acceleration for Canon RAW?

PostWed Sep 20, 2023 5:27 pm

Yes, I've had a look. And with your file, I see similar behavior. I've asked the dev team to investigate.
Dwaine Maggart
Blackmagic Design DaVinci Support
Offline

Lucius Snow

  • Posts: 730
  • Joined: Sun Nov 24, 2013 1:19 pm

Re: No hardware acceleration for Canon RAW?

PostWed Sep 20, 2023 5:27 pm

Thank you!
Offline

smunaut

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

Re: No hardware acceleration for Canon RAW?

PostSat Oct 07, 2023 2:44 pm

I think I'm seeing the same thing.
I see virtually no GPU usage but all CPU cores are pinned at 100% ...

(18.6.1 on linux with CUDA RTX4070. The CRM clip is from Uli's benchmark project)
Resolve Studio - Ryzen 5800X3D - AMD RX6600 / NVidia RTX 4070 (switching between the 2) - Linux
Offline
User avatar

Uli Plank

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

Re: No hardware acceleration for Canon RAW?

PostSat Oct 07, 2023 3:16 pm

That same clip is playing smoothly here in an UHD timeline.
All cores, both CPU and GPU are around 30-40% if only playing that clip. With the demanding benchmarking effects activated, the GPU cores get maxed out and the CPU cores are not very active.

Getting back to the initial question: I doubt there is hardware acceleration for CRW on any system. But the SDK for Linux might be less efficient.
My disaster protection: export a .drp file to a physically separated storage regularly.
Please visit digitalproduction.com/author/uliplank/

Studio 19.1.3
2017 iMac, MacOS 13.7.4, eGPU
MacBook M1 Pro and M4 Pro mini, MacOS 14.7.5
SE, USM G3
Offline

Lucius Snow

  • Posts: 730
  • Joined: Sun Nov 24, 2013 1:19 pm

Re: No hardware acceleration for Canon RAW?

PostSat Oct 14, 2023 7:05 pm

Is there any update from the dev team?
Offline
User avatar

Dwaine Maggart

Blackmagic Design

  • Posts: 13260
  • Joined: Wed Aug 22, 2012 2:53 pm

Re: No hardware acceleration for Canon RAW?

PostMon Oct 16, 2023 5:25 pm

No update.
Dwaine Maggart
Blackmagic Design DaVinci Support
Offline

aaronvandomelen

  • Posts: 171
  • Joined: Sun Mar 01, 2020 3:11 am
  • Real Name: Aaron Van Domelen

Re: No hardware acceleration for Canon RAW?

PostFri Jan 31, 2025 6:20 pm

Adobe is adding Apple Silicon Acceleration for Cinema Raw Light Codecs. It's currently working the latest beta of Premiere Pro.

Is BMD aware that this is possible? Any chance they can implement as well?
current config = Apple M1 Pro 16GB RAM, Mac OSX 13.6.2
Offline

Lucius Snow

  • Posts: 730
  • Joined: Sun Nov 24, 2013 1:19 pm

Re: No hardware acceleration for Canon RAW?

PostSat Feb 01, 2025 1:48 pm

Hi Dwaine, still no update in 2025?
Offline
User avatar

Uli Plank

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

Re: No hardware acceleration for Canon RAW?

PostSat Feb 01, 2025 3:06 pm

aaronvandomelen wrote:Adobe is adding Apple Silicon Acceleration for Cinema Raw Light Codecs. It's currently working the latest beta of Premiere Pro.
That would be some optimisation for Apple's silicon, but those machines have specific hardware only for H.264, H.265 and ProRes.
My disaster protection: export a .drp file to a physically separated storage regularly.
Please visit digitalproduction.com/author/uliplank/

Studio 19.1.3
2017 iMac, MacOS 13.7.4, eGPU
MacBook M1 Pro and M4 Pro mini, MacOS 14.7.5
SE, USM G3
Offline

kriptomik

  • Posts: 3
  • Joined: Mon May 12, 2025 7:55 am
  • Real Name: Michael bernardoff

Re: No hardware acceleration for Canon RAW?

PostMon May 12, 2025 8:01 am

Hi,

How could this topic get some love ? It's a pitty to have such good CODEC and no proper way to use it in linux, the performance is really terrible. I couldn't even find information on the canon CRM internal format, and there is no way it's not possible to achieve good performance on a desktop where a camera can do it.

This would so much of a good thing for both Blackmagic and Canon to have a usable RAW CODEC.

Please get some linux love here and fix Canon Raw Movie performance on DaVinci Resolve !
Offline

ZRGARDNE

  • Posts: 927
  • Joined: Sun May 16, 2021 12:32 am
  • Real Name: Zeb Gardner

Re: No hardware acceleration for Canon RAW?

PostTue May 13, 2025 1:42 am

There is never going to be hardware acceleration as OP asks for.

This would require Intel or Nvidia to add silicon specific to Canon Raw like NV did in 50 series for H.265 4:2:2 and Apple has for PR. And the ROI for Canon raw would be absolutely zero.

Reading this thread, it does sound like the software decoding on Linux is slower than in Windows, which does seem like a Black Magic code problem they could solve.

I have used 8k raw from my R5 on Windows, it is slow. But I have not tried on Linux to know if it is even worse.

BM did apparently fix the Canon Raw ISO bug very recently, years after I reported it. It would be worth retesting decode speeds and see if anything else changed.
Offline

Nick2021

  • Posts: 910
  • Joined: Thu May 13, 2021 3:19 am
  • Real Name: Nick Zentena

Re: No hardware acceleration for Canon RAW?

PostTue May 13, 2025 4:48 am

Isn't R3D from Red decoded on the GPU?

The issue might be Canon keeping things closed more than the need for new task specific hardware
Offline

kriptomik

  • Posts: 3
  • Joined: Mon May 12, 2025 7:55 am
  • Real Name: Michael bernardoff

Re: No hardware acceleration for Canon RAW?

PostTue May 13, 2025 6:08 am

Thanks for your feedback !

I'll test again on linux and come back to you (With some numbers)

Nick2021 wrote:Isn't R3D from Red decoded on the GPU?

The issue might be Canon keeping things closed more than the need for new task specific hardware

You got a point, while GPU implementation would be so cool, GOOD CPU would be fine.
Let's do the math with some lame SSE impletation
You need to weigth adjacant pixels, let's say 4 cycles, accumulate, let say 2 cycles, and scale let's say 2 other cycles. Let's add 8 cycles more just because we want to minor performance so that 16 cycles per pixel (Cache works well, you work with nearby data) and let's add 16 more again because I'm a moron. At 4Ghz, that's 166 Million pixels per second per thread. With 8 threads you have 1.3GPixel per second so 28FPS at 45MPixel per frame.

So with something like AVX proper implementation I'm sure we can reach 60Fps at 8k with a proper and rather genereic CPU implementation.
Offline
User avatar

carlomacchiavello

  • Posts: 3064
  • Joined: Tue Aug 28, 2012 6:04 pm
  • Location: italy

Re: No hardware acceleration for Canon RAW?

PostTue May 13, 2025 7:26 am

Nick2021 wrote:Isn't R3D from Red decoded on the GPU?

The issue might be Canon keeping things closed more than the need for new task specific hardware
Red wrote red code to be gpu accelerated.


Inviato dal mio iPad utilizzando Tapatalk
Offline

Andrew Kolakowski

  • Posts: 9533
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: No hardware acceleration for Canon RAW?

PostTue May 13, 2025 1:14 pm

RED RAW is JPEG2000 which can benefit a lot from GPU decoding. Still bad format and overkill even today. New RED RAW is simple DCT based codec, like BRAW or ProResRAW etc. Efficient enough and a lot easier to decode. No need for crazy 10K$ accelerator :D
Offline

kriptomik

  • Posts: 3
  • Joined: Mon May 12, 2025 7:55 am
  • Real Name: Michael bernardoff

Re: No hardware acceleration for Canon RAW?

PostThu May 15, 2025 6:53 pm

Hi, just tested on Resolve 20 beta, 8k30 RAW .CRM file from R5, on LinuxMint, Threadripper 7960 file local on a brand new M2 gen 5 drive, I get all 48 threads to 100% and it's clearly not smooth. I don't know how to mesure actual decode frame per second, I would guess something around 10-15.
Underwhelming.

Will try other formats like SRAW 8k and 4k from the R5mk2 when I got the time to qnd post results, if someone can tell me how to get real FPS counter it would be perfect.

I hope it helps.
Offline
User avatar

Uli Plank

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

Re: No hardware acceleration for Canon RAW?

PostFri May 16, 2025 2:47 am

In my experience the counter in the Color page is realistic.
My disaster protection: export a .drp file to a physically separated storage regularly.
Please visit digitalproduction.com/author/uliplank/

Studio 19.1.3
2017 iMac, MacOS 13.7.4, eGPU
MacBook M1 Pro and M4 Pro mini, MacOS 14.7.5
SE, USM G3
Offline

CougerJoe

  • Posts: 608
  • Joined: Wed Sep 18, 2019 5:15 am
  • Real Name: bob brady

Re: No hardware acceleration for Canon RAW?

PostFri May 16, 2025 2:53 am

Nick2021 wrote:Isn't R3D from Red decoded on the GPU?

The issue might be Canon keeping things closed more than the need for new task specific hardware


It looks like Linux isn't using the GPU for acceleration of the Canon CRM codec, but it is using the GPU on Windows, but not to same extent as R3D.

On Windows 8K24P CRM is using 75% CPU on an 8K timeline, but smooth playback/scrubbing even with dissolve transitions, it's a poor starting point though for that level of CPU to merely play the media, choosing the 1/2 timeline playback resolution and CPU use cycles between 15-30% giving lots of CPU headroom. Considering the OP's CPU is more than twice as powerful as mine it must indicate the GPU is playing no part at all in the decode of CRM on LInux.

Was using 33% of GPU for full resolution playback, 1/2 that for 1/2 resolution.
Offline

Andrew Kolakowski

  • Posts: 9533
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: No hardware acceleration for Canon RAW?

PostFri May 16, 2025 9:50 am

kriptomik wrote:Hi, just tested on Resolve 20 beta, 8k30 RAW .CRM file from R5, on LinuxMint, Threadripper 7960 file local on a brand new M2 gen 5 drive, I get all 48 threads to 100% and it's clearly not smooth. I don't know how to mesure actual decode frame per second, I would guess something around 10-15.
Underwhelming.

Will try other formats like SRAW 8k and 4k from the R5mk2 when I got the time to qnd post results, if someone can tell me how to get real FPS counter it would be perfect.

I hope it helps.


Switch under 3 dots on editing page to "show all frames".
Offline

Lucius Snow

  • Posts: 730
  • Joined: Sun Nov 24, 2013 1:19 pm

Re: No hardware acceleration for Canon RAW?

PostSat May 17, 2025 9:19 am

kriptomik wrote:Hi, just tested on Resolve 20 beta, 8k30 RAW .CRM file from R5, on LinuxMint, Threadripper 7960 file local on a brand new M2 gen 5 drive, I get all 48 threads to 100% and it's clearly not smooth. I don't know how to mesure actual decode frame per second, I would guess something around 10-15.
Underwhelming.

Will try other formats like SRAW 8k and 4k from the R5mk2 when I got the time to qnd post results, if someone can tell me how to get real FPS counter it would be perfect.

I hope it helps.

It's still not fixed. No GPU acceleration at all.
Offline

Andrew Kolakowski

  • Posts: 9533
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: No hardware acceleration for Canon RAW?

PostSat May 17, 2025 11:57 am

I have no idea what Canon uses underneath CRM RAW files. They do have some compression, but they don't say anything about the technology used. They say "easy to decode", but this seems to be far from the truth. Resolve allows to choose 2 methods of handling Canon RAW, so looks like SDK does offer access to RAW pixels (after decoding). Still decoding is done using Canons libraries, so this will be out of BM control and they can't speed it up (same like in case of RED), neither they can "magically" add GPU acceleration for this step.
You can only improve debayering step, but this in Resolve is already fast and fine. Besides GPU acceleration makes sense only if codec can benefit from it, which heavily depends on codec design.
Last edited by Andrew Kolakowski on Sat May 17, 2025 12:01 pm, edited 1 time in total.
Offline

Lucius Snow

  • Posts: 730
  • Joined: Sun Nov 24, 2013 1:19 pm

Re: No hardware acceleration for Canon RAW?

PostSat May 17, 2025 12:01 pm

The question is why the SDK is implemented correctly in Windows but not Linux.
Offline

Andrew Kolakowski

  • Posts: 9533
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: No hardware acceleration for Canon RAW?

PostSat May 17, 2025 12:02 pm

If it works better on Windows then there may be some issue with implementation or issue is in actual Canon's SDK itself, which is not equal for all OS systems.

https://developercommunity.usa.canon.co ... opment-Kit

This suggests it should work about the same for all OS. Note that Nvidia series 5.x is not officially supported/tested as per this document.

Return to DaVinci Resolve

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], LambdaPA80 and 299 guests