Package Details: decklink-sdk 1:14.2-1

Git Clone URL: https://aur.archlinux.org/decklink-sdk.git (read-only, click to copy)
Package Base: decklink-sdk
Description: Blackmagic DeckLink SDK
Upstream URL: https://www.blackmagicdesign.com/support/family/capture-and-playback
Licenses: LicenseRef-custom
Conflicts: blackmagic-decklink-sdk
Provides: blackmagic-decklink-sdk
Replaces: blackmagic-decklink-sdk
Submitter: alub
Maintainer: dbermond
Last Packager: dbermond
Votes: 51
Popularity: 0.96
First Submitted: 2011-05-26 11:54 (UTC)
Last Updated: 2024-08-16 02:31 (UTC)

Latest Comments

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

dbermond commented on 2023-07-11 16:52 (UTC)

@RiCON @brauliobo @Bink Package updated. Building fine. Thanks @RiCON for noticing the new required fields, we better keep referid while it's still present.

Bink commented on 2023-07-10 01:32 (UTC) (edited on 2023-07-10 01:33 (UTC) by Bink)

As mentioned by @brauliobo, the build is failing (early):

==> Making package: decklink-sdk 1:12.5-1 (Mon 10 Jul 2023 11:05:26)
==> Retrieving sources...
==> ERROR: Blackmagic_DeckLink_SDK_12.5.zip was not found in the build directory and is not a URL.
 -> error downloading sources: /home/bink/.cache/yay/decklink-sdk 
         context: exit status 1 

:: (1/1) Parsing SRCINFO: decklink-sdk
==> Making package: decklink-sdk 1:12.5-1 (Mon 10 Jul 2023 11:05:29)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
==> ERROR: Blackmagic_DeckLink_SDK_12.5.zip was not found in the build directory and is not a URL.
 -> error making: decklink-sdk-exit status 1
 -> Failed to install the following packages. Manual intervention is required:
decklink-sdk - exit status 1

I can confirm that @RICON's patch resolves it (thanks RICON!)

brauliobo commented on 2023-07-09 01:59 (UTC)

Cant yet build :(

RiCON commented on 2023-07-08 22:29 (UTC)

Fix/simplification that still works to download the latest SDK, at least for me. There's two new mandatory parameters needed in the JSON. Referer doesn't seem to be needed for a valid download link.

diff --git a/PKGBUILD b/PKGBUILD
index fead451..3518cf2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,21 +2,22 @@
 # Contributor: Muhammad Yahya Harlan <muhammad.harlan@binus.ac.id>
 # Contributor: Antoine Lubineau <antoine@lubignon.info>

-_downloadid='359e4b2f20df4547bc443ad90b556968'
-_referid='bba2acb06391447db77988db0f2966e2'
+_downloadid='16b195b1b9c54c0089aaa3ef0757a457'
 _siteurl="https://www.blackmagicdesign.com/api/register/us/download/${_downloadid}"
 _useragent="User-Agent: Mozilla/5.0 (X11; Linux ${CARCH}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.198 Safari/537.36"

 _reqjson="{ \
     \"platform\": \"Linux\", \
+    \"policy\": true, \
+    \"hasAgreedToTerms\": true, \
     \"country\": \"us\", \
     \"firstname\": \"Arch\", \
     \"lastname\": \"Linux\", \
     \"email\": \"someone@archlinux.org\", \
     \"phone\": \"202-555-0194\", \
     \"state\": \"New York\", \
+    \"street\": \"Archlinux Way\", \
     \"city\": \"AUR\", \
-    \"hasAgreedToTerms\": true, \
     \"product\": \"Desktop Video ${pkgver} SDK\" \
 }"

@@ -24,7 +25,6 @@ _srcurl="$(curl \
             -s \
             -H "$_useragent" \
             -H 'Content-Type: application/json;charset=UTF-8' \
-            -H "Referer: https://www.blackmagicdesign.com/support/download/${_referid}/Linux" \
             --data-ascii "$_reqjson" \
             --compressed \
             "$_siteurl")"
@@ -38,7 +38,7 @@ DLAGENTS=("https::/usr/bin/curl \
               %u")

 pkgname=decklink-sdk
-pkgver=12.5
+pkgver=12.5.1
 pkgrel=1
 epoch=1
 pkgdesc='Blackmagic DeckLink SDK'
@@ -50,7 +50,7 @@ provides=('blackmagic-decklink-sdk')
 conflicts=('blackmagic-decklink-sdk')
 replaces=('blackmagic-decklink-sdk')
 source=("Blackmagic_DeckLink_SDK_${pkgver}.zip"::"$_srcurl")
-sha256sums=('ad9408c32bb0ca42efb45687b88c309753f5757c8d947b496b3ad869b370c5b1')
+sha256sums=('071858044bc988088a5f54e995f1f351d416a7c3ec080b743043a76ffbdc70fd')

 prepare() {
     pdftotext -layout "Blackmagic DeckLink SDK ${pkgver}/End User License Agreement.pdf"

dbermond commented on 2022-06-27 02:30 (UTC)

@San32 Upstream changed downloadid. Package updated, thanks for reporting.

San32 commented on 2022-06-26 22:47 (UTC) (edited on 2022-06-26 23:13 (UTC) by San32)

The DeckLink SDK automatic registration somehow does not work correctly. Downloaded the zip manually & it worked. Trying to build ffmpeg-full-git.

SamLukeYes commented on 2022-03-09 16:56 (UTC)

@abcfy2 Thanks for your solution. It works for me.

dbermond commented on 2020-06-28 21:44 (UTC)

@abcfy2 Good that you managed it by yourself.

abcfy2 commented on 2020-06-28 18:45 (UTC)

Hi @dbermond. I find a very simple solution, here is the patch:

diff --git a/PKGBUILD b/PKGBUILD
index d1d7028..355e5a4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -27,7 +27,7 @@ _reqjson="$(  printf '%s' "$_reqjson"   | sed 's/[[:space:]]\+/ /g')"
 _useragent="$(printf '%s' "$_useragent" | sed 's/[[:space:]]\+/ /g')"
 _useragent_escaped="${_useragent// /\\ }"

-_srcurl="$(curl \
+_srcurl="$(curl -L --post301 \
             -s \
             -H 'Host: www.blackmagicdesign.com' \
             -H 'Accept: application/json, text/plain, */*' \
@@ -43,17 +43,6 @@ _srcurl="$(curl \
             --compressed \
             "$_siteurl")"

-DLAGENTS=("https::/usr/bin/curl \
-              -gqb '' -C - --retry 3 --retry-delay 3 \
-              -H Host:\ sw.blackmagicdesign.com \
-              -H Upgrade-Insecure-Requests:\ 1 \
-              -H ${_useragent_escaped} \
-              -H Accept:\ text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8 \
-              -H Accept-Language:\ en-US,en;q=0.9 \
-              -o %o \
-              --compressed \
-              %u")
-
 pkgname=decklink-sdk
 pkgver=11.5.1
 pkgrel=1

Both my network and proxy could work.