Ffmpeg Ndi

ffmpeg ndi
# If you don’t want CUDA/CUVID support, you can remove
# depends_x86_64=(‘cuda’) line and
# $_cuda , $_cuvid , $_libnpp lines from PKGBUILD
#
# Add “–enable-decklink ” to configure flags
# if you have decklink-sdk installed
# Add “–enable-libndi_newtek ” to configure flags
# if you have ndi-sdk installed

pkgname=ffmpeg
#_pkgbasename=ffmpeg
ffmpeg ndi informational ffmpeg ndi
pkgver=4.0.2
pkgrel=1
epoch=1
pkgdesc=”Record, convert, and stream audio and video (all codecs including Nvidia NVENC)”
arch=(‘i686’ ‘x86_64’)
url=”http://ffmpeg.org/”
license=(‘GPL’ ‘custom:UNREDISTRIBUTABLE’)
depends=(‘alsa-lib’ ‘aom’ ‘bzip2’ ‘celt’ ‘fontconfig’
‘fribidi’ ‘glibc’ ‘gnutls’ ‘gsm’ ‘jack’ ‘ladspa’ ‘lame’ ‘libass’
‘libavc1394’ ‘libbluray’ ‘libcaca’ ‘libcdio-paranoia’ ‘libdc1394’
ffmpeg ndi ffmpeg ndi
‘libfdk-aac’ ‘libgme’ ‘libiec61883’ ‘libmodplug’ ‘libomxil-bellagio’
‘libpulse’ ‘librsvg’ ‘libsoxr’ ‘libssh’ ‘libtheora’ ‘libva’
‘libvdpau’ ‘libwebp’ ‘libxml2’ ‘libxv’ ‘mesa’ ‘openal’ ‘opencore-amr’
‘opencl-driver’ ‘opencl-icd-loader’
‘openjpeg2’ ‘opus’ ‘rubberband’ ‘rtmpdump’
‘sdl2’ ‘smbclient’ ‘speex’ ‘twolame’ ‘v4l-utils’
‘vid.stab’ ‘libxcb’ ‘xvidcore’ ‘xz’ ‘wavpack’ ‘zeromq’ ‘zimg’
‘zlib’ ‘zvbi’ ‘libvorbisenc.so’ ‘libvorbis.so’ ‘libvpx.so’ ‘libx264.so’
‘libx265.so’)
depends_x86_64=(‘cuda’ ‘nvidia-utils’)
ffmpeg ndi check more ffmpeg ndi
makedepends=(‘ladspa’ ‘libvdpau’ ‘yasm’ ‘nasm’ ‘opencl-headers’ ‘ffnvcodec-headers’)
optdepends=(‘avxsynth-git: for Avisynth support’
‘blackmagic-decklink-sdk: for Blackmagic DeckLink support; need to add –enable-decklink option in this PKGBUILD’)
optdepends_x86_64=(‘intel-media-sdk: for Intel QSV support (Experimental! See PKGBUILD of that package for additional info)’)
conflicts=(‘ffmpeg’ ‘ffmpeg-full’ ‘ffmpeg-git’ ‘ffmpeg-full-git’ ‘ffmpeg-full-extra’)
provides=(‘libavcodec.so’ ‘libavdevice.so’ ‘libavfilter.so’ ‘libavformat.so’
‘libavresample.so’ ‘libavutil.so’ ‘libpostproc.so’ ‘libswresample.so’
‘libswscale.so’)
source=(https://ffmpeg.org/releases/$pkgname-$pkgver.tar.xz ‘UNREDISTRIBUTABLE.txt’)

ffmpeg ndi best of ffmpeg ndi
sha256sums=(‘SKIP’
‘e0c1b126862072a71e18b9580a6b01afc76a54aa6e642d2c413ba0ac9d3010c4′)

build() {
cd ffmpeg-${pkgver}

# Add x86_64 (opt)depends to the build
if [ “$CARCH” = “x86_64″ ]
then
local _cuda=’–enable-cuda’
ffmpeg ndi ffmpeg ndi
local _cudasdk=’–enable-cuda-sdk’
local _cuvid=’–enable-cuvid’
local _libnpp=’–enable-libnpp’
local _cflags=’–extra-cflags=-I/opt/cuda/include’

# ‘-L/usr/lib/nvidia’ (for cuda_sdk) needs to be enabled only on
# systems with nvidia-340xx-utils or nvidia-304xx-utils
if pacman -Qqs ‘^nvidia-340xx-utils$’ | grep -q ‘^nvidia-340xx-utils$’ ||
pacman -Qqs ‘^nvidia-304xx-utils$’ | grep -q ‘^nvidia-304xx-utils$’
then
ffmpeg ndi best of ffmpeg ndi
local _nvidia_340xx_ldflags=’-L/usr/lib/nvidia’
fi
local _ldflags=”–extra-ldflags=-L/opt/cuda/lib64 ${_nvidia_340xx_ldflags}”
local _ldflags=”${_ldflags} -Wl,-rpath -Wl,/opt/intel/mediasdk/lib64:/opt/intel/mediasdk/plugins”

# strictly specifying nvcc path is needed if package is installing
# cuda for the first time (nvcc path will be in $PATH only after relogin)
sed -i “[email protected]^nvcc_default=.*@nvcc_default=’/opt/cuda/bin/nvcc’@” configure
fi

ffmpeg ndi informational ffmpeg ndi
msg “Starting configure…”

## Add “–enable-decklink ”
## if you have decklink-sdk installed
./configure
–prefix=/usr
$_cflags
“$_ldflags”

–toolchain=hardened
ffmpeg ndi informational ffmpeg ndi

–disable-static
–disable-stripping
–disable-debug
–disable-stripping
–enable-rpath
–enable-gpl
–enable-version3
–enable-nonfree
–enable-shared
ffmpeg ndi best of ffmpeg ndi
–enable-avresample

$_cuda
$_cudasdk
$_cuvid
$_libnpp

–enable-libdrm
–enable-nvenc
ffmpeg ndi best of ffmpeg ndi
–enable-nvdec

–enable-alsa
–enable-chromaprint
–enable-bzlib
–enable-fontconfig
–enable-gpl
–enable-gray
–enable-iconv
ffmpeg ndi check more ffmpeg ndi
–enable-libjack
–enable-ladspa
–enable-libaom
–enable-libass
–enable-libbluray
–enable-libcaca
–enable-libcdio
–enable-libfdk-aac
–enable-libfreetype
–enable-libfribidi
ffmpeg ndi ffmpeg ndi
–enable-libgme
–enable-libgsm
–enable-libiec61883
–enable-libmodplug
–enable-libmp3lame
–enable-libopencore-amrnb
–enable-libopencore-amrwb
–enable-libopenjpeg
–enable-libopus
–enable-libpulse
ffmpeg ndi check more ffmpeg ndi
–enable-librsvg
–enable-librtmp
–enable-libsoxr
–enable-libspeex
–enable-libssh
–enable-libtheora
–enable-libtwolame
–enable-libv4l2
–enable-libvidstab
–enable-libvorbis
ffmpeg ndi check more ffmpeg ndi
–enable-libvpx
–enable-libwavpack
–enable-libwebp
–enable-libx264
–enable-libx265
–enable-libxcb
–enable-libxcb-shm
–enable-libxcb-xfixes
–enable-libxcb-shape
–enable-libxvid
ffmpeg ndi informational ffmpeg ndi
–enable-libxml2
–enable-libzimg
–enable-libzmq
–enable-libzvbi
–enable-lzma
–enable-openal
–enable-opencl
–enable-opengl
–enable-openssl
–enable-sdl2
ffmpeg ndi check more ffmpeg ndi
–enable-vaapi
–enable-vdpau
–enable-xlib
–enable-zlib
–enable-omx

msg “Starting make”
make -j9
make tools/qt-faststart
make doc/ff{mpeg,play}.1
ffmpeg ndi ffmpeg ndi
}

package() {
cd ffmpeg-${pkgver}

make DESTDIR=”${pkgdir}” install install-man
install -Dm 755 tools/qt-faststart “${pkgdir}”/usr/bin/
install -Dm 644 “$srcdir”/UNREDISTRIBUTABLE.txt “$pkgdir/usr/share/licenses/$pkgname/UNREDISTRIBUTABLE.txt”
}
ffmpeg ndi

2008 Toyota Corolla

Hwyla 1.12