Howto davinci resolve: Difference between revisions

From Vidalinux Wiki
Jump to navigation Jump to search
(37 intermediate revisions by the same user not shown)
Line 18: Line 18:
enable chaotic repo:
enable chaotic repo:
  https://wiki.vidalinux.org/index.php/Howto_create_own_archlinux_distro#enable_chaotic_repo
  https://wiki.vidalinux.org/index.php/Howto_create_own_archlinux_distro#enable_chaotic_repo
enable ovox.io repo:
install mesa-tkg-git and lib32-mesa-tkg-git :
https://wiki.vidalinux.org/index.php/Howto_create_own_archlinux_distro#enable_ovox.io_repo
  pacman -S mesa-tkg-git lib32-mesa-tkg-git --noconfirm
install latest mesa-tgk-git:
  pacman -S mesa-tkg-git lib32-mesa-tkg-git
install latest xanmod-edge:
install latest xanmod-edge:
  yay -S linux-xanmod-edge-linux-bin-x64v4 linux-xanmod-edge-linux-headers-bin-x64v4
  yay -S linux-xanmod-edge-linux-bin-x64v4 linux-xanmod-edge-linux-headers-bin-x64v4
install intel-runtime:
install intel-runtime:
  pacman -S intel-graphics-compiler=1:1.0.16510.1-1 intel-compute-runtime=24.09.28717.17-1 onevpl-intel-gpu intel-gpu-tools intel-media-driver
  pacman -S intel-graphics-compiler intel-compute-runtime onevpl-intel-gpu intel-gpu-tools intel-media-driver
block pacman for updating the following packages edit /etc/pacman.conf:
clone vidalinux aur github repo:
IgnorePkg  = intel-compute-runtime* intel-graphics-compiler* level-zero-headers* opencl-headers* spirv-headers* spirv-tools* vc-intrinsics*
git clone https://github.com/vidalinux/AUR.git
create and install intel-compute-runtime package:
cd AUR/intel-compute-runtime
makepkg -si
add this to /etc/default/grub:
add this to /etc/default/grub:
  GRUB_CMDLINE_LINUX="i915.force_probe=56a0"
  GRUB_CMDLINE_LINUX="i915.force_probe=56a0"
Line 36: Line 37:
reboot system:
reboot system:
  reboot
  reboot
launch davinci resolve in wayland:
QT_QPA_PLATFORM=xcb /opt/resolve/bin/resolve
in gnome 47 set the following to fix an error with vulkan:
sudo su -
echo "GSK_RENDERER=ngl" >> /etc/environment
reboot
= install davinci archlinux =
install davinci-resolve using yay:
yay -S davinci-resolve
or install davinci-resolve-studio:
yay -S davinci-resolve-studio
for amd when installation finish edit /usr/share/applications/DaVinciResolve.desktop:
Exec='''/usr/bin/progl''' /opt/resolve/bin/resolve
if you have the following issues when launching davinci:
symbol lookup error: /usr/lib/libgdk_pixbuf-2.0.so.0: undefined symbol: g_task_set_static_name
use the following script:
cat > /usr/local/bin/disable-resolve-libraries.sh << "EOF"
#!/bin/bash
srcdir=/opt/resolve
if [ ! -d ${srcdir}/libs/disabled-libraries ];
then
mkdir ${srcdir}/libs/disabled-libraries
fi
mv ${srcdir}/libs/libglib* ${srcdir}/libs/disabled-libraries
mv ${srcdir}/libs/libgio* ${srcdir}/libs/disabled-libraries
mv ${srcdir}/libs/libgmodule* ${srcdir}/libs/disabled-libraries
EOF
set script permissions and execute:
chmod +x /usr/local/bin/disable-resolve-libraries.sh
/usr/local/bin/disable-resolve-libraries.sh
now you can launch davinci resolve:
/opt/resolve/bin/resolve
= install davinci opensuse =
download the following script:
curl -O https://raw.githubusercontent.com/vidalinux/resolve-flatpak/main/shell/download-resolve.sh
set script permissions:
chmod +x download-resolve.sh
download davinci resolve using this script:
./download-resolve.sh
install the package, ignoring the whether all of the prerequisite packages are installed:
SKIP_PACKAGE_CHECK=1 ./DaVinci_Resolve_19.0b3_Linux.run
install libjpeg62 package:
sudo zypper install libjpeg62
create the following script:
cat > /usr/local/bin/disable-resolve-libraries.sh << "EOF"
#!/bin/bash
srcdir=/opt/resolve
if [ ! -d ${srcdir}/libs/disabled-libraries ];
then
mkdir ${srcdir}/libs/disabled-libraries
fi
mv ${srcdir}/libs/libglib* ${srcdir}/libs/disabled-libraries
mv ${srcdir}/libs/libgio* ${srcdir}/libs/disabled-libraries
mv ${srcdir}/libs/libgmodule* ${srcdir}/libs/disabled-libraries
EOF
set script permissions and execute:
chmod +x /usr/local/bin/disable-resolve-libraries.sh
/usr/local/bin/disable-resolve-libraries.sh
now you can launch davinci resolve:
/opt/resolve/bin/resolve
= install davinci fedora =
enable rpm-fusion free and non-free repos:
sudo dnf install \
  https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install \
  https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
