Package Base Details: decklink

Git Clone URL: https://aur.archlinux.org/decklink.git (read-only, click to copy)
Submitter: alub
Maintainer: goldensuneur
Last Packager: goldensuneur
Votes: 24
Popularity: 0.000132
First Submitted: 2015-10-03 15:38 (UTC)
Last Updated: 2024-04-12 20:17 (UTC)

Pinned Comments

goldensuneur commented on 2020-03-02 19:00 (UTC)

I finally had time to investigate the issue. It looks like that as of 11.5, the DesktopVideoHelper.service has to be running for the capture card to work properly.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 .. 24 Next › Last »

daurnimator commented on 2022-05-30 16:15 (UTC)

DKMS compilation currently fails:

DKMS make.log for blackmagic-io-12.3a10 for kernel 5.18.0-arch1-1 (x86_64)
Tue 31 May 2022 02:15:07 AEST
touch .blackmagic.o.cmd
make -C /lib/modules/5.18.0-arch1-1/build M=/var/lib/dkms/blackmagic-io/12.3a10/build
make[1]: Entering directory '/usr/lib/modules/5.18.0-arch1-1/build'
  CC [M]  /var/lib/dkms/blackmagic-io/12.3a10/build/bmio_client.o
  CC [M]  /var/lib/dkms/blackmagic-io/12.3a10/build/bmio_dev.o
  CC [M]  /var/lib/dkms/blackmagic-io/12.3a10/build/bmio_device.o
  CC [M]  /var/lib/dkms/blackmagic-io/12.3a10/build/bmio_driver.o
  CC [M]  /var/lib/dkms/blackmagic-io/12.3a10/build/bmio_serial.o
  CC [M]  /var/lib/dkms/blackmagic-io/12.3a10/build/bmio_export.o
  CC [M]  /var/lib/dkms/blackmagic-io/12.3a10/build/bmio_pci_ids.o
  CC [M]  /var/lib/dkms/blackmagic-io/12.3a10/build/bm_locks.o
  CC [M]  /var/lib/dkms/blackmagic-io/12.3a10/build/bm_mm.o
  CC [M]  /var/lib/dkms/blackmagic-io/12.3a10/build/bm_pci.o
  CC [M]  /var/lib/dkms/blackmagic-io/12.3a10/build/bm_util.o
  COPY    /var/lib/dkms/blackmagic-io/12.3a10/build/blackmagic.o
  CC [M]  /var/lib/dkms/blackmagic-io/12.3a10/build/bmio_audio.o
/var/lib/dkms/blackmagic-io/12.3a10/build/bm_mm.c: In function ‘bm_dma_map_user_buffer’:
/var/lib/dkms/blackmagic-io/12.3a10/build/bm_mm.c:226:35: error: implicit declaration of function ‘pci_map_page’; did you mean ‘dma_map_page’? [-Werror=implicit-function-declaration]
  226 |                 dlist->addrs[i] = pci_map_page(pci->pdev, umem->pages[i], 0, PAGE_SIZE, dir);
      |                                   ^~~~~~~~~~~~
      |                                   dma_map_page
/var/lib/dkms/blackmagic-io/12.3a10/build/bm_pci.c: In function ‘bm_pci_start’:
/var/lib/dkms/blackmagic-io/12.3a10/build/bm_pci.c:79:13: error: implicit declaration of function ‘pci_set_dma_mask’ [-Werror=implicit-function-declaration]
   79 |         if (pci_set_dma_mask(pci->pdev, BM_DMA_64BIT_MASK) < 0)
      |             ^~~~~~~~~~~~~~~~
