DaVinci Resolve

From ArchWiki
Jump to navigation Jump to search

Davinci Resolve is a proprietary video editor, color correction and compositing application.

Installation

There is a free version and a paid version (a.k.a. Studio).
For the free version, install davinci-resolveAUR or davinci-resolve-betaAUR.
For the Studio version, install davinci-resolve-studioAUR or davinci-resolve-studio-betaAUR.

To run DaVinci Resolve, it is required to use suitable OpenGL and OpenCL drivers. Open-source OpenCL drivers are currently unsupported. Please notice that incompatible OpenCL drivers should be uninstalled as they may cause Resolve to crash (e.g. uninstall opencl-mesa if you are using a proprietary equivalent).

Standalone Intel GPUs are currently unsupported. If using hybrid AMD + Intel setups, you can use the Intel GPU as the primary graphics card and use an proprietary OpenCL driver for the AMD GPU.

Table of OpenGL drivers
GPU vendor Type Driver OpenGL Documentation Tested driver version Works with DaVinci Resolve Tested DR version Notes
AMD / ATI Open source xf86-video-amdgpu mesa AMDGPU No
xf86-video-ati ATI Not tested
Proprietary xf86-video-amdgpu amdgpu-pro-libglAUR AMDGPU PRO 20.45_1188099-5 Yes 17.0b8-1 & 17.1 Requires running Resolve with the progl wrapper script.
Intel Open source xf86-video-intel mesa Intel graphics Yes
NVIDIA Open source xf86-video-nouveau mesa Nouveau No
Proprietary nvidia nvidia-utils NVIDIA 460.32.03-1 Yes 17.0b6-1 Tested on optimus laptop using nvidia-xrun.
Table of tested OpenCL drivers
GPU Vendor OpenCL driver Tested driver version Works with DR Comment
Neutral opencl-mesa No
AMD opencl-amd-polarisAUR 19.50.967956-1 Yes Tested with RX 580
opencl-amdAUR 20.50.1234664 Yes Tested on RX 6800 XT
Intel intel-compute-runtime 19.27.13361-1 No Core dumped
beignetAUR 1.3.2+12+gfc5f430c-2 No Core dumped
intel-openclAUR 5.0.r63503-2 No Core dumped
intel-opencl-runtimeAUR 1:18.1.0.013-2 No Core dumped
Nvidia opencl-nvidia 460.32.03-1 Yes Suitable, but working on cuda instead?

DaVinci Resolve Checker

You can run davinci-resolve-checker script, which will tell you if your configuration is suitable for running DR. In good configuration it should output:

All seems good. You should be able to run DaVinci Resolve successfully.

BlackMagic Design Cards

If using DeckLink, UltraStudio or Intensity cards for video capture and playback, install Desktop Video Software with decklinkAUR package.

Tips and tricks

Decrease installation time

Compression of a Davinci Resolve package takes significant time, because the binary is quite large. You can avoid compression and decompression by installing Davinci Resolve like this (assuming you use yay):

   $ PKGEXT='.pkg.tar' yay -S davinci-resolve

See Makepkg#Use other compression algorithms page for more information.

Troubleshooting

Application window misses title bar

It is a problem of a Linux version of DR There is a workaround for KDE - a window rule to force enable title bar. See [1]

You can manually create a file describing needed window rule:

DaVinci_Resolve_main_window_always_with_titlebar_and_frame.kwinrule
[DaVinci Resolve main window always with titlebar and frame]
Description=DaVinci Resolve main window always with titlebar and frame
clientmachinematch=0
noborder=false
noborderrule=2
titlematch=0
types=1
wmclass=davinci-resolve
wmclasscomplete=false
wmclassmatch=1

Then go to System Settings -> Window Management -> Window Rules and import this file.

My .mp4 clips are shown as audio clips and even its sound is not working

This problem only affects a free version of DR for Linux. MP4 containers are not supported, also AAC audio is not supported. To workaround, you may convert your video file to another format or purchase a studio version. Transcoding command may look like this:

ffmpeg -i input.mp4 -c:v dnxhd -profile:v dnxhr_hq -pix_fmt yuv422p -c:a pcm_s16le -f mov output.mov

Note, that as of April 2020, even studio version does not support AAC decoding in MP4 files. See supported codecs pdf in #See also.

There is no yet (as of April 2021) such a document for DR 17, but DR 17.1 and DR studio 17.1 both supports mp3 files. However, for some reason, integrating mp3 audio to mov file is not playing.

HiDPI

To enable compatibility with high-resolution displays, set the following environment variables accordingly:

export QT_DEVICE_PIXEL_RATIO=2
export QT_AUTO_SCREEN_SCALE_FACTOR=true

Source: https://forum.blackmagicdesign.com/viewtopic.php?f=21&t=84614&p=469009&hilit=hidpi#wrapper

Wine version

Some plugins are available for Windows, but not available for Linux, so you may want to use Davinci Resolve via wine. Unfortunately, as of wine 6.0-1, it is not working. Splash screen even does not appear. In terminal there is such error message:

 wine: Call from 000000007BC2EC78 to unimplemented function OpenCL.dll.clGetExtensionFunctionAddressForPlatform, aborting

This is when intel gpu is in use.

Wrong OpenCL Version

If the Application simply is not starting, even after showing installer and "tour" successfully your OpenCl Version may not match your NVIDIA driver. If you have installed nvidia-440xx make sure to install opencl-nvidia-440xx as well. A possible error message:

~/.local/share/DaVinciResolve/logs/LogArchive/ResolveDebug_C1.txt
...
OpenCL error -1001: 'Unspecified Error', GPUPropertiesUtilUnix.cpp:338
...

Get back to Onboarding screen

If you are experimenting with driver installation, you may want to start from the welcome tour and onboarding screen, which checks your system and graphics card. You can achieve that by removing configs directory:

rm -r $HOME/.local/share/DaVinciResolve/configs

Full screen preview function missing

This function is only available in studio version. It is in menu Workspace -> Video Clean Feed.

Audio recording in Fairlight not working

Recording audio tracks with microphone (USB or jack) is currently not working in both Studio and free version. See [2][dead link 2020-12-22 ⓘ].

No audio during video preview

DaVinci interfaces the ALSA directly, so you need to redirect it to use PulseAudio by creating asound.conf in /etc/ with the following content:

/etc/asound.conf
pcm.!default pulse
ctl.!default pulse

Silent crash related to libcrypto.so.1.0.0

Possible crash message:

~/.local/share/DaVinciResolve/logs/ResolveDebug.txt
...

====[CRASH DUMP]====
Please send this to support: #TIME Sat Jan 23 19:42:20 2021 - Uptime 00:00:08 (hh:mm:ss) #PROGRAM_NAME DaVinci Resolve v16.2.8.005 (Linux/Clang) /opt/resolve/bin/resolve() [0x550e0a9] /opt/resolve/bin/resolve() [0x550d89a] /usr/lib/libpthread.so.0(+0x140f0) [0x7f80d90640f0] /usr/lib/libc.so.6(+0x15df7e) [0x7f80d6af5f7e] /opt/resolve/bin/../libs/libcrypto.so.1.0.0(lh_insert+0xad) [0x7f80d8aa2e4d] /opt/resolve/bin/../libs/libcrypto.so.1.0.0(OBJ_NAME_add+0x65) [0x7f80d89f1855] ...

Replace `/opt/resolve/libs/libcrypto.so.1.0.0` with `/usr/lib/libcrypto.so.1.0.0`:

 sudo cp /usr/lib/libcrypto.so.1.0.0 /opt/resolve/libs/libcrypto.so.1.0.0

See also