BlackMagic Declink Card Installation

Go To: https://www.blackmagicdesign.com/support/family/capture-and-playback

Choose the Card from Dropdown List – on Top Right

Note: When the DecLink card is changed to another model, the driver remains the same but need to execute the BlackmagicFirmwareUpdater commands (status/update) for the Linux OS to identify it.

$cd Blackmagic_Desktop_Video_Linux_10.9a7/amd64/deb/
$dpkg -i desktopvideo_*.deb
$apt-get install libgl1-mesa-glx
$apt-get -f install 
$BlackmagicFirmwareUpdater status
$BlackmagicFirmwareUpdater update /dev/blackmagic/io0
$BlackmagicFirmwareUpdater update /dev/blackmagic/io4
$init 6
  • Prequisites:
$apt-get install libavformat-dev libswscale-dev libavresample-dev 
$apt-get install pkgconf cmake yasm libtool libx264-dev
  • Install x264:
git clone https://github.com/qupai/x264.git
# cd x264
# ./configure
# make
# make install
  • x265
# git clone git://github.com/videolan/x265
# cd x265/build
# cmake ../source
# make
# make install
  • fdk-aac
# git clone git://git.code.sf.net/p/opencore-amr/fdk-aac
# cd fdk-aac
# autoreconf -if
# ./configure
# make
# make install
  • opus
# git clone git://git.opus-codec.org/opus.git
# cd opus
# autoreconf -if
# ./configure
# make
# make install
  • libav
# git clone git://github.com/libav/libav
# cd libav
# ./configure --enable-gpl --enable-nonfree --enable-libx264 --enable-libx265 --enable-libfdk-aac
# make -j 8 && make install
Download SDK from https://www.blackmagicdesign.com/support/family/capture-and-playback

Build & Install BMDCapture

# git clone git://github.com/lu-zero/bmdtools
# cd bmdtools
# make SDK_PATH=<path where you unpacked the decklink sdk>/<Target OS>/include

Note: The SDK currently supports Linux and MacOSX. Thus the <Target OS can be either Linux or Mac.

Install BMDCapture
$cp bmdcapture bmdplay /usr/local/bincd /root/Blackmagic_Desktop_Video_Linux_10.9a7/deb/amd64/
$dpkg -i mediaexpress_3.5.3a1_amd64.deb
$apt-get install libatk1.0-0
$apt-get -f install
$dpkg -i mediaexpress_3.5.3a1_amd64.deb
Sample Command to Initiate streaming via wowza:
bmdcapture -C 0 -m 2 -A 2 -c 2  -V 4  -F nut -f pipe:1  | avconv -loglevel warning -i - -async 1 -vsync passthrough -flags +global_header -c:v libx264 -pix_fmt yuv420p -preset:v superfast -tune zerolatency -threads 0  -b:v 700k -minrate 700k -maxrate 700k -bufsize 700k   -r 30 -c:a aac -ar 48000   -strict experimental  -profile:v baseline -f flv rtmp://wowza.abc.com/xyz/123

 

Reference Links

https://coolchevy.org.ua/2010/09/08/decklink-driver-of-blackmagicdesign-on-gentoo-linux/

https://www.blackmagicdesign.com/support

https://www.blackmagicdesign.com/support/download/9d53d0685c754e728c46d6dd57841fc0/Linux

https://www.sitola.cz/igrid/index.php/DeckLink_Setup_(Linux)

https://forum.blackmagicdesign.com/viewtopic.php?f=3&t=92

https://forum.blackmagicdesign.com/viewtopic.php?f=12&t=40854

https://github.com/lu-zero/bmdtools/wiki (Steps are included here)