[FFmpeg-user] Compiling ffmpeg with an output device (Blackmagick Decklink)
Gang Liu
gangban.lau at gmail.com
Sat Apr 14 05:03:54 EEST 2018
# with decklink, centos 6.x
scl enable devtoolset-3 bash
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:"$HOME/ffmpeg/build.static/lib/pkgconfig"
./configure --prefix="$HOME/ffmpeg/build.static"
--pkg-config-flags="--static"
--extra-cflags="-I$HOME/ffmpeg/build.static/include
-I$HOME/Downloads/Blackmagic_DeckLink_SDK_10.8.5/Linux/include/"
--extra-ldflags="-L$HOME/ffmpeg/build.static/lib
-L$HOME/Downloads/Blackmagic_DeckLink_SDK_10.8.5/Linux/include/"
--extra-libs=-lpthread --bindir="$HOME/ffmpeg/bin.static" --enable-gpl
--enable-version3 --enable-nonfree --enable-libfdk_aac --enable-fontconfig
--enable-libfreetype --enable-libmp3lame --enable-libopus
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265
--enable-decklink --enable-librtmp --enable-openssl
On Sat, Apr 14, 2018 at 5:22 AM, David Di Biase <david at pilotinteractive.ca>
wrote:
> I've gone through the ffmpeg compile tutorial and have managed to get it
> working as expected. The build looks stable and usable. However now I need
> to include the Blackmagick Decklink SDK in the build using the
> --enable-decklink flag.
>
> *cd ~/ffmpeg_sources && \*
> *wget -O ffmpeg-snapshot.tar.bz2
> https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
> <https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2> && \*
> *tar xjvf ffmpeg-snapshot.tar.bz2 && \*
> *cd ffmpeg && \*
> *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-ldflags="-L$HOME/ffmpeg_build/lib" \*
> * --extra-libs="-lpthread -lm" \*
> * --bindir="$HOME/bin" \*
> * --enable-gpl \*
> * --enable-libass \*
> * --enable-libfdk-aac \*
> * --enable-libfreetype \*
> * --enable-libmp3lame \*
> * --enable-libopus \*
> * --enable-libtheora \*
> * --enable-libvorbis \*
> * --enable-libvpx \*
> * --enable-libx264 \*
> * --enable-libx265 \*
> * --enable-decklink \*
> * --enable-nonfree && \*
> *PATH="$HOME/bin:$PATH" make && \*
> *make install && \*
> *hash -r*
>
> However after a few seconds it fails and reports that it cannot find the
> decklink libs:
>
> *ERROR: DeckLinkAPI.h not found*
>
> If you think configure made a mistake, make sure you are using the latest
> version from Git. If the latest version fails, report the problem to the
> ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
> Include the log file "ffbuild/config.log" produced by configure as this
> will help
> solve the problem.
> I've placed the libraries in the same folder specified by extra-cflags and
> in the ldflags. So basically the Decklink SDK is available here and here:
>
> *~/ffmpeg_build/include/decklink*
> *~/ffmpeg_build/lib/decklink*
>
> That's not apparently how you do it though (new to ffmpeg). I'm wondering
> where I should be putting the SDK source to ensure the compiler can read
> it.
>
> Thanks.
>
> --
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify the system manager.
> This message contains confidential information and is intended only for
> the
> individual named. If you are not the named addressee you should not
> disseminate, distribute or copy this e-mail. Please notify the sender
> immediately by e-mail if you have received this e-mail by mistake and
> delete this e-mail from your system. If you are not the intended recipient
> you are notified that disclosing, copying, distributing or taking any
> action in reliance on the contents of this information is strictly
> prohibited.
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-user
mailing list