Skip to content

davinci-resolve: init at 17.4.3 - #152113

Merged
davidak merged 1 commit into
NixOS:masterfrom
davidak:resolve
Apr 2, 2022
Merged

davidak merged 1 commit into
NixOS:masterfrom
davidak:resolve

Conversation

@davidak

@davidak davidak commented Dec 25, 2021 •

Copy link
Copy Markdown
Member

Screenshot from 2021-12-27 03-31-17

Motivation for this change

Closes #94032

This PR is to make testing easier. I will not maintain this package.

You can test it with:

nix run -f https://api.github.com/repos/davidak/nixpkgs/tarball/resolve davinci-resolve -c davinci-resolve

Test results are collected here: https://pad.nixnet.services/5sPJSxnyTm65W9dtku1sfg

Feel free to take over this PR!

Needed
  • Package maintainer, perfect would be 2
  • Usable state
  • CI issues are resolved
Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.05 Release Notes (or backporting 21.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@davidak

davidak commented Dec 25, 2021

Copy link
Copy Markdown
Member Author

@tfmoraes thanks for creating the package this far. Please clarify that you license the code unter MIT license, so we can use it in this repository!

@tfmoraes

Copy link
Copy Markdown
Contributor

@davidak yes, you can use the code to submit this PR.

@davidak davidak changed the title davinci-resolve: init at 17.4.1 davinci-resolve: init at 17.4.3 Dec 26, 2021
@lambdadog

lambdadog commented Dec 26, 2021 •

Copy link
Copy Markdown
Contributor

Summarizing replies from #94032:

Working correctly on (at least @jshcmpbll's) Nvidia GPU system

@jshcmpbll - Original Comment

Screen Shot 2021-12-25 at 1 54 28 PM

Seems to be working as expected for me. Nvidia GPU. Had to transcode my h264 videos to DNxHD -

ffmpeg -y -i A001_004_20211217.MOV -f mov -vcodec dnxhd -vf "scale=1920:1080,fps=30" -profile:v dnxhr_hq 004_dnxhd.MOV

I cant speak for performance as I'm remotely accessing my nix machine but it seems pretty good. Also, using gausian blur effect to hide the video content so.. I can confirm thats working as well 😄

Hats off you two and the amazing work! @tfmoraes @davidak

Edit: another note, I was seeing online that AAC isnt supported for Linux so that might be why you weren't getting audio. Might need to transcode it.

Also, the Linux port does not support AAC audio. You will need to separate that out into an independent AIFF or WAVE file in order to use it in Resolve.
https://forum.blackmagicdesign.com/viewtopic.php?f=21&t=78058

Lack of h.264 support is expected on Linux, does not block

@peti - Original Comment

I found out what's going on. According to https://beginnersapproach.com/davinci-resolve-frequently-asked-questions/#DaVinci-Resolve-Use-MP4, the free version of Resolve supports H.264, like I thought, but only on MacOS and Windows! The Linux version does not support h.264, indeed.

AMDGPU support is broken due to ROCm issues with DaVinci Resolve

@InternetUnexplorer - Original Comment

Using Resolve with an AMD GPU on Linux is… complicated at the moment. ROCm currently does not work with it and has not for a while; one needs to use the AMDGPU-PRO driver for OpenCL, which (last I checked) isn't in Nixpkgs. Fortunately the recent release seems to have made packaging it easier if someone wants to do that in the future, but I don't think it's worth holding up this PR for.

FWIW, I did try to run the PR myself (I have an RX 6800). The program did not start unfortunately.

(very incomplete) NixOS configuration (nixos-unstable)
{ config, lib, pkgs, ... }: {
  boot.kernelPackages = pkgs.linuxPkgs_zen;
  boot.initrd.kernelModules = [ "amdgpu" ];

  services.xserver.enable = true;
  services.xserver.desktopManager.plasma5.enable = true;

  hardware.opengl = {
    enable = true;
    setLdLibraryPath = true;
    driSupport32Bit = true;
  };

  hardware.opengl.extraPackages = with pkgs; [
    rocm-opencl-icd
    rocm-opencl-runtime
  ];

  # ...
}
Output of clinfo
Number of platforms                               1
  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.0 AMD-APP (3305.0)
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd cl_amd_event_callback 
  Platform Extensions function suffix             AMD

  Platform Name                                   AMD Accelerated Parallel Processing
Number of devices                                 1
  Device Name                                     gfx1030
  Device Vendor                                   Advanced Micro Devices, Inc.
  Device Vendor ID                                0x1002
  Device Version                                  OpenCL 2.0 
  Driver Version                                  3305.0 (HSA1.1,LC)
  Device OpenCL C Version                         OpenCL C 2.0 
  Device Type                                     GPU
  Device Board Name (AMD)                         Device 73bf
  Device PCI-e ID (AMD)                           0x73bf
  Device Topology (AMD)                           PCI-E, 0000:0b:00.0
  Device Profile                                  FULL_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Max compute units                               30
  SIMD per compute unit (AMD)                     4
  SIMD width (AMD)                                32
  SIMD instruction width (AMD)                    1
  Max clock frequency                             2475MHz
  Graphics IP (AMD)                               10.3
  Device Partition                                (core)
    Max number of sub-devices                     30
    Supported partition types                     None
    Supported affinity domains                    (n/a)
  Max work item dimensions                        3
  Max work item sizes                             1024x1024x1024
  Max work group size                             256
  Preferred work group size (AMD)                 256
  Max work group size (AMD)                       1024
  Preferred work group size multiple (kernel)     32
  Wavefront width (AMD)                           32
  Preferred / native vector sizes                 
    char                                                 4 / 4       
    short                                                2 / 2       
    int                                                  1 / 1       
    long                                                 1 / 1       
    half                                                 1 / 1        (cl_khr_fp16)
    float                                                1 / 1       
    double                                               1 / 1        (cl_khr_fp64)
  Half-precision Floating-point support           (cl_khr_fp16)
    Denormals                                     No
    Infinity and NANs                             No
    Round to nearest                              No
    Round to zero                                 No
    Round to infinity                             No
    IEEE754-2008 fused multiply-add               No
    Support is emulated in software               No
  Single-precision Floating-point support         (core)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
    Correctly-rounded divide and sqrt operations  Yes
  Double-precision Floating-point support         (cl_khr_fp64)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
  Address bits                                    64, Little-Endian
  Global memory size                              17163091968 (15.98GiB)
  Global free memory (AMD)                        16760832 (15.98GiB) 16760832 (15.98GiB)
  Global memory channels (AMD)                    8
  Global memory banks per channel (AMD)           4
  Global memory bank width (AMD)                  256 bytes
  Error Correction support                        No
  Max memory allocation                           14588628168 (13.59GiB)
  Unified memory for Host and Device              No
  Shared Virtual Memory (SVM) capabilities        (core)
    Coarse-grained buffer sharing                 Yes
    Fine-grained buffer sharing                   Yes
    Fine-grained system sharing                   No
    Atomics                                       No
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       1024 bits (128 bytes)
  Preferred alignment for atomics                 
    SVM                                           0 bytes
    Global                                        0 bytes
    Local                                         0 bytes
  Max size for global variable                    14588628168 (13.59GiB)
  Preferred total size of global vars             17163091968 (15.98GiB)
  Global Memory cache type                        Read/Write
  Global Memory cache size                        16384 (16KiB)
  Global Memory cache line size                   64 bytes
  Image support                                   Yes
    Max number of samplers per kernel             29631
    Max size for 1D images from buffer            134217728 pixels
    Max 1D or 2D image array size                 8192 images
    Base address alignment for 2D image buffers   256 bytes
    Pitch alignment for 2D image buffers          256 pixels
    Max 2D image size                             16384x16384 pixels
    Max 3D image size                             16384x16384x8192 pixels
    Max number of read image args                 128
    Max number of write image args                8
    Max number of read/write image args           64
  Max number of pipe args                         16
  Max active pipe reservations                    16
  Max pipe packet size                            1703726280 (1.587GiB)
  Local memory type                               Local
  Local memory size                               65536 (64KiB)
  Local memory size per CU (AMD)                  65536 (64KiB)
  Local memory banks (AMD)                        32
  Max number of constant args                     8
  Max constant buffer size                        14588628168 (13.59GiB)
  Preferred constant buffer size (AMD)            16384 (16KiB)
  Max size of kernel argument                     1024
  Queue properties (on host)                      
    Out-of-order execution                        No
    Profiling                                     Yes
  Queue properties (on device)                    
    Out-of-order execution                        Yes
    Profiling                                     Yes
    Preferred size                                262144 (256KiB)
    Max size                                      8388608 (8MiB)
  Max queues on device                            1
  Max events on device                            1024
  Prefer user sync for interop                    Yes
  Number of P2P devices (AMD)                     0
  Profiling timer resolution                      1ns
  Profiling timer offset since Epoch (AMD)        0ns (Wed Dec 31 16:00:00 1969)
  Execution capabilities                          
    Run OpenCL kernels                            Yes
    Run native kernels                            No
    Thread trace supported (AMD)                  No
    Number of async queues (AMD)                  8
    Max real-time compute queues (AMD)            8
    Max real-time compute units (AMD)             30
  printf() buffer size                            4194304 (4MiB)
  Built-in kernels                                (n/a)
  Device Extensions                               cl_khr_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_fp16 cl_amd_device_attribute_query cl_amd_media_ops cl_amd_media_ops2 cl_khr_image2d_from_buffer cl_khr_subgroups cl_khr_depth_images cl_amd_copy_buffer_p2p cl_amd_assembly_program 

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  No platform
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   No platform
  clCreateContext(NULL, ...) [default]            No platform
  clCreateContext(NULL, ...) [other]              Success [AMD]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  Success (1)
    Platform Name                                 AMD Accelerated Parallel Processing
    Device Name                                   gfx1030
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  Success (1)
    Platform Name                                 AMD Accelerated Parallel Processing
    Device Name                                   gfx1030
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  Success (1)
    Platform Name                                 AMD Accelerated Parallel Processing
    Device Name                                   gfx1030
ResolveDebug.txt
0x7fc6e47816c0 | Main                 | INFO  | 2021-12-25 16:47:57,075 | Running DaVinci Resolve v17.4.1.0004 (Linux/Clang x86_64)
0x7fc6e47816c0 | Main                 | INFO  | 2021-12-25 16:47:57,075 | BMD_BUILD_UUID 254c9474-fc7e-4bd1-8cc2-2eda11ec6601
0x7fc6e47816c0 | Main                 | INFO  | 2021-12-25 16:47:57,075 | BMD_GIT_COMMIT 89abac8875e8bcbb2c29a852b2599b31b4ec544f
0x7fc6e47816c0 | GPUDetect            | INFO  | 2021-12-25 16:47:57,075 | Starting GPUDetect 1.2-a3
0x7fc6e47816c0 | GPUDetect            | INFO  | 2021-12-25 16:47:57,182 | Done in 106 ms.
0x7fc6e47816c0 | GPUDetect            | INFO  | 2021-12-25 16:47:57,182 | Detected System:
0x7fc6e47816c0 | GPUDetect            | INFO  | 2021-12-25 16:47:57,182 |   - OS: Linux NixOS 22.05 (Quokka)
0x7fc6e47816c0 | GPUDetect            | INFO  | 2021-12-25 16:47:57,182 |   - Model: ASUSTeK ROG STRIX X470-I GAMING
0x7fc6e47816c0 | GPUDetect            | INFO  | 2021-12-25 16:47:57,182 |   - System ID: 54af30b5cd5d4360bc085ca6bcffc99a
0x7fc6e47816c0 | GPUDetect            | INFO  | 2021-12-25 16:47:57,182 |   - CPU: AMD Ryzen 7 2700X Eight-Core, 16 threads, x86-64
0x7fc6e47816c0 | GPUDetect            | INFO  | 2021-12-25 16:47:57,182 |   - RAM: 7.3 GiB used of 62.8 GiB
0x7fc6e47816c0 | GPUDetect            | INFO  | 2021-12-25 16:47:57,182 | Detected 1 GPUs:
0x7fc6e47816c0 | GPUDetect            | INFO  | 2021-12-25 16:47:57,182 |   - "AMD Device 73bf" (gpu:79134433.44ad5459) <- Main Display GPU
0x7fc6e47816c0 | GPUDetect            | INFO  | 2021-12-25 16:47:57,182 |     Discrete, 383 MiB used of 16.0 GiB VRAM, PCI:11:0.0
0x7fc6e47816c0 | GPUDetect            | INFO  | 2021-12-25 16:47:57,182 |     Matches: OpenCL, XOrg
0x7fc6e47816c0 | GPUDetect            | INFO  | 2021-12-25 16:47:57,182 | Detected 1 monitors:
0x7fc6e47816c0 | Main.GPUConfig       | INFO  | 2021-12-25 16:47:57,182 | Compute API set to automatic, defaulting to OpenCL.
0x7fc6e47816c0 | Main.GPUConfig       | INFO  | 2021-12-25 16:47:57,182 | Selected compute API: OpenCL
0x7fc6e47816c0 | Main.GPUConfig       | INFO  | 2021-12-25 16:47:57,182 | Automatic GPU Selection:
0x7fc6e47816c0 | Main.GPUConfig       | INFO  | 2021-12-25 16:47:57,182 |   - "AMD Device 73bf" (gpu:79134433.44ad5459)
0x7fc6e47816c0 | IO                   | INFO  | 2021-12-25 16:47:57,182 | RED InitializeSdk with library path at /nix/store/2akb5vgiiacsincfq2k43y0m6i398vl4-davinci-resolve-17.4.1/libs
0x7fc6e47816c0 | IO                   | INFO  | 2021-12-25 16:47:57,210 | R3DAPI 8.0.4-52A07 (20210708 Lx64S) R3DSDK 8.0.4-52A07 (20210708 Lx64D C3B1) RED OPENCL 8.0.4-50959 (20210708) [/nix/store/2akb5vgiiacsincfq2k43y0m6i398vl4-davinci-resolve-17.4.1/libs/] init is successful
0x7fc6e47816c0 | Main                 | INFO  | 2021-12-25 16:47:57,210 | 0 RED rocket cards available
libDeckLinkAPI.so: cannot open shared object file: No such file or directory
0x7fc6e47816c0 | Main                 | INFO  | 2021-12-25 16:47:57,210 | Decklink model name: '', version: ''
0x7fc6e47816c0 | DVIP                 | INFO  | 2021-12-25 16:47:57,210 | DVIP release/17.4.1 build 6 (18220cf89913c0157b01513791bf5b2454d6aa75). Release, version 17.4.1.
0x7fc5beffd640 | IO                   | INFO  | 2021-12-25 16:47:57,211 | Using DNxHR library v2.7.0.10r
0x7fc5bf7fe640 | Fusion               | INFO  | 2021-12-25 16:47:57,379 | Fusion Build: 6ed4fd1d_0007 (Oct 28 2021 15:53:36)
0x7fc5beffd640 | IO                   | INFO  | 2021-12-25 16:47:57,382 | IO codec library load completed in 171 ms.
0x7fc5a6577640 | Fusion               | INFO  | 2021-12-25 16:47:57,382 | fusionsystem: = "/nix/store/2akb5vgiiacsincfq2k43y0m6i398vl4-davinci-resolve-17.4.1/libs/Fusion/libfusionsystem.so"
0x7fc5a6577640 | Fusion               | INFO  | 2021-12-25 16:47:57,385 | FusionLibs: = "/nix/store/2akb5vgiiacsincfq2k43y0m6i398vl4-davinci-resolve-17.4.1/libs/Fusion/"
0x7fc5a6577640 | Fusion               | INFO  | 2021-12-25 16:47:57,386 | UserData:   = "/home/alex/.local/share/DaVinciResolve/Fusion"
0x7fc5a6577640 | Fusion               | INFO  | 2021-12-25 16:47:57,386 | Profiles:   = "UserData:Profiles/"
Cannot find libdbus-1 in your system to resolve symbol 'dbus_get_local_machine_id'.


==========[CRASH DUMP]==========
#TIME Sat Dec 25 16:47:57 2021 - Uptime 00:00:00 (hh:mm:ss)
#PROGRAM_NAME DaVinci Resolve v17.4.1.0004 (Linux/Clang x86_64)
#BMD_ARCHITECTURE x86_64
#BMD_BUILD_UUID 254c9474-fc7e-4bd1-8cc2-2eda11ec6601
#BMD_GIT_COMMIT 89abac8875e8bcbb2c29a852b2599b31b4ec544f
#BMD_UTIL_VERSION 17.4.1.0004
#OS Linux

/nix/store/2akb5vgiiacsincfq2k43y0m6i398vl4-davinci-resolve-17.4.1/bin/resolve() [0x410aea9]
/nix/store/2akb5vgiiacsincfq2k43y0m6i398vl4-davinci-resolve-17.4.1/bin/resolve() [0x410a30b]
/usr/lib/libpthread.so.0(+0x12ef0) [0x7fc70c890ef0]
/usr/lib/libc.so.6(gsignal+0xca) [0x7fc6f0d60baa]
/usr/lib/libc.so.6(abort+0xff) [0x7fc6f0d4b523]
/nix/store/2akb5vgiiacsincfq2k43y0m6i398vl4-davinci-resolve-17.4.1/libs/libQt5Core.so.5(+0xa80d6) [0x7fc6f30d30d6]
/nix/store/2akb5vgiiacsincfq2k43y0m6i398vl4-davinci-resolve-17.4.1/libs/libQt5Core.so.5(_ZNK14QMessageLogger5fatalEPKcz+0xbd) [0x7fc6f30d45e1]
/nix/store/2akb5vgiiacsincfq2k43y0m6i398vl4-davinci-resolve-17.4.1/libs/libQt5DBus.so.5(+0x6425e) [0x7fc700e9125e]
/nix/store/2akb5vgiiacsincfq2k43y0m6i398vl4-davinci-resolve-17.4.1/libs/libQt5DBus.so.5(_ZN15QDBusConnection14localMachineIdEv+0x1f) [0x7fc700e4381f]
/nix/store/mrv5kzyvdkb7nl9ccdm8jr91r5qfhrmp-qtbase-5.15.3-bin/lib/qt-5.15.3/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so(+0xb2a2) [0x7fc6c757c2a2]
/nix/store/mrv5kzyvdkb7nl9ccdm8jr91r5qfhrmp-qtbase-5.15.3-bin/lib/qt-5.15.3/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so(+0xef4a) [0x7fc6c757ff4a]
/nix/store/mrv5kzyvdkb7nl9ccdm8jr91r5qfhrmp-qtbase-5.15.3-bin/lib/qt-5.15.3/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so(+0xf78e) [0x7fc6c758078e]
/nix/store/mrv5kzyvdkb7nl9ccdm8jr91r5qfhrmp-qtbase-5.15.3-bin/lib/qt-5.15.3/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so(+0xf9e4) [0x7fc6c75809e4]
/nix/store/mrv5kzyvdkb7nl9ccdm8jr91r5qfhrmp-qtbase-5.15.3-bin/lib/qt-5.15.3/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so(+0x1505a) [0x7fc6c758605a]
/nix/store/2akb5vgiiacsincfq2k43y0m6i398vl4-davinci-resolve-17.4.1/libs/libQt5Gui.so.5(_ZN28QPlatformInputContextFactory6createERK7QString+0x166) [0x7fc6f3a79516]
/nix/store/2akb5vgiiacsincfq2k43y0m6i398vl4-davinci-resolve-17.4.1/libs/libQt5XcbQpa.so.5(_ZN15QXcbIntegration10initializeEv+0x39) [0x7fc5ad3d61c9]
/nix/store/2akb5vgiiacsincfq2k43y0m6i398vl4-davinci-resolve-17.4.1/libs/libQt5Gui.so.5(_ZN22QGuiApplicationPrivate20eventDispatcherReadyEv+0x24) [0x7fc6f3a8a794]
/nix/store/2akb5vgiiacsincfq2k43y0m6i398vl4-davinci-resolve-17.4.1/libs/libQt5Core.so.5(_ZN23QCoreApplicationPrivate4initEv+0x6bd) [0x7fc6f32bea6d]
/nix/store/2akb5vgiiacsincfq2k43y0m6i398vl4-davinci-resolve-17.4.1/libs/libQt5Gui.so.5(_ZN22QGuiApplicationPrivate4initEv+0x19) [0x7fc6f3a84359]
/nix/store/2akb5vgiiacsincfq2k43y0m6i398vl4-davinci-resolve-17.4.1/libs/libQt5Widgets.so.5(_ZN19QApplicationPrivate4initEv+0x9) [0x7fc6f28306b9]
/nix/store/2akb5vgiiacsincfq2k43y0m6i398vl4-davinci-resolve-17.4.1/bin/resolve() [0x21818b8]
/nix/store/2akb5vgiiacsincfq2k43y0m6i398vl4-davinci-resolve-17.4.1/bin/resolve() [0x2144cd8]
/nix/store/2akb5vgiiacsincfq2k43y0m6i398vl4-davinci-resolve-17.4.1/bin/resolve() [0x214184f]
/usr/lib/libc.so.6(__libc_start_main+0xd0) [0x7fc6f0d4c780]
/nix/store/2akb5vgiiacsincfq2k43y0m6i398vl4-davinci-resolve-17.4.1/bin/resolve() [0x2140d3b]
Signal Number = 6

================================
0x7fc6e47816c0 | CrashReport          | ERROR | 2021-12-25 16:47:57,757 | Compress() : Failed to add file:/home/alex/.local/share/DaVinciResolve/configs/UI.preset to archive.
0x7fc6e47816c0 | CrashReport          | ERROR | 2021-12-25 16:47:57,757 | Compress() : Failed to add file:/home/alex/.local/share/DaVinciResolve/configs/config.user.xml to archive.
ActCCMessage Already in Table: Code= c005, Mode= 13, Level=  1, CmdKey= -1, Option= 0
ActCCMessage Already in Table: Code= c006, Mode= 13, Level=  1, CmdKey= -1, Option= 0
ActCCMessage Already in Table: Code= c007, Mode= 13, Level=  1, CmdKey= -1, Option= 0
ActCCMessage Already in Table: Code= 2282, Mode=  0, Level=  0, CmdKey= 8, Option= 0
PnlMsgActionStringAdapter Already in Table: Code= 615e, Mode=  0, Level=  0, CmdKey= -1, Option= 0

I would be happy to continue testing stuff though, please let me know if there's anything else you'd like me to try.

P.S. @s-ol, Resolve is highly demanding and so I'd be really surprised if you manage to get it working with integrated graphics, but don't let me discourage you from trying if you want to give it a go! (I could be wrong after all!)

@lambdadog

Copy link
Copy Markdown
Contributor

Overall looks like it may be ready to merge once CI issues are resolved.

The only thing I can think of that could be useful is testing with #151019, but I don't think it's essential.

@davidak

davidak commented Dec 27, 2021

Copy link
Copy Markdown
Member Author

I also successfully tested it with Nvidia 1050 TI.

The amdgpu-pro does not work at all for me.

@davidak
davidak force-pushed the resolve branch 2 times, most recently from bad3b2e to e08eb6f Compare December 27, 2021 03:05
@ofborg ofborg Bot added 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Dec 27, 2021
@davidak
davidak marked this pull request as ready for review December 27, 2021 23:00
@davidak

davidak commented Dec 28, 2021

Copy link
Copy Markdown
Member Author

@GrahamcOfBorg eval

@PAI5REECHO

PAI5REECHO commented Dec 29, 2021 •

Copy link
Copy Markdown

Any chance of Resolve Studio being packaged as well? H.264/H.265 decoding is pretty important for a lot of people.

@davidak

davidak commented Dec 30, 2021

Copy link
Copy Markdown
Member Author

Any chance of Resolve Studio being packaged as well?

That would be great. Let's get this done first. We still need a maintainer for the package.

@nixos-discourse

Copy link
Copy Markdown

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/fake-user-data-for-download/16875/1

@davidak davidak mentioned this pull request Jan 8, 2022
2 of 13 tasks
@jshcmpbll

Copy link
Copy Markdown
Member

Id be willing to throw my name on as a maintainer but I didnt really contribute to the derivation. Ill also be purchasing a license so we can test studio out very soon.

@davidak

davidak commented Jan 11, 2022

Copy link
Copy Markdown
Member Author

@jshcmpbll thats great to hear. what do you think about the idea that we request a free license for the package maintainers, in this case you? maybe they would do it. but buying a license is also fine since it's totally worth it

@jshcmpbll

jshcmpbll commented Jan 12, 2022 •

Copy link
Copy Markdown
Member

I think its worth a shot (and can be used for testing by others) but I will definitely be purchasing one individually because it will be for commercial use. Would you like me to reach out to Blackmagic or have you got that? @davidak

@davidak

davidak commented Jan 18, 2022

Copy link
Copy Markdown
Member Author

@jshcmpbll you can contact them. i added you as maintainer

used builtins.toJSON as suggested by @PAI5REECHO and data proposed in https://github.com/NixOS/nixpkgs/pull/154065/files

@lambdadog

lambdadog commented Mar 22, 2022 •

Copy link
Copy Markdown
Contributor

I have successfully activated Resolve Studio now.

The problem is that Resolve tries to create its license file in the Nix store, which is owned by root and read-only, and this operation fails. I am not sure what a good solution is? I did a nasty workaround of chown and chmod directly on the Resolve store path.

Since the license activation is stored in the Nix store (and not in $HOME/.local/share/DavinciResolve with the rest of the state) I am concerned that I might have to re-activate every time I run the Nix derivation. The license only entitled me to two activations. We will see...

This should be solvable by using extraBwrapArgs and a wrapProgram invocation (to mkdir -p them before launch) as I mention in my review above -- since DaVinci Resolve is launched in a bubblewrap chroot and not actually in the Nix store location, if you just change the bubblewrap invocation to bind writable locations to the right places it should work properly and not be erased on update.

@tobiasBora

tobiasBora commented Mar 23, 2022 •

Copy link
Copy Markdown
Contributor

The problem of $HOME is that it forbids multi-users installation I guess no? Also, if davinci is enabling the key while installing the software, $HOME won't be defined I guess as this is in a sandbox (if the activation is done when starting the software it should not be a problem). By the way, is it fine to link arbitrary folders in the nix store (when packaging proprietary softwares without using BuildFhs for instance), like /var/log/myprogram for databases or log files?

@Vskilet

Vskilet commented Mar 25, 2022

Copy link
Copy Markdown
Contributor

Trying this with a Ryzen 7 4800H (a laptop processor with integrated graphics) gives me this message on startup:

image

I think this is kind of expected because my laptop does not have a "real" GPU?

Hi, I've the same behavior with i7-4710MQ with integrated graphics. I thought that Resolve need a GPU but I found some videos of laptop that have a similar configuration with Windows where Davinci work. Let's continue to investigate :)

Co-authored-by: Thiago Franco de Moraes <[email protected]>
@davidak

davidak commented Apr 1, 2022

Copy link
Copy Markdown
Member Author

I fixed the indentation and rebased.

@jshcmpbll should we merge this now, since it's already usable to some users and improve in later PRs and discuss specific issues in new issues?

@jshcmpbll

Copy link
Copy Markdown
Member

@davidak definitely!

@jshcmpbll jshcmpbll left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Usable and new features can be added later :shipit:

@davidak
davidak merged commit 8e26085 into NixOS:master Apr 2, 2022
@davidak
davidak deleted the resolve branch April 2, 2022 02:43
@benpye

benpye commented Apr 2, 2022

Copy link
Copy Markdown
Contributor

I have successfully activated Resolve Studio now.
The problem is that Resolve tries to create its license file in the Nix store, which is owned by root and read-only, and this operation fails. I am not sure what a good solution is? I did a nasty workaround of chown and chmod directly on the Resolve store path.
Since the license activation is stored in the Nix store (and not in $HOME/.local/share/DavinciResolve with the rest of the state) I am concerned that I might have to re-activate every time I run the Nix derivation. The license only entitled me to two activations. We will see...

This should be solvable by using extraBwrapArgs and a wrapProgram invocation (to mkdir -p them before launch) as I mention in my review above -- since DaVinci Resolve is launched in a bubblewrap chroot and not actually in the Nix store location, if you just change the bubblewrap invocation to bind writable locations to the right places it should work properly and not be erased on update.

extraBwrapArgs should work for exactly this sort of thing. I made the PR to add that to support ISE - though the derivation for ISE itself isn't in nixpkgs and I'm waiting for the next release to switch to the in-tree version. This is what I needed to do there - https://github.com/benpye/nix-fpga-tools/blob/9d90f2a29d8beac2388f0a213f8b06f81577f778/pkgs/xilinx-ise/default.nix#L53 - it should be possible to do the same thing for addons and licensing for Resolve, maybe to a directory in /etc or /var/lib?

@Luflosi Luflosi mentioned this pull request Apr 2, 2022
2 of 13 tasks
@jshcmpbll

Copy link
Copy Markdown
Member

@Vskilet Here is a response from a support engineer at Blackmagic:

in simple terms, we provide no support for the Linux version of the application as far as the configuration and building are concerned.
We rely on the system integrators / system builders, to design, test, troubleshoot and deploy Resolve and Resolve Studio on Linux.
NVIDIA GPUs with the Compute Capability version of 3.5 and later will work with NVIDIA drivers.
AMD GPUs may work but are not directly included in the support as configured in our disk image (CentOS) and we would not have guidance in that regard either.

There is an excellent configuration guide for CentoOS provided by Seth Goldin here:
https://sethgoldin.github.io/install-davinci-resolve-centos/
which may serve as an additional information source for you.

Otherwise, please refer to the specific release notes for any release posted on the website. A Linux release installer will have a PDF with some additional information (not directly hardware related)

My guess is NVIDIA is the only truly supported gpu for resolve on linux 😞

@lukego

lukego commented Apr 15, 2022

Copy link
Copy Markdown
Contributor

JFYI: I needed to disable Pipewire to get audio working properly in Resolve.

@yuuyins

yuuyins commented Apr 15, 2022 •

Copy link
Copy Markdown
Contributor

JFYI: I needed to disable Pipewire to get audio working properly in Resolve.

same

may be https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/2055

@valwithoutfriends

Copy link
Copy Markdown

Resolve 18 beta and studio version would be nice

@ghost

ghost commented Apr 26, 2022 •

Copy link
Copy Markdown

What's current status for studio version of davinci-resolve?

Also I noticed, that we have missing .desktop file for davinci-studio.

@PAI5REECHO

Copy link
Copy Markdown

Beta & studio are being worked on in #167113

@valwithoutfriends

Copy link
Copy Markdown

Beta & studio are being worked on in #167113

17 or 18 beta?

@pyrotek45

Copy link
Copy Markdown

i get the error (unsupported gpu processing mode) when i try to update my config for gpu , no options are available.

im ruining on an amd ryzen 7 1700x with a amd ati radeon RX 580.

any way to fix that?

@v3eil

v3eil commented Jul 11, 2022

Copy link
Copy Markdown

Can we get the Studio version too? The installation process is the same you don't need a product key until you are starting to program.

@superherointj

superherointj commented Jul 11, 2022 •

Copy link
Copy Markdown
Contributor

Can we get the Studio version too? The installation process is the same you don't need a product key until you are starting to program.

Look #167113

@v3eil

v3eil commented Jul 11, 2022

Copy link
Copy Markdown

Can we get the Studio version too? The installation process is the same you don't need a product key until you are starting to program.

Look #167113

Thanks I haven't notice that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: package (new) This PR adds a new package 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Package DaVinci Resolve