summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Bermond2019-05-31 23:48:05 +0000
committerDaniel Bermond2019-05-31 23:48:05 +0000
commit5812707d36f3553c2f9a46585d215217bddab4ef (patch)
treea7f5cdbcb25aca0c3b454135be0d40040df3be34
parent46028079090518a3518acf30a0aec01b6d3867d5 (diff)
downloadaur-5812707d36f3553c2f9a46585d215217bddab4ef.tar.gz
Add intel-svt support for hevc, av1 and vp9
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD27
2 files changed, 36 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 578a825e137..6c52f51d216 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = ffmpeg-full
pkgdesc = Complete solution to record, convert and stream audio and video (all possible features including nvenc, qsv and libfdk-aac)
pkgver = 4.1.3
- pkgrel = 2
+ pkgrel = 3
url = https://www.ffmpeg.org/
arch = i686
arch = x86_64
@@ -96,6 +96,9 @@ pkgbase = ffmpeg-full
depends = openh264
depends = libopenmpt-svn
depends = shine
+ depends = intel-svt-hevc
+ depends = intel-svt-av1
+ depends = svt-vp9-git
depends = vo-amrwbenc
depends = xavs
depends = xavs2
@@ -115,10 +118,18 @@ pkgbase = ffmpeg-full
conflicts = ffmpeg
source = https://ffmpeg.org/releases/ffmpeg-4.1.3.tar.xz
source = https://ffmpeg.org/releases/ffmpeg-4.1.3.tar.xz.asc
+ source = ffmpeg-full-add-intel-svt-hevc.patch::https://raw.githubusercontent.com/OpenVisualCloud/SVT-HEVC/v1.3.0/ffmpeg_plugin/0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch
+ source = ffmpeg-full-add-intel-svt-hevc-docs.patch::https://raw.githubusercontent.com/OpenVisualCloud/SVT-HEVC/v1.3.0/ffmpeg_plugin/0002-doc-Add-libsvt_hevc-encoder-docs.patch
+ source = ffmpeg-full-add-intel-svt-av1.patch::https://raw.githubusercontent.com/OpenVisualCloud/SVT-AV1/v0.5.0/ffmpeg_plugin/0001-Add-ability-for-ffmpeg-to-run-svt-av1-with-svt-hevc.patch
+ source = ffmpeg-full-add-intel-svt-vp9.patch::https://raw.githubusercontent.com/OpenVisualCloud/SVT-VP9/9c96f478e4a281f6019c8b0de39c2b7caba56371/ffmpeg_plugin/0001-Add-ability-for-ffmpeg-to-run-svt-vp9-with-svt-hevc-av1.patch
source = LICENSE
validpgpkeys = FCF986EA15E6E293A5644F10B4322F04D67658D8
sha256sums = 0c3020452880581a8face91595b239198078645e7d7184273b8bcc7758beb63d
sha256sums = SKIP
+ sha256sums = cc8ba4ff56cdb38a59650203999c4c8c83fc40bdb905b87b678ff68a4538444d
+ sha256sums = 516c5a1b3ab6dc444e2270a1bae90455838fc3b7e3a18de37d7d63e25e79493d
+ sha256sums = 490952c315404ecaa633d55cdb3456d1e518180c8375f374f3fb85d226fff476
+ sha256sums = 7690a4f6bdc4a57e35c7ff5b6e87f2fe6d056d452eff9e767eaccff41832f4d7
sha256sums = 04a7176400907fd7db0d69116b99de49e582a6e176b3bfb36a03e50a4cb26a36
depends_x86_64 = cuda
depends_x86_64 = intel-media-sdk
diff --git a/PKGBUILD b/PKGBUILD
index 6253f7a811c..de68cd265e5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=ffmpeg-full
_srcname=ffmpeg
pkgver=4.1.3
-pkgrel=2
+pkgrel=3
pkgdesc='Complete solution to record, convert and stream audio and video (all possible features including nvenc, qsv and libfdk-aac)'
arch=('i686' 'x86_64')
url='https://www.ffmpeg.org/'
@@ -24,8 +24,8 @@ depends=(
'libxext' 'zlib' 'libomxil-bellagio' 'libva' 'libdrm' 'libvdpau'
# AUR:
'chromaprint-fftw' 'codec2' 'davs2' 'flite1-patched' 'libilbc' 'libklvanc-git'
- 'kvazaar' 'openh264' 'libopenmpt-svn' 'shine' 'vo-amrwbenc' 'xavs' 'xavs2'
- 'ndi-sdk' 'libmysofa' 'rockchip-mpp'
+ 'kvazaar' 'openh264' 'libopenmpt-svn' 'shine' 'intel-svt-hevc' 'intel-svt-av1'
+ 'svt-vp9-git' 'vo-amrwbenc' 'xavs' 'xavs2' 'ndi-sdk' 'libmysofa' 'rockchip-mpp'
)
depends_x86_64=(
# official repositories:
@@ -48,12 +48,30 @@ provides=('libavcodec.so' 'libavdevice.so' 'libavfilter.so' 'libavformat.so'
'libswresample.so' 'ffmpeg')
conflicts=('ffmpeg')
source=("https://ffmpeg.org/releases/ffmpeg-${pkgver}.tar.xz"{,.asc}
+ 'ffmpeg-full-add-intel-svt-hevc.patch'::'https://raw.githubusercontent.com/OpenVisualCloud/SVT-HEVC/v1.3.0/ffmpeg_plugin/0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch'
+ 'ffmpeg-full-add-intel-svt-hevc-docs.patch'::'https://raw.githubusercontent.com/OpenVisualCloud/SVT-HEVC/v1.3.0/ffmpeg_plugin/0002-doc-Add-libsvt_hevc-encoder-docs.patch'
+ 'ffmpeg-full-add-intel-svt-av1.patch'::'https://raw.githubusercontent.com/OpenVisualCloud/SVT-AV1/v0.5.0/ffmpeg_plugin/0001-Add-ability-for-ffmpeg-to-run-svt-av1-with-svt-hevc.patch'
+ 'ffmpeg-full-add-intel-svt-vp9.patch'::'https://raw.githubusercontent.com/OpenVisualCloud/SVT-VP9/9c96f478e4a281f6019c8b0de39c2b7caba56371/ffmpeg_plugin/0001-Add-ability-for-ffmpeg-to-run-svt-vp9-with-svt-hevc-av1.patch'
'LICENSE')
sha256sums=('0c3020452880581a8face91595b239198078645e7d7184273b8bcc7758beb63d'
'SKIP'
+ 'cc8ba4ff56cdb38a59650203999c4c8c83fc40bdb905b87b678ff68a4538444d'
+ '516c5a1b3ab6dc444e2270a1bae90455838fc3b7e3a18de37d7d63e25e79493d'
+ '490952c315404ecaa633d55cdb3456d1e518180c8375f374f3fb85d226fff476'
+ '7690a4f6bdc4a57e35c7ff5b6e87f2fe6d056d452eff9e767eaccff41832f4d7'
'04a7176400907fd7db0d69116b99de49e582a6e176b3bfb36a03e50a4cb26a36')
validpgpkeys=('FCF986EA15E6E293A5644F10B4322F04D67658D8')
+prepare() {
+ cd "${_srcname}-${pkgver}"
+
+ # add intel-svt support for hevc, av1 and vp9
+ patch -Np1 -i "${srcdir}/ffmpeg-full-add-intel-svt-hevc.patch"
+ patch -Np1 -i "${srcdir}/ffmpeg-full-add-intel-svt-hevc-docs.patch"
+ patch -Np1 -i "${srcdir}/ffmpeg-full-add-intel-svt-av1.patch"
+ patch -Np1 -i "${srcdir}/ffmpeg-full-add-intel-svt-vp9.patch"
+}
+
build() {
cd "${_srcname}-${pkgver}"
@@ -153,6 +171,9 @@ build() {
--enable-libspeex \
--enable-libsrt \
--enable-libssh \
+ --enable-libsvthevc \
+ --enable-libsvtav1 \
+ --enable-libsvtvp9 \
--enable-libtensorflow \
--enable-libtesseract \
--enable-libtheora \