2017-08-09 22:22:49 +02:00
|
|
|
# Maintainer: Dmitry Kharitonov <darksab0r at gmail com>
|
|
|
|
# Contributor: Daniel Bermond < yahoo-com: danielbermond >
|
|
|
|
# Contributor: rcpoison <rc dot poison at gmail dot com>
|
|
|
|
# Contributor: Gerad Munsch <gmunsch@unforgivendevelopment.com>
|
|
|
|
# Contributor: Rudolf Polzer <divVerent[at]xonotic[dot]org>
|
|
|
|
# Contributor: Ionut Biru <ibiru@archlinux.org>
|
|
|
|
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
|
|
|
|
# Contributor: Paul Mattal <paul@archlinux.org>
|
|
|
|
|
|
|
|
# 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
|
|
|
|
#
|
|
|
|
|
|
|
|
pkgname=ffmpeg-full-nvenc
|
|
|
|
_pkgbasename=ffmpeg
|
2018-04-25 22:14:03 +02:00
|
|
|
pkgver=4.0
|
2018-02-13 18:36:05 +01:00
|
|
|
pkgrel=1
|
2017-08-09 22:22:49 +02:00
|
|
|
epoch=1
|
|
|
|
pkgdesc="Record, convert, and stream audio and video (all codecs including Nvidia NVENC)"
|
|
|
|
arch=('i686' 'x86_64')
|
2017-12-20 19:57:24 +01:00
|
|
|
url='http://ffmpeg.org/'
|
2017-08-09 22:22:49 +02:00
|
|
|
license=('GPL' 'custom:UNREDISTRIBUTABLE')
|
|
|
|
depends=('alsa-lib' 'bzip2' 'celt' 'chromaprint-fftw' 'fontconfig' 'frei0r-plugins'
|
2017-08-16 19:02:10 +02:00
|
|
|
'fribidi' 'glibc' 'gnutls' 'gsm' 'jack' 'kvazaar' 'ladspa' 'lame' 'libass.so'
|
|
|
|
'libavc1394' 'libbluray.so' 'libbs2b' 'libcaca' 'libcdio-paranoia' 'libdc1394'
|
2017-08-09 22:22:49 +02:00
|
|
|
'libfdk-aac' 'libgme' 'libiec61883' 'libilbc' 'libmodplug' 'libomxil-bellagio'
|
|
|
|
'libpulse' 'libsoxr' 'libssh' 'libtheora' 'libva' 'libvdpau' 'libwebp'
|
|
|
|
'libxv' 'mesa' 'netcdf' 'nut-multimedia-git' 'openal' 'opencore-amr'
|
|
|
|
'opencv' 'opencl-driver' 'opencl-icd-loader' 'openh264'
|
|
|
|
'openjpeg2' 'libopenmpt-svn' 'opus' 'rubberband' 'rtmpdump' 'schroedinger'
|
|
|
|
'sdl2' 'smbclient' 'speex' 'shine' 'tesseract' 'twolame' 'v4l-utils'
|
2018-01-04 20:24:24 +01:00
|
|
|
'libvidstab.so' 'vo-amrwbenc' 'libxcb' 'libxml2' 'libxvidcore.so' 'xz' 'wavpack' 'zeromq' 'zimg'
|
2017-08-09 22:22:49 +02:00
|
|
|
'zlib' 'zvbi' 'libvorbisenc.so' 'libvorbis.so' 'libvpx.so' 'libx264.so'
|
2017-08-16 19:02:10 +02:00
|
|
|
'libx265.so' 'snappy' 'sndio' 'xavs' 'libfreetype.so')
|
2017-08-09 22:22:49 +02:00
|
|
|
depends_x86_64=('cuda')
|
|
|
|
makedepends=('flite' 'libmfx' 'libvdpau' 'yasm' 'opencl-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'
|
2018-08-29 23:36:23 +02:00
|
|
|
'libavutil.so' 'libpostproc.so' 'libswresample.so'
|
2017-08-09 22:22:49 +02:00
|
|
|
'libswscale.so' 'ffmpeg' 'qt-faststart')
|
|
|
|
source=(https://ffmpeg.org/releases/$_pkgbasename-$pkgver.tar.xz{,.asc}
|
2018-04-25 22:14:03 +02:00
|
|
|
'UNREDISTRIBUTABLE.txt')
|
2017-08-09 22:22:49 +02:00
|
|
|
validpgpkeys=('FCF986EA15E6E293A5644F10B4322F04D67658D8')
|
2018-04-25 22:14:03 +02:00
|
|
|
sha256sums=('ed945daf40b124e77a685893cc025d086f638bc703183460aff49508edb3a43f'
|
2017-08-09 22:22:49 +02:00
|
|
|
'SKIP'
|
2018-04-25 22:14:03 +02:00
|
|
|
'e0c1b126862072a71e18b9580a6b01afc76a54aa6e642d2c413ba0ac9d3010c4')
|
2017-08-09 22:22:49 +02:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $_pkgbasename-$pkgver
|
|
|
|
|
|
|
|
# Add x86_64 (opt)depends to the build
|
|
|
|
if [ "$CARCH" = "x86_64" ]
|
|
|
|
then
|
|
|
|
_cuda="--enable-cuda"
|
|
|
|
_cuvid="--enable-cuvid"
|
|
|
|
_libnpp="--enable-libnpp"
|
|
|
|
_cflags="--extra-cflags=-I/opt/cuda/include"
|
|
|
|
_ldflags="--extra-ldflags=-L/opt/cuda/lib64 -Wl,-rpath -Wl,/opt/intel/mediasdk/lib64"
|
|
|
|
fi
|
|
|
|
|
|
|
|
msg "Starting configure..."
|
|
|
|
|
|
|
|
## Add "--enable-decklink \"
|
|
|
|
## if you have decklink-sdk installed
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
$_cflags \
|
|
|
|
"$_ldflags" \
|
|
|
|
\
|
|
|
|
--toolchain=hardened \
|
|
|
|
\
|
|
|
|
--enable-rpath \
|
|
|
|
--enable-gpl \
|
|
|
|
--enable-version3 \
|
|
|
|
--enable-nonfree \
|
|
|
|
--disable-static \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-avresample \
|
|
|
|
\
|
|
|
|
\
|
|
|
|
$_cuda \
|
|
|
|
$_cuvid \
|
|
|
|
$_libnpp \
|
|
|
|
\
|
|
|
|
--enable-libmfx \
|
2018-08-29 23:36:23 +02:00
|
|
|
--enable-nvdec \
|
2017-08-09 22:22:49 +02:00
|
|
|
--enable-nvenc \
|
|
|
|
--enable-omx \
|
|
|
|
--enable-omx-rpi \
|
|
|
|
\
|
|
|
|
\
|
|
|
|
--enable-avisynth \
|
|
|
|
--enable-chromaprint \
|
|
|
|
--enable-decoder=atrac3 \
|
|
|
|
--enable-decoder=atrac3p \
|
|
|
|
--enable-bzlib \
|
|
|
|
--enable-fontconfig \
|
|
|
|
--enable-frei0r \
|
|
|
|
--enable-gnutls \
|
|
|
|
--enable-gpl \
|
|
|
|
--enable-gray \
|
|
|
|
--enable-iconv \
|
|
|
|
--enable-ladspa \
|
|
|
|
--enable-libass \
|
|
|
|
--enable-libbluray \
|
|
|
|
--enable-libbs2b \
|
|
|
|
--enable-libcaca \
|
|
|
|
--enable-libcdio \
|
|
|
|
--enable-libcelt \
|
|
|
|
--enable-libdc1394 \
|
|
|
|
--enable-libfdk-aac \
|
|
|
|
--enable-libfreetype \
|
|
|
|
--enable-libfribidi \
|
|
|
|
--enable-libgme \
|
|
|
|
--enable-libgsm \
|
|
|
|
--enable-libiec61883 \
|
|
|
|
--enable-libilbc \
|
|
|
|
--enable-libkvazaar \
|
|
|
|
--enable-libmodplug \
|
|
|
|
--enable-libmp3lame \
|
|
|
|
--enable-libnut \
|
|
|
|
--enable-libopencore-amrnb \
|
|
|
|
--enable-libopencore-amrwb \
|
|
|
|
--enable-libopencv \
|
|
|
|
--enable-libopenh264 \
|
|
|
|
--enable-libopenjpeg \
|
|
|
|
--enable-libopenmpt \
|
|
|
|
--enable-libopus \
|
|
|
|
--enable-libpulse \
|
|
|
|
--enable-librubberband \
|
|
|
|
--enable-librtmp \
|
|
|
|
--enable-libschroedinger \
|
|
|
|
--enable-libshine \
|
|
|
|
--enable-libsmbclient \
|
|
|
|
--enable-libsnappy \
|
|
|
|
--enable-libsoxr \
|
|
|
|
--enable-libspeex \
|
|
|
|
--enable-libssh \
|
|
|
|
--enable-libtesseract \
|
|
|
|
--enable-libtheora \
|
|
|
|
--enable-libtwolame \
|
|
|
|
--enable-libv4l2 \
|
|
|
|
--enable-libvidstab \
|
|
|
|
--enable-libvo-amrwbenc \
|
|
|
|
--enable-libvorbis \
|
|
|
|
--enable-libvpx \
|
|
|
|
--enable-libwavpack \
|
|
|
|
--enable-libwebp \
|
|
|
|
--enable-libx264 \
|
|
|
|
--enable-libx265 \
|
|
|
|
--enable-libxavs \
|
|
|
|
--enable-libxcb \
|
|
|
|
--enable-libxcb-shm \
|
|
|
|
--enable-libxcb-xfixes \
|
|
|
|
--enable-libxcb-shape \
|
2018-01-04 20:24:24 +01:00
|
|
|
--enable-libxml2 \
|
2017-08-09 22:22:49 +02:00
|
|
|
--enable-libxvid \
|
|
|
|
--enable-libzimg \
|
|
|
|
--enable-libzmq \
|
|
|
|
--enable-libzvbi \
|
|
|
|
--enable-lzma \
|
|
|
|
--enable-netcdf \
|
|
|
|
--enable-openal \
|
|
|
|
--enable-opencl \
|
|
|
|
--enable-opengl \
|
|
|
|
--enable-openssl \
|
|
|
|
--enable-sdl2 \
|
|
|
|
--enable-vaapi \
|
|
|
|
--enable-vdpau \
|
|
|
|
--enable-videotoolbox \
|
|
|
|
--enable-xlib \
|
|
|
|
--enable-zlib
|
|
|
|
|
|
|
|
|
|
|
|
msg "Starting make"
|
|
|
|
make
|
|
|
|
make tools/qt-faststart
|
2018-04-25 22:14:03 +02:00
|
|
|
make doc/ff{mpeg,play}.1
|
2017-08-09 22:22:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $_pkgbasename-$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"
|
|
|
|
}
|