DaVinci Resolve

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

Installation

Both a limited free version and a paid (Studio) version are offered.
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 a proprietary OpenCL driver for the AMD GPU.

Table of OpenGL drivers
GPU vendorOpenGL driverOpen SourceDocumentationTested driver versionWorks with DaVinci ResolveTested DR versionNotes
AMD mesaYesAMDGPU22.0.0-1Yes, but currently only for Vega and onward GPUs17.4.5-1AMD's ORCA legacy OpenCL driver requires ProGL. A resolve-amdocl-fix workaround seems to not work. See this bug report for more info.
Tested with Radeon RX 580 (does not work)
Tested with Radeon PRO W6600 (works).
AMDGPU PRO21.10_1247438-1Yes17.1.1Requires running Resolve with the progl wrapper script. See documentation and the driver github for usage.
Intel mesaYesIntel graphicsYes
NVIDIA mesaYesNouveau
NVIDIA460.32.03-1Yes17.0b6-1Tested on optimus laptop using nvidia-xrun.
Table of tested OpenCL drivers
GPU VendorOpenCL driverOpen SourceTested driver versionWorks with DRTested DR versionComment
Neutral opencl-mesaYes22.0.0-117.4.5-1DR behaves like with intel-compute-runtime (likely same cause). Launches normally, can open a project. But unable to start playing the timeline (even without video tracks) in the Cut and in the Edit pages. However in the Fairlight page it is able to play timeline.
DR requires OpenCL 1.2. Mesa supports OpenCL 1.2, despite reporting it as OpenCL 1.1. Overriding OpenCL version with CLOVER_PLATFORM_VERSION_OVERRIDE=1.2 CLOVER_DEVICE_VERSION_OVERRIDE=1.2 CLOVER_DEVICE_CLC_VERSION_OVERRIDE=1.2 does not change the situation.
Tested with RX580.
AMD 22.10.1.50101-117.4.3
18.0B
Unfortunately, there is no currently AUR package with only repackaged rocm drivers from Ubuntu. On GFX8 (RX 580 and others), the ORCA legacy driver is used, which itself currently requires the AMDGPU-PRO OpenGL drivers to work (see above).
Tested with Radeon Pro W6600 (works, even with mesa)
Tested with Radeon RX 580 (works, currently only with progl).
Tested with Radeon RX 5700 XT (works, even with mesa on 18.0B)
Yes5.1.1-117.4.6Works with GFX9/Vega and above; works with Mesa OpenGL
Tested with Radeon Pro W6600
22.10.1_1401426-117.4.6-2Note that this is simply the package without the ROCm drivers.
Requires the AMDGPU-PRO OpenGL drivers to work.
Tested with Radeon RX580.
Intel intel-compute-runtimeYes22.26.2359918.0b5Launches normally, can open a project. But unable to start playing the timeline (even without video tracks) in the Cut and in the Edit pages. However in the Fairlight page it is able to play timeline.
Tested with Intel Core i7-8700 CPU. This is due to the 'cl_khr_gl_sharing' extension not being implemented.
Yes1.3.2+12+gfc5f430c-2Core dumped
5.0.r63503-2Core dumped
intel-opencl-runtimeAUR1:18.1.0.013-2Core dumped
Nvidia 460.32.03-1YesSuitable, 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 configurations 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 package.

Tips and tricks

Decrease installation time

Compression of the Davinci Resolve package takes a significant amount of time because the binary is quite large. You can instruct makepkg to use a different compression algorithm, which is in this case disables compression altogether, speeding up the process tremendously.

PKGEXT='.pkg.tar'

Using application in portable way

There may be reasons you may want to not install davinci resolve package to the system. For example, you do not want such big package to take space in system partition. Or you want to quickly switch between different versions of application: free and studio, current and previous versions. To do this, just unpack the contents of the needed versions package in the directory you want, and directly run the opt/resolve/bin/resolve from that directory.

Automating with scripts

DR supports scripting. Free version support launching the scripts only from within dr itself, while with Studio version you can also invoke scripts externally. To allow it, go to Preferences -> System -> General -> External scripting using. You can choose: None (similarly to Free version, only from within dr), Local (allow invokes from local host), and Network (allow invokes from remote host).

The documentation can be found in Help -> Documentation -> Developer.

Remap keyboard modifiers used with mouse wheel for scroll and zoom

The application uses very strange bindings of keyboard modifiers for zooming and scrolling timeline. Original behavior is the following:

  • shift + wheel = height of tracks
  • ctrl + wheel = scroll timeline
  • alt + wheel = zoom timeline
  • no modifiers + wheel = vertical scroll

It is impossible to remap this from application, see .

A workaround (working in X11 and Wayland) is to use evsieve. Replace and with your keyboard and mouse events in the following command:

Another workaround (working in X11 (and Xwayland), is worse and sometimes skips events) of this problem, you can use IMWheel utility. It can remap modifiers only for the application described by regular expression.

Use the following config:

Alternatively, use the following blocks:

Prevent prompt returning before full exit

When you exit application, the terminal prompt is returned to you, but suddenly the terminal is polluted with "Socket disconnected" message. To prevent this, pipe output of main process via cat. See here for explanation.

Troubleshooting

Logs location

DaVinci Resolve creates log file at every launch. If are you having problems, try to inspect it for useful messages.

Application window misses title bar

There is a workaround for KDE - a window rule to force enable title bar. See

You can manually create a file describing needed window rule: Then go to System Settings > Window Management > Window Rules and import this file.

Mp4 clips are not working

In DR Free the MP4 containers are not supported. Their preview image is shown as blank. And AAC audio stream (mp4 uses that format) is not supported. When you place that clip to timeline, it will be just an audio clip with silence.

In DR Studio the mp4 videos are supported, but AAC decoding is still not supported. When you place your mp4 clip to timeline, you will get the normal video track, and the audio track will be silent.

Workaround for DR Free

You need to convert your video file to another format. 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

You can automate this task using incron. It will automatically convert files appeared in specified folder. See setup example on this article. Another alternative is to write a resolve script for that purpose. See documentation for Resolve Scripting (linked in the see also section) for more information.

Workaround for DR Studio

You need to extract the audio from mp4 clips and convert it to mp3 (takes less space than wav and is supported, see below). Then you can import it and make a compound clip with video track.

You can use mp4 audio compounder.py resolve script by Andrew Shark, which automates this routine.

In #See also section in pdf document of supported codecs, mp3 is listed as supported. For some reason, integrating mp3 audio to mov file is not playing. Tested with DR 17.1 and DR studio 17.4.3.

HiDPI

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

QT_DEVICE_PIXEL_RATIO=2
QT_AUTO_SCREEN_SCALE_FACTOR=true

Wine version

Some plugins are available for Windows, but not available for Linux, so you may want to use Davinci Resolve via wine. Also, wine version could potentially workaround the linux-only problem of mp4 format issues. Wine 6.5 brings OpenCL 1.2 support, which is required for DR. Unfortunately, there was no success to start DR via wine. See test results here. In 17.4.1 DR cannot see the list of available gpus (wine 6.21). Probably, need some hack to make wine present gpus to applications.

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 the studio version. It is in menu Workspace > Video Clean Feed.

No audio during video preview

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

Error code 999 on intel/nvidia hybrid graphic card

"The GPU failed to perform image processing because of an error. Error Code: 999."

If the nvidia gpu is used in on-demand mode, you have to explicitly demand it. To enable set the following environment variables:

__NV_PRIME_RENDER_OFFLOAD=1
__GLX_VENDOR_LIBRARY_NAME=nvidia

Possible crash message:

Replace with :

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

Missing Workflow Integrations menu

In DR Studio for Windows and Mac OS there is Workspace -> Workflow Integrations menu. Workflow Integration plugins are written in JavaScript (electron applications). As noted in documentation (you can reach it in Help -> Documentation -> Developer), Linux currently is not supported (checked in 17.4.3). They say Integration Scripts are supported in Linux, this is most probably a mistake, because they did not provided a path where to put them and still the menu is missing (it is that same Workspace -> Workflow Integrations).

Python 3.6 not found

When going to Workspace -> Console -> Py3 the error window appears saying "Python 3.6 not found".

One solution is the following (from this question):

env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.6.11
sudo ln -s $HOME/.pyenv/versions/3.6.11/lib/python3.6 /usr/local/lib/python3.6
sudo ln -s $HOME/.pyenv/versions/3.6.11/lib/libpython3.so /usr/local/lib/libpython3.6.so

In DR 18 they say that all python 3 versions are supported.

Kill hanged process

If dr hanged, fails to release a terminal when you press ctrl + c (to send sigint), and when its window is not shown and you cannot open dr again (it is saying another instance is already running), you can still fix it. Open task manager (ctrl + esc in KDE), then search for process named "GUI", then kill it (send signal 9). Now you can start dr normally.

Use Dolphin instead of Qt File Picker

Unfortunately, DR does not support XDG desktop portals yet. See for feature request. As a workaround, you can use Andrew Shark's script Import Media via Dolphin.

gollark: Neurons are apparently individually about as complex as a large computer "DNN".
gollark: The components aren't really understood either.
gollark: I don't know what you're saying here. It isn't as if all the operational details of the brain are particularly well-understood in any case.
gollark: Devalued how?
gollark: It isn't like knowing about something and how it works stops it being cool.

See also

  • Post on Davinci Resolve forum with tested configurations.
  • PDF with list of Supported Formats and Codecs for DR 18
  • Here you can check if BMD released a document for a newer version, see in the Latest Support Notes column. Also, it lists the whats new notes for each release.
  • ResolveDevDoc - unofficial documentation for scripting. Formatted with readthedocs and is prettier to read and search than in original txt file.
  • pydavinci - a reworked resolve scripting api
This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.