diff options
author | Daniel Bermond | 2022-03-20 16:50:43 -0300 |
---|---|---|
committer | Daniel Bermond | 2022-03-20 16:50:43 -0300 |
commit | 4a7adcfdfe7d96d6256447b8acb8b8e35ea004df (patch) | |
tree | aaadbb5dff7142e8baa600bfa4e9bb61cd577f8e | |
parent | fa344ecf3bcb155ef210ca92dc27cd66c55174ae (diff) | |
download | aur-4a7adcfdfe7d96d6256447b8acb8b8e35ea004df.tar.gz |
Add fix for avisynthplus and temporarily disable svt-vp9
It currently fails to build with svt-vp9. Upstream patch needs to
be updated to match ffmpeg git master.
-rw-r--r-- | .SRCINFO | 9 | ||||
-rw-r--r-- | 060-ffmpeg-fix-segfault-with-avisynthplus.patch | 11 | ||||
-rw-r--r-- | PKGBUILD | 14 |
3 files changed, 24 insertions, 10 deletions
@@ -1,6 +1,6 @@ pkgbase = ffmpeg-full-git pkgdesc = Complete solution to record, convert and stream audio and video (all possible features including libfdk-aac; git version) - pkgver = 5.1.r105668.gcc2b3201e7 + pkgver = 5.1.r106355.ga24e6ca8bf pkgrel = 1 url = https://www.ffmpeg.org/ arch = x86_64 @@ -64,7 +64,6 @@ pkgbase = ffmpeg-full-git depends = libssh depends = svt-hevc depends = svt-av1 - depends = svt-vp9 depends = tesseract depends = libtheora depends = twolame @@ -132,13 +131,15 @@ pkgbase = ffmpeg-full-git conflicts = ffmpeg source = git+https://git.ffmpeg.org/ffmpeg.git source = 010-ffmpeg-add-svt-hevc-g111eef1.patch::https://raw.githubusercontent.com/OpenVisualCloud/SVT-HEVC/111eef187fd7b91ad27573421c7238ef787e164f/ffmpeg_plugin/master-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch - source = 030-ffmpeg-add-svt-vp9-g308ef44.patch::https://raw.githubusercontent.com/OpenVisualCloud/SVT-VP9/308ef4464568a824f1f84c4491cb08ab4f535f6c/ffmpeg_plugin/master-0001-Add-ability-for-ffmpeg-to-run-svt-vp9.patch + source = 030-ffmpeg-add-svt-vp9-g41819e7.patch::https://raw.githubusercontent.com/OpenVisualCloud/SVT-VP9/41819e71950883655dcfa2a8b60cf0a75d50db74/ffmpeg_plugin/master-0001-Add-ability-for-ffmpeg-to-run-svt-vp9.patch source = 040-ffmpeg-add-av_stream_get_first_dts-for-chromium.patch + source = 060-ffmpeg-fix-segfault-with-avisynthplus.patch source = LICENSE sha256sums = SKIP sha256sums = efd01f96c1f48ea599881dfc836d20ba18c758a3588d616115546912aebeb77f - sha256sums = 9565b3eed177ce5d109876f2a56f3781a2c7fae41e32601bf6ec805ea199d21b + sha256sums = 1cdedb9e8c2912986d6acf20dd9d8ef0f1e21995d9b1898120dc55b714b4de0d sha256sums = 91973c465f01446a999f278f0c2a3763304994dba1ac35de0e4c72f12f39409e + sha256sums = 887c2e440b159b7c3575a12eb17e1297b76f9468b65b96ef2674b7bb36b12fcf sha256sums = 04a7176400907fd7db0d69116b99de49e582a6e176b3bfb36a03e50a4cb26a36 pkgname = ffmpeg-full-git diff --git a/060-ffmpeg-fix-segfault-with-avisynthplus.patch b/060-ffmpeg-fix-segfault-with-avisynthplus.patch new file mode 100644 index 000000000000..1a43237953e4 --- /dev/null +++ b/060-ffmpeg-fix-segfault-with-avisynthplus.patch @@ -0,0 +1,11 @@ +--- a/libavformat/avisynth.c ++++ b/libavformat/avisynth.c +@@ -121,7 +121,7 @@ static av_cold void avisynth_atexit_handler(void); + + static av_cold int avisynth_load_library(void) + { +- avs_library.library = dlopen(AVISYNTH_LIB, RTLD_NOW | RTLD_LOCAL); ++ avs_library.library = dlopen(AVISYNTH_LIB, RTLD_NOW | RTLD_DEEPBIND); + if (!avs_library.library) + return AVERROR_UNKNOWN; + @@ -1,7 +1,7 @@ # Maintainer: Daniel Bermond <dbermond@archlinux.org> pkgname=ffmpeg-full-git -pkgver=5.1.r105668.gcc2b3201e7 +pkgver=5.1.r106355.ga24e6ca8bf pkgrel=1 pkgdesc='Complete solution to record, convert and stream audio and video (all possible features including libfdk-aac; git version)' arch=('x86_64') @@ -16,7 +16,7 @@ depends=( 'libiec61883' 'libilbc' 'jack' 'kvazaar' 'libmodplug' 'lame' 'opencore-amr' 'openjpeg2' 'opus' 'libpulse' 'librabbitmq-c' 'rav1e' 'librsvg' 'rubberband' 'rtmpdump' 'smbclient' 'snappy' 'libsoxr' 'speex' 'srt' 'libssh' - 'svt-hevc' 'svt-av1' 'svt-vp9' 'tesseract' 'libtheora' 'twolame' + 'svt-hevc' 'svt-av1' 'tesseract' 'libtheora' 'twolame' 'v4l-utils' 'vid.stab' 'vmaf' 'libvorbis' 'libvpx' 'libwebp' 'x264' 'x265' 'libxcb' 'xvidcore' 'libxml2' 'zimg' 'zeromq' 'zvbi' 'lv2' 'lilv' 'xz' 'libmysofa' 'openal' 'ocl-icd' 'libgl' 'sndio' 'sdl2' 'vapoursynth' @@ -39,25 +39,28 @@ provides=('libavcodec.so' 'libavdevice.so' 'libavfilter.so' 'libavformat.so' 'ffmpeg' 'ffmpeg-full' 'ffmpeg-git') conflicts=('ffmpeg') _svt_hevc_ver='111eef187fd7b91ad27573421c7238ef787e164f' -_svt_vp9_ver='308ef4464568a824f1f84c4491cb08ab4f535f6c' +_svt_vp9_ver='41819e71950883655dcfa2a8b60cf0a75d50db74' source=('git+https://git.ffmpeg.org/ffmpeg.git' "010-ffmpeg-add-svt-hevc-g${_svt_hevc_ver:0:7}.patch"::"https://raw.githubusercontent.com/OpenVisualCloud/SVT-HEVC/${_svt_hevc_ver}/ffmpeg_plugin/master-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch" #"20-ffmpeg-add-svt-hevc-docs-g${_svt_hevc_ver:0:7}.patch"::"https://raw.githubusercontent.com/OpenVisualCloud/SVT-HEVC/${_svt_hevc_ver}/ffmpeg_plugin/0002-doc-Add-libsvt_hevc-encoder-docs.patch" "030-ffmpeg-add-svt-vp9-g${_svt_vp9_ver:0:7}.patch"::"https://raw.githubusercontent.com/OpenVisualCloud/SVT-VP9/${_svt_vp9_ver}/ffmpeg_plugin/master-0001-Add-ability-for-ffmpeg-to-run-svt-vp9.patch" '040-ffmpeg-add-av_stream_get_first_dts-for-chromium.patch' + '060-ffmpeg-fix-segfault-with-avisynthplus.patch' 'LICENSE') sha256sums=('SKIP' 'efd01f96c1f48ea599881dfc836d20ba18c758a3588d616115546912aebeb77f' - '9565b3eed177ce5d109876f2a56f3781a2c7fae41e32601bf6ec805ea199d21b' + '1cdedb9e8c2912986d6acf20dd9d8ef0f1e21995d9b1898120dc55b714b4de0d' '91973c465f01446a999f278f0c2a3763304994dba1ac35de0e4c72f12f39409e' + '887c2e440b159b7c3575a12eb17e1297b76f9468b65b96ef2674b7bb36b12fcf' '04a7176400907fd7db0d69116b99de49e582a6e176b3bfb36a03e50a4cb26a36') prepare() { rm -f ffmpeg/libavcodec/libsvt_{hevc,vp9}.c patch -d ffmpeg -Np1 -i "${srcdir}/010-ffmpeg-add-svt-hevc-g${_svt_hevc_ver:0:7}.patch" #patch -d ffmpeg -Np1 -i "${srcdir}/020-ffmpeg-add-svt-hevc-docs-g${_svt_hevc_ver:0:7}.patch" - patch -d ffmpeg -Np1 -i "${srcdir}/030-ffmpeg-add-svt-vp9-g${_svt_vp9_ver:0:7}.patch" + #patch -d ffmpeg -Np1 -i "${srcdir}/030-ffmpeg-add-svt-vp9-g${_svt_vp9_ver:0:7}.patch" patch -d ffmpeg -Np1 -i "${srcdir}/040-ffmpeg-add-av_stream_get_first_dts-for-chromium.patch" + patch -d ffmpeg -Np1 -i "${srcdir}/060-ffmpeg-fix-segfault-with-avisynthplus.patch" } pkgver() { @@ -159,7 +162,6 @@ build() { --enable-libvo-amrwbenc \ --enable-libvorbis \ --enable-libvpx \ - --enable-libsvtvp9 \ --enable-libwebp \ --enable-libx264 \ --enable-libx265 \ |