Results 1 to 2 of 2

Thread: ffmpeg with NDI on Linux

  1. #1
    Registered User
    Join Date
    Nov 2018
    Location
    italy
    Posts
    3

    ffmpeg with NDI on Linux

    hi,
    I started working with NDI a few days ago and yes, it works great. At the moment I managed to make it run flawlessly with openframeworks on Linux, but I'd like to make use of a few functionality provided by ffmpeg.

    Unfortunately I cannot find an ffmpeg version for Linux with libndi_newtek enabled, or a guide to help me compile it from sources. Is there a precompiled binary somewhere to download, or is anybody willing to help me compile it?

    My Linux flavour is Ubuntu 18.04 if that matters.

    thank you
    Davide

  2. #2
    Registered User
    Join Date
    Nov 2018
    Location
    italy
    Posts
    3
    OK I managed to compile it, the procedure is as follows (for future reference)

    Follow the ffmpeg compilation guide here: https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu

    copy "lib" and "include" directories from NDI sdk to ffmpeg_sources/ndi

    use this modified build command:

    cd ~/ffmpeg_sources && wget -O 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 -I$HOME/ffmpeg_sources/ndi/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib -L$HOME/ffmpeg_sources/ndi/lib/x86_64-linux-gnu" --extra-libs="-lpthread -lm" --bindir="$HOME/bin" --enable-gpl --enable-libass --enable-libfreetype --enable-libvorbis --enable-libx264 --enable-libx265 --enable-libndi_newtek --enable-nonfree && PATH="$HOME/bin:$PATH" make -j4 && make install && hash -r

    (I omitted some libraries I do not need, --enable what suits you better)

    sudo cp $HOME/ffmpeg_sources/ndi/lib/x86_64-linux-gnu /usr/lib

    got to $HOME/bin and test with ./ffmpeg -f libndi_newtek -find_sources 1 -i dummy

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •