Package Details: decklink 12.2.2-1

Git Clone URL: (read-only, click to copy)
Package Base: decklink
Description: Drivers for Blackmagic Design DeckLink, Intensity or Multibridge video editing cards
Upstream URL:
Licenses: custom
Submitter: alub
Maintainer: goldensuneur
Last Packager: goldensuneur
Votes: 22
Popularity: 0.47
First Submitted: 2015-10-03 15:38
Last Updated: 2021-12-11 19:19

Pinned Comments

goldensuneur commented on 2020-03-02 19:00

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

1 2 3 4 5 6 ... Next › Last »

goldensuneur commented on 2021-12-11 20:38

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

@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

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

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

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
+++ 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 @@

    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)
-       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.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
+++    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)
-       put_tty_driver(serial_driver);
+       tty_driver_kref_put(serial_driver);
        serial_driver = NULL;

rama_g commented on 2021-09-14 15:30

awesome, also working here on 5.14.3-arch1-1 -- happy to be able to update the system, was holding off until now since I rely on the decklink drivers, using it everyday -- thanks for the package update! FWIW it did require a reboot for the device to be found by BlackmagicDesktopVideoSetup.

YAOMTC commented on 2021-09-13 04:19

Can confirm it works for me too with 5.14.2.arch1-2. Thanks for updating the PKGBUILD.

EDIT: Though, the audio stutters quite badly. I'll have to see if I can get that fixed...

EDIT2: happens on Windows too, I think it may have to do with PCI bandwidth available. I get a warning about dropped frames when I record with MediaExpress. But there's not as many dropped frames when I record a 720p60 signal vs 1080p60.

EDIT3: yeah that was it. Unplugging the TV tuner card I never use gave me the PCI bandwidth the card needs to work properly.

frostwork commented on 2021-09-10 13:22

edit - sorry, I don't know the half markdown syntax here. deleted my PKGBUILD patch.

edit2: sorry for the lame workaround - uploaded a PKGBUILD gist here:

edit3: I can confirm that the decklink works fine with 5.14.2-xanmod1-1 with the patched drivers

frostwork commented on 2021-09-10 13:09

thx for the quick reply! just gave it a quick try. The patch applies fine, but when manually building the build fails with "bmio_serial.c:174:28: Fehler: Initialisierung von »unsigned int ()(struct tty_struct )« von inkompatiblem Zeigertyp »int ()(struct tty_struct )« [-Werror=incompatible-pointer-types]" (the other module blackmagic-12.1a9 has the same error). the Werror can be disabled by adding "-Wno-error=incompatible-pointer-types" to the EXTRA_CFLAGS in the Makefiles. Both modules build fine then. Haven't tested functionality, as I'm almost off for a short trip \o/ :) Good luck and thanks a lot for maintaining the PKGBUILD! :)

goldensuneur commented on 2021-09-10 13:04

thx, I'll try the patch later today after work. If it builds on my machine I'll push a new revision to the decklink package.