make sure you have nvidia cuda drivers install:
sudo dnf -y install xorg-x11-drv-nvidia-cuda
download the following script:
curl -O https://raw.githubusercontent.com/vidalinux/resolve-flatpak/main/shell/download-resolve.sh
set script permissions:
chmod +x download-resolve.sh
download davinci resolve using this script:
./download-resolve.sh
install the package, ignoring the whether all of the prerequisite packages are installed:
SKIP_PACKAGE_CHECK=1 ./DaVinci_Resolve_19.0.3_Linux.run
install libxcrypt-compat package:
sudo dnf -y install libxcrypt-compat
create the following script as root user:
cat > /usr/local/bin/disable-resolve-libraries.sh << "EOF"
#!/bin/bash
srcdir=/opt/resolve
if [ ! -d ${srcdir}/libs/disabled-libraries ];
then
mkdir ${srcdir}/libs/disabled-libraries
fi
mv ${srcdir}/libs/libglib* ${srcdir}/libs/disabled-libraries
mv ${srcdir}/libs/libgio* ${srcdir}/libs/disabled-libraries
mv ${srcdir}/libs/libgmodule* ${srcdir}/libs/disabled-libraries
EOF
change script permissions and execute:
chmod +x /usr/local/bin/disable-resolve-libraries.sh
/usr/local/bin/disable-resolve-libraries.sh
as normal user launch davinci resolve:
/opt/resolve/bin/resolve


= install davinci resolve =
= manually download davinci resolve =
download qt5-webkit:
wget https://phoenixnap.dl.sourceforge.net/project/fabiololix-os-archive/Packages/qt5-webkit-5.212.0alpha4-20-x86_64.pkg.tar.zst
install qt5-webkit:
pacman -U qt5-webkit-5.212.0alpha4-20-x86_64.pkg.tar.zst
download latest davinci resolve:
download latest davinci resolve:
  wget https://raw.githubusercontent.com/vidalinux/resolve-flatpak/main/shell/download-resolve.sh
  wget https://raw.githubusercontent.com/vidalinux/resolve-flatpak/main/shell/download-resolve.sh
Line 48: Line 142:
get available davinci resolve download_id:
get available davinci resolve download_id:
  curl -o- https://www.blackmagicdesign.com/api/support/nz/downloads.json |
  curl -o- https://www.blackmagicdesign.com/api/support/nz/downloads.json |
  jq -r '.downloads[]
  jq -r '.downloads[]
          | select(.urls["Linux"] != null)
          | select(.urls["Linux"] != null)
          | select(.urls["Linux"][0]["product"] == "davinci-resolve")
          | select(.urls["Linux"][0]["product"] == "davinci-resolve")
          | [.urls["Linux"][0].downloadTitle, .urls["Linux"][0].downloadId]
          | [.urls["Linux"][0].downloadTitle, .urls["Linux"][0].downloadId]
          | @tsv'
          | @tsv'