/var/lib/dkms/blackmagic-io/12.3a10/build/bm_mm.c:58:53: error: implicit declaration of function ‘pci_dma_mapping_error’; did you mean ‘bm_pci_dma_mapping_error’? [-Werror=implicit-function-declaration]
   58 |         #define bm_pci_dma_mapping_error(dev, addr) pci_dma_mapping_error(dev, addr)
      |                                                     ^~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/blackmagic-io/12.3a10/build/bm_mm.c:227:21: note: in expansion of macro ‘bm_pci_dma_mapping_error’
  227 |                 if (bm_pci_dma_mapping_error(pci->pdev, dlist->addrs[i]))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/blackmagic-io/12.3a10/build/bm_mm.c: In function ‘bm_dma_map_kernel_buffer’:
/var/lib/dkms/blackmagic-io/12.3a10/build/bm_mm.c:249:27: error: implicit declaration of function ‘pci_map_single’; did you mean ‘dma_map_single’? [-Werror=implicit-function-declaration]
  249 |         dlist->addrs[0] = pci_map_single(pci->pdev, addr, size, dir);
      |                           ^~~~~~~~~~~~~~
      |                           dma_map_single
/var/lib/dkms/blackmagic-io/12.3a10/build/bm_mm.c: In function ‘bm_dma_unmap_buffer’:
/var/lib/dkms/blackmagic-io/12.3a10/build/bm_mm.c:295:17: error: implicit declaration of function ‘pci_unmap_single’; did you mean ‘dma_unmap_single’? [-Werror=implicit-function-declaration]
  295 |                 pci_unmap_single(pci->pdev, dlist->addrs[0], dlist->length, dir);
      |                 ^~~~~~~~~~~~~~~~
      |                 dma_unmap_single
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:289: /var/lib/dkms/blackmagic-io/12.3a10/build/bm_pci.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/lib/dkms/blackmagic-io/12.3a10/build/bm_mm.c:304:33: error: implicit declaration of function ‘pci_unmap_page’; did you mean ‘dma_unmap_page’? [-Werror=implicit-function-declaration]
  304 |                                 pci_unmap_page(pci->pdev, dlist->addrs[i], PAGE_SIZE, dir);
      |                                 ^~~~~~~~~~~~~~
      |                                 dma_unmap_page
/var/lib/dkms/blackmagic-io/12.3a10/build/bm_mm.c: In function ‘bm_dma_get_physical_segment’:
/var/lib/dkms/blackmagic-io/12.3a10/build/bm_mm.c:331:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
  331 |         addr64_t startAddr = dlist->addrs[page_n] + page_offset;
      |         ^~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:288: /var/lib/dkms/blackmagic-io/12.3a10/build/bm_mm.o] Error 1
make[1]: *** [Makefile:1834: /var/lib/dkms/blackmagic-io/12.3a10/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.18.0-arch1-1/build'
make: *** [Makefile:47: all] Error 2

goldensuneur commented on 2022-03-22 08:44 (UTC)

Unfortunatly I don't have working blackmagic hardware anymore so I cannot help you. You should ask directly on their forum or open a ticket with their support.

lorddickfist commented on 2022-03-22 02:38 (UTC)

Blackmagic Intensity pro 4k is unable to be seen but is visible on windows and DesktopVideoHelper.service is enabled and started

idella.craddock commented on 2022-02-28 19:30 (UTC) (edited on 2022-02-28 19:31 (UTC) by idella.craddock)

if using thunderbolt blackmagic devices this appears to fail. (with recorder 3g for me, latest linux kernel 5.16.11-arch1-1). Kernel driver chokes and segfaults https://forum.blackmagicdesign.com/viewtopic.php?t=146431&p=805146

Nember commented on 2022-02-10 12:14 (UTC) (edited on 2022-03-10 17:48 (UTC) by Nember)

I have installed my intensity pro 4K and this package and the desktop video setup cant find my card, despite it being visible in hardware settings. I'm on kernel 5.15.19, has an update broke this since it was last working?

goldensuneur commented on 2021-12-11 20:38 (UTC)

I also think that it is better to introduce as few patches as necessary. For now it is not an issue but I suggest you to inform blackmagic that they should update before it becomes one.

ToadKing commented on 2021-12-11 20:26 (UTC)

@Ammako dkms.conf is provided by the package, so as long as it still builds it seems like overkill to introduce a patch just to remove it.

Ammako commented on 2021-12-11 19:28 (UTC) (edited on 2021-12-11 19:29 (UTC) by Ammako)

REMAKE_INITRD is deprecated and should probably be removed from dkms.conf

It doesn't really cause problems, but it would probably be best practice that way, to get rid of warnings.

goldensuneur commented on 2021-11-10 13:02 (UTC)

Thanks, I pushed a new version with a patch inspired by yours. Let me know if it does not work on kernel 5.15 and newer.

Mischa85 commented on 2021-11-04 16:35 (UTC)

Patch for kernel 5.15, which deprecated alloc_tty_driver and put_tty_driver:

--- package.orig/Blackmagic_Desktop_Video_Linux_12.2/other/x86_64/desktopvideo-12.2a12-x86_64/usr/src/blackmagic-12.2a12/blackmagic_serial.c    2021-11-04 17:18:37.053086911 +0100
+++ package.new/Blackmagic_Desktop_Video_Linux_12.2/other/x86_64/desktopvideo-12.2a12-x86_64/usr/src/blackmagic-12.2a12/blackmagic_serial.c 2021-11-04 17:30:49.791835250 +0100
@@ -613,7 +613,7 @@
    int ret;
    struct tty_driver *driver;

-   driver = alloc_tty_driver(BLACKMAGIC_SERIAL_MINORS);
+   driver = tty_alloc_driver(BLACKMAGIC_SERIAL_MINORS, 0);
    if (!driver)
        return -ENOMEM;

@@ -639,7 +639,7 @@

 abort:
    printk(KERN_ERR "failed to register blackmagic serial driver");
-   put_tty_driver(driver);
+   tty_driver_kref_put(driver);
    return ret;
 }

@@ -648,6 +648,6 @@
    if (blackmagic_tty_driver)
    {
        tty_unregister_driver(blackmagic_tty_driver);
-       put_tty_driver(blackmagic_tty_driver);
+       tty_driver_kref_put(blackmagic_tty_driver);
    }
 }
diff --unified --recursive --text --color package.orig/Blackmagic_Desktop_Video_Linux_12.2/other/x86_64/desktopvideo-12.2a12-x86_64/usr/src/blackmagic-io-12.2a12/bmio_serial.c package.new/Blackmagic_Desktop_Video_Linux_12.2/other/x86_64/desktopvideo-12.2a12-x86_64/usr/src/blackmagic-io-12.2a12/bmio_serial.c
--- package.orig/Blackmagic_Desktop_Video_Linux_12.2/other/x86_64/desktopvideo-12.2a12-x86_64/usr/src/blackmagic-io-12.2a12/bmio_serial.c   2021-11-04 17:18:37.053086911 +0100
+++ package.new/Blackmagic_Desktop_Video_Linux_12.2/other/x86_64/desktopvideo-12.2a12-x86_64/usr/src/blackmagic-io-12.2a12/bmio_serial.c    2021-11-04 17:29:38.749443820 +0100
@@ -304,7 +304,7 @@
 {
    int ret;

-   struct tty_driver* serial = alloc_tty_driver(MAX_SERIAL_LINES);
+   struct tty_driver* serial = tty_alloc_driver(MAX_SERIAL_LINES, 0);
    if (!serial)
        return -ENOMEM;

@@ -324,7 +324,7 @@
    ret = tty_register_driver(serial);
    if (ret)
    {
-       put_tty_driver(serial);
+       tty_driver_kref_put(serial);
        return ret;
    }

@@ -340,7 +340,7 @@
    if (serial_driver)
    {
        tty_unregister_driver(serial_driver);
-       put_tty_driver(serial_driver);
+       tty_driver_kref_put(serial_driver);
        serial_driver = NULL;
    }
 }