diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 60 |
1 files changed, 26 insertions, 34 deletions
@@ -18,60 +18,50 @@ pkgname=ffmpeg-full-nvenc _pkgbasename=ffmpeg -pkgver=3.4.2 -pkgrel=3 +pkgver=4.0 +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' 'bzip2' 'celt' 'chromaprint-fftw' 'fontconfig' 'frei0r-plugins' - 'fribidi' 'glibc' 'gnutls' 'gsm' 'jack' 'kvazaar' 'ladspa' 'lame' 'libass' - 'libavc1394' 'libbluray' 'libbs2b' 'libcaca' 'libcdio-paranoia' 'libdc1394' - 'libfdk-aac' 'libgme' 'libiec61883' 'libilbc' 'libmodplug' 'libomxil-bellagio' - 'libmysofa' 'libpulse' 'librsvg' 'libsoxr' 'libssh' 'libtheora' 'libva' - 'libvdpau' 'libwebp' 'libxml2' 'libxv' 'mesa' 'ndi-sdk' 'openal' 'opencore-amr' - 'opencl-driver' 'opencl-icd-loader' 'openh264' - 'openjpeg2' 'libopenmpt-svn' 'opus' 'rockchip-mpp' 'rubberband' 'rtmpdump' - 'sdl2' 'smbclient' 'speex' 'shine' 'tesseract' 'twolame' 'v4l-utils' - 'vid.stab' 'vo-amrwbenc' 'libxcb' 'xvidcore' 'xz' 'wavpack' 'zeromq' 'zimg' - 'zlib' 'zvbi' 'libvorbisenc.so' 'libvorbis.so' 'libvpx.so' 'libx264.so' - 'libx265.so' 'snappy' 'sndio' 'xavs') +license=('custom: nonfree and unredistributable') +depends=('alsa-lib' 'bzip2' 'celt' 'chromaprint-fftw' 'codec2' 'fontconfig' + 'ffnvcodec-headers' 'frei0r-plugins' 'fribidi' 'glibc' 'gsm' 'jack' 'kvazaar' + 'ladspa' 'lame' 'libass' 'libavc1394' 'libbluray' 'libbs2b' 'libcaca' + 'libcdio-paranoia' 'libdc1394' 'libfdk-aac' 'libgme' 'libiec61883' + 'libilbc' 'libmodplug' 'libomxil-bellagio' 'libmysofa' 'libpulse' + 'librsvg' 'libsoxr' 'libssh' 'libtheora' 'libva' 'libvdpau' 'libwebp' + 'libxml2' 'libxv' 'mesa' 'ndi-sdk' 'openal' 'opencore-amr' 'opencl-driver' + 'opencl-icd-loader' 'openh264' 'openjpeg2' 'libopenmpt-svn' 'opus' + 'rockchip-mpp' 'rubberband' 'rtmpdump' 'sdl2' 'smbclient' 'speex' 'srt' + 'shine' 'tesseract' 'twolame' 'v4l-utils' 'vid.stab' 'vo-amrwbenc' 'libxcb' + 'xvidcore' 'xz' 'wavpack' 'zeromq' 'zimg' 'zlib' 'zvbi' 'libvorbisenc.so' + 'libvorbis.so' 'libvpx.so' 'libx264.so' 'libx265.so' 'snappy' 'sndio' 'xavs') depends_x86_64=('cuda' 'nvidia-utils') -makedepends=('flite' 'libmfx' 'libvdpau' 'nasm' 'opencl-headers' 'vmaf') +makedepends=('flite' 'libmfx' 'libvdpau' 'nasm' 'opencl-headers') +makedepends_x86_64=('vmaf-git') 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' + 'libavutil.so' 'libpostproc.so' 'libswresample.so' 'libswscale.so' 'ffmpeg' 'qt-faststart') source=(https://ffmpeg.org/releases/$_pkgbasename-$pkgver.tar.xz{,.asc} - 'ffmpeg-full-rkmpp-build-fix.patch' - 'ffmpeg-full-rkmpp-remove-stream-start.patch' 'UNREDISTRIBUTABLE.txt') validpgpkeys=('FCF986EA15E6E293A5644F10B4322F04D67658D8') -sha256sums=('2b92e9578ef8b3e49eeab229e69305f5f4cbc1fdaa22e927fc7fca18acccd740' +sha256sums=('ed945daf40b124e77a685893cc025d086f638bc703183460aff49508edb3a43f' 'SKIP' - '142923fd02851343bfbfd31b201ba014dced8a8c8898373c72d71d30d59f5851' - 'cac8577126c3e49f8c915fa289f3f5aa624dc55f897b8b7a5613191bcfa9c097' 'e0c1b126862072a71e18b9580a6b01afc76a54aa6e642d2c413ba0ac9d3010c4') -prepare() { - cd "$_pkgbasename-$pkgver" - patch -Np1 -i "${srcdir}/ffmpeg-full-rkmpp-build-fix.patch" - patch -Np1 -i "${srcdir}/ffmpeg-full-rkmpp-remove-stream-start.patch" -} - build() { cd "$_pkgbasename-$pkgver" # Add x86_64 (opt)depends to the build if [ "$CARCH" = "x86_64" ] then - local _cuda='--enable-cuda' + local _libvmaf='--enable-libvmaf' local _cudasdk='--enable-cuda-sdk' - local _cuvid='--enable-cuvid' local _libnpp='--enable-libnpp' local _cflags='-I/opt/cuda/include' # '-L/usr/lib/nvidia' (for cuda_sdk) needs to be enabled only on @@ -106,7 +96,7 @@ build() { --enable-nonfree \ --disable-static \ --enable-shared \ - --enable-avresample \ + --enable-swresample \ \ \ $_cuda \ @@ -117,6 +107,7 @@ build() { --enable-libdrm \ --enable-libmfx \ --enable-nvenc \ + --enable-nvdec \ --enable-omx \ --enable-omx-rpi \ \ @@ -129,11 +120,9 @@ build() { --enable-bzlib \ --enable-fontconfig \ --enable-frei0r \ - --enable-gnutls \ --enable-gpl \ --enable-gray \ --enable-iconv \ - --enable-jack \ --enable-ladspa \ --enable-libass \ --enable-libbluray \ @@ -141,6 +130,7 @@ build() { --enable-libcaca \ --enable-libcdio \ --enable-libcelt \ + --enable-libcodec2 \ --enable-libdc1394 \ --enable-libfdk-aac \ --enable-libfreetype \ @@ -149,6 +139,7 @@ build() { --enable-libgsm \ --enable-libiec61883 \ --enable-libilbc \ + --enable-libjack \ --enable-libkvazaar \ --enable-libmodplug \ --enable-libmp3lame \ @@ -170,6 +161,7 @@ build() { --enable-libsnappy \ --enable-libsoxr \ --enable-libspeex \ + --enable-libsrt \ --enable-libssh \ --enable-libtesseract \ --enable-libtheora \ @@ -211,7 +203,7 @@ build() { msg "Starting make" make make tools/qt-faststart - make doc/ff{mpeg,play,server}.1 + make doc/ff{mpeg,play}.1 } package() { |