get available davinci resolve studio download_id:
get available davinci resolve studio download_id:
  curl -o- https://www.blackmagicdesign.com/api/support/nz/downloads.json |
  curl -o- https://www.blackmagicdesign.com/api/support/nz/downloads.json |
  jq -r '.downloads[]
  jq -r '.downloads[]
          | select(.urls["Linux"] != null)
          | select(.urls["Linux"] != null)
          | select(.urls["Linux"][0]["product"] == "davinci-resolve-studio")
          | select(.urls["Linux"][0]["product"] == "davinci-resolve-studio")
          | [.urls["Linux"][0].downloadTitle, .urls["Linux"][0].downloadId]
          | [.urls["Linux"][0].downloadTitle, .urls["Linux"][0].downloadId]
          | @tsv'
          | @tsv'
edit download-resolve.sh and modify downloadid and pkgver:
edit download-resolve.sh and modify davinci-resolve free edition downloadid and pkgver:
  else
else
  _downloadid=''''6d977a8a9f384a3a9b3f28f6ca1efedd''''
  _downloadid='47739b7a6f9e4ac2946d9b2ee503dce4'
_referid='77ef91f67a9e411bbbe299e595b4cfcc'
  _pkgver=19.0b4
  _pkgver='''18.5'''
download davinci-resolve free edition with script:
download davinci resolve binary with script:
  chmod +x download-resolve.sh
  chmod +x download-resolve.sh
  ./download-resolve.sh
  ./download-resolve.sh
get sha256sum from davinci resolve binary:
edit download-resolve.sh and modify davinci-resolve studio edition downloadid and pkgver:
sha256sum DaVinci_Resolve_18.5_Linux.zip
  if [ $1 = studio ];
install davinci-resolve with yay:
  then
  yay -G davinci-resolve
  _downloadid='811cb06367b048b0af45782571d7e0bf'
enter directory davinci resolve:
  _pkgver=19.0b4
  cd davinci-resolve
download davinci-resolve studio edition with script:
edit PKGBUILD and modify downloadid and sha256sums:
  ./download-resolve.sh studio
  _downloadid=''''6d977a8a9f384a3a9b3f28f6ca1efedd''''
  # Variables for FREE edition
        pkgdesc='Professional A/V post-production software suite from Blackmagic Design'
        _archive_name=DaVinci_Resolve_${pkgver}_Linux
        sha256sums=(''''4fe0c5dd57cc3a41a1d798bc8be66d946b182ec1c90af03d2eb6d8259314e5b0'''')
build the package:
  makepkg -si
when installation finish edit /usr/share/applications/DaVinciResolve.desktop:
Exec='''/usr/bin/progl''' /opt/resolve/bin/resolve


= davinci-resolve-checker =
= davinci-resolve-checker =
Line 95: Line 179:
  cd davinci-resolve-checker
  cd davinci-resolve-checker
  ./davinci-resolve-checker.py
  ./davinci-resolve-checker.py
= install obs amd encoder =
= install obs amd encoder =
install obs with amf support:
install obs with amf support:
Line 117: Line 202:
* https://github.com/intel/compute-runtime/issues/659
* https://github.com/intel/compute-runtime/issues/659
* https://github.com/intel/compute-runtime/releases
* https://github.com/intel/compute-runtime/releases
* https://notes.mark.himsley.org/BlackmagicDesign_DaVinciResolve/install_DaVinciResolve_on_OpenSuse_Tumbleweed
[progl]
[progl]
* https://raw.githubusercontent.com/Ashark/archlinux-amdgpu-pro/master/progl
* https://raw.githubusercontent.com/Ashark/archlinux-amdgpu-pro/master/progl

Revision as of 22:06, 6 November 2024

RX580

install amdgpu-pro drivers:

wget https://aur.archlinux.org/cgit/aur.git/snapshot/aur-43227c96bde5619f54d1fd2ba2a74bf0e943066c.tar.gz
tar xvf aur-43227c96bde5619f54d1fd2ba2a74bf0e943066c.tar.gz
cd aur-43227c96bde5619f54d1fd2ba2a74bf0e943066c
makepkg -si

install opencl-legacy:

yay -S opencl-legacy-amdgpu-pro lib32-opencl-legacy-amdgpu-pro

6950XT

install amdgpu-pro drivers:

git clone https://aur.archlinux.org/amdgpu-pro-installer.git
cd amdgpu-pro-installer
makepkg -si

intel arc770

remove xorg intel driver:

pacman -R xf86-video-intel

enable chaotic repo:

https://wiki.vidalinux.org/index.php/Howto_create_own_archlinux_distro#enable_chaotic_repo

install mesa-tkg-git and lib32-mesa-tkg-git :

pacman -S mesa-tkg-git lib32-mesa-tkg-git --noconfirm

install latest xanmod-edge:

yay -S linux-xanmod-edge-linux-bin-x64v4 linux-xanmod-edge-linux-headers-bin-x64v4

install intel-runtime:

pacman -S intel-graphics-compiler intel-compute-runtime onevpl-intel-gpu intel-gpu-tools intel-media-driver

clone vidalinux aur github repo:

git clone https://github.com/vidalinux/AUR.git

create and install intel-compute-runtime package:

cd AUR/intel-compute-runtime
makepkg -si

add this to /etc/default/grub:

GRUB_CMDLINE_LINUX="i915.force_probe=56a0"

update grub:

grub-mkconfig -o /boot/grub/grub.cfg

recreate initramfs:

mkinitcpio -P

reboot system:

reboot

launch davinci resolve in wayland:

QT_QPA_PLATFORM=xcb /opt/resolve/bin/resolve

in gnome 47 set the following to fix an error with vulkan:

sudo su -
echo "GSK_RENDERER=ngl" >> /etc/environment
reboot

install davinci archlinux

install davinci-resolve using yay:

yay -S davinci-resolve

or install davinci-resolve-studio:

yay -S davinci-resolve-studio

for amd when installation finish edit /usr/share/applications/DaVinciResolve.desktop:

Exec=/usr/bin/progl /opt/resolve/bin/resolve

if you have the following issues when launching davinci:

symbol lookup error: /usr/lib/libgdk_pixbuf-2.0.so.0: undefined symbol: g_task_set_static_name

use the following script:

cat > /usr/local/bin/disable-resolve-libraries.sh << "EOF"
#!/bin/bash
srcdir=/opt/resolve
if [ ! -d ${srcdir}/libs/disabled-libraries ];
then
mkdir ${srcdir}/libs/disabled-libraries
fi
mv ${srcdir}/libs/libglib* ${srcdir}/libs/disabled-libraries
mv ${srcdir}/libs/libgio* ${srcdir}/libs/disabled-libraries
mv ${srcdir}/libs/libgmodule* ${srcdir}/libs/disabled-libraries
EOF

set script permissions and execute:

chmod +x /usr/local/bin/disable-resolve-libraries.sh
/usr/local/bin/disable-resolve-libraries.sh

now you can launch davinci resolve:

/opt/resolve/bin/resolve

install davinci opensuse

download the following script:

curl -O https://raw.githubusercontent.com/vidalinux/resolve-flatpak/main/shell/download-resolve.sh

set script permissions:

chmod +x download-resolve.sh

download davinci resolve using this script:

./download-resolve.sh

install the package, ignoring the whether all of the prerequisite packages are installed:

SKIP_PACKAGE_CHECK=1 ./DaVinci_Resolve_19.0b3_Linux.run

install libjpeg62 package:

sudo zypper install libjpeg62 

create the following script:

cat > /usr/local/bin/disable-resolve-libraries.sh << "EOF"
#!/bin/bash
srcdir=/opt/resolve
if [ ! -d ${srcdir}/libs/disabled-libraries ];
then
mkdir ${srcdir}/libs/disabled-libraries
fi
mv ${srcdir}/libs/libglib* ${srcdir}/libs/disabled-libraries
mv ${srcdir}/libs/libgio* ${srcdir}/libs/disabled-libraries
mv ${srcdir}/libs/libgmodule* ${srcdir}/libs/disabled-libraries
EOF

set script permissions and execute:

chmod +x /usr/local/bin/disable-resolve-libraries.sh
/usr/local/bin/disable-resolve-libraries.sh

now you can launch davinci resolve:

/opt/resolve/bin/resolve

install davinci fedora

enable rpm-fusion free and non-free repos:

sudo dnf install \
 https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install \
 https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

make sure you have nvidia cuda drivers install:

sudo dnf -y install xorg-x11-drv-nvidia-cuda

download the following script:

curl -O https://raw.githubusercontent.com/vidalinux/resolve-flatpak/main/shell/download-resolve.sh

set script permissions:

chmod +x download-resolve.sh

download davinci resolve using this script:

./download-resolve.sh

install the package, ignoring the whether all of the prerequisite packages are installed:

SKIP_PACKAGE_CHECK=1 ./DaVinci_Resolve_19.0.3_Linux.run

install libxcrypt-compat package:

sudo dnf -y install libxcrypt-compat

create the following script as root user:

cat > /usr/local/bin/disable-resolve-libraries.sh << "EOF"
#!/bin/bash
srcdir=/opt/resolve
if [ ! -d ${srcdir}/libs/disabled-libraries ];
then
mkdir ${srcdir}/libs/disabled-libraries
fi
mv ${srcdir}/libs/libglib* ${srcdir}/libs/disabled-libraries
mv ${srcdir}/libs/libgio* ${srcdir}/libs/disabled-libraries
mv ${srcdir}/libs/libgmodule* ${srcdir}/libs/disabled-libraries
EOF

change script permissions and execute:

chmod +x /usr/local/bin/disable-resolve-libraries.sh
/usr/local/bin/disable-resolve-libraries.sh

as normal user launch davinci resolve:

/opt/resolve/bin/resolve

manually download davinci resolve

download latest davinci resolve:

wget https://raw.githubusercontent.com/vidalinux/resolve-flatpak/main/shell/download-resolve.sh

install jq package:

sudo pacman -S jq

get available davinci resolve download_id:

curl -o- https://www.blackmagicdesign.com/api/support/nz/downloads.json |
 jq -r '.downloads[]
         | select(.urls["Linux"] != null)
         | select(.urls["Linux"][0]["product"] == "davinci-resolve")
         | [.urls["Linux"][0].downloadTitle, .urls["Linux"][0].downloadId]
         | @tsv'

get available davinci resolve studio download_id:

curl -o- https://www.blackmagicdesign.com/api/support/nz/downloads.json |
 jq -r '.downloads[]
         | select(.urls["Linux"] != null)
         | select(.urls["Linux"][0]["product"] == "davinci-resolve-studio")
         | [.urls["Linux"][0].downloadTitle, .urls["Linux"][0].downloadId]
         | @tsv'

edit download-resolve.sh and modify davinci-resolve free edition downloadid and pkgver:

else
_downloadid='47739b7a6f9e4ac2946d9b2ee503dce4'
_pkgver=19.0b4

download davinci-resolve free edition with script:

chmod +x download-resolve.sh
./download-resolve.sh

edit download-resolve.sh and modify davinci-resolve studio edition downloadid and pkgver:

if [ $1 = studio ];
then
_downloadid='811cb06367b048b0af45782571d7e0bf'
_pkgver=19.0b4

download davinci-resolve studio edition with script:

./download-resolve.sh studio

davinci-resolve-checker

install required dependencies:

sudo pacman -S expac mesa-utils python-distro python-cached-property

install other required dependencies from aur

yay -S python-pylspci

clone git repo:

git clone https://github.com/Ashark/davinci-resolve-checker.git

execute the script:

cd davinci-resolve-checker
./davinci-resolve-checker.py

install obs amd encoder

install obs with amf support:

yay -S obs-studio-amf

if using wayland launch obs with the following settings:

VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/amd_pro_icd64.json:/usr/share/vulkan/icd.d/amd_pro_icd32.json obs

errors

if you have this error when loading davinci resolve:

/opt/resolve/bin/resolve: symbol lookup error: /usr/lib/libpango-1.0.so.0: undefined symbol: g_string_free_and_steal

use the following command to load davinci resolve:

LD_PRELOAD=/usr/lib64/libglib-2.0.so /usr/bin/progl /opt/resolve/bin/resolve

references

[progl]

[shutter]

[amdgpu repo]