Page 1 of 1

FFmpeg unable to compile for DeckLink Duo

PostPosted: Wed Jan 30, 2019 4:36 pm
by Fawkes
Dear all,

A couple of days ago I installed a DeckLink Duo on my computer.
I updated the driver as soon as I restarted the desktop.
I first downloaded the latest Blackmagic DeckLink SDK 10.11.4
And secondly I downloaded FFmpeg from the official git.

I tried to configure with --enable-decklink, --extra-cflags and --extra-ldflags

Here is the command I made:
Code: Select all
sudo PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --pkg-config-flags="--static" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-cflags="-I$HOME/Blackmagic\ DeckLink\ SDK\ 10.11.4/Linux/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --extra-ldflags="-L$HOME/Blackmagic\ DeckLink\ SDK\ 10.11.4/Linux/include" --extra-libs="-lpthread -lm" --bindir="$HOME/bin" --enable-decklink --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree && PATH="$HOME/bin:$PATH" make && make install


However I get the following message: C compiler test failed.

I am on ubuntu 18.04.1

I do not know what is my mistake, your help is very welcome.
Please ask me if I forgot to mention any relevant data.

Re: FFmpeg unable to compile for DeckLink Duo

PostPosted: Thu Jan 31, 2019 2:19 pm
by Amnon Israely
Look into the config.log

Re: FFmpeg unable to compile for DeckLink Duo

PostPosted: Thu Jan 31, 2019 2:44 pm
by Fawkes
Thank you for your comment,
It was not happy with the spaces in the default Blackmagic Decklink SDK folder's name.
I replace it with underscore and now it is compiling.

Re: FFmpeg unable to compile for DeckLink Duo

PostPosted: Sun Oct 06, 2024 8:24 pm
by Grant McNair
Fawkes wrote:Thank you for your comment,
It was not happy with the spaces in the default Blackmagic Decklink SDK folder's name.
I replace it with underscore and now it is compiling.



5 years later, but this find was super helpful! Thanks!

Re: FFmpeg unable to compile for DeckLink Duo

PostPosted: Wed May 28, 2025 8:09 pm
by Noah A
How I got ffplay to work with Decklink Recorder 4K card in a Sonnet Echo Express SE connected to M1 MacBook Pro:


—installed BM Desktop Video 14.0
—brew install \
automake cmake git libtool pkg-config texinfo \
nasm yasm \
x264 x265 libvpx fdk-aac lame opus libvorbis \
libass freetype fontconfig openjpeg webp
—brew install sdl2
—brew install blackmagicsdk
(it is decklinksdk 10.11.2)


./configure \
--prefix=/usr/local/ffmpeg \
--enable-ffplay \
--disable-debug \
--enable-gpl \
--enable-nonfree \
--enable-libx264 \
--enable-libx265 \
--enable-libvpx \
--enable-libfdk-aac \
--enable-decklink \
--extra-cflags="-I/opt/homebrew/opt/decklinksdk/include" \
--extra-ldflags="-F/Library/Frameworks -framework DeckLinkAPI" \
--enable-shared \
--disable-debug \
--enable-small

Then:

make
(make -j$(sysctl -n hw.ncpu) or make -j10 if you have 10 cores is a little faster)

make install

And finally set path to /usr/local/ffmpeg

All the paths will be different for you!

(Probably could have used a more trimmed down version of ffmpeg for this, less stuff enabled).
(Also I used both Decklink SDK for the headers and also the framework from Desktop Video, seems like there is a classier way to do this).