The newest commit still fails to build with FFMPEG_OBS_CUDA="ON"
with the same error described in my previous comment.
I did take the time to perform a clean chroot build just to confirm there was nothing strange about my specific environment. I did have a few older versions of gcc installed (including gcc-11 which I have removed). The clean chroot build only had gcc-15 and gcc-14 (as gcc-14 is required for CUDA - the latest version is built against gcc-14).
If anyone else runs FFMPEG_OBS_CUDA="ON"
here are the patches I did to get a successful build:
My Patch to PKGBUILD:
diff --git a/PKGBUILD b/PKGBUILD
index 95003dd..8371a60 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -357,12 +357,14 @@ if [[ $FFMPEG_OBS_SVT == 'ON' ]]; then
"030-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"
"031-ffmpeg-add-svt-vp9.patch"
"040-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"
+ "050-nvccflags-cpp14.patch"
)
sha256sums+=(
'9047e18d34716812d4ea7eafc1d0fd8b376d922a4b6b4dc20237662fcaf0c996'
'a164ebdc4d281352bf7ad1b179aae4aeb33f1191c444bed96cb8ab333c046f81'
'aa0daffc4d234b6621b63c298dc165d29522c5087f8905a923d23ee2d164e9ad'
'59da61f2b2c556fbe0cdbf84bcc00977ee3d2447085decb21f6298226559f2aa'
+ 'aa471410078cad635f4bc417b77de967faab4b3ca8e7578d22d9ed6edbc94543'
)
_args+=(--enable-libsvthevc --enable-libsvtvp9)
provides+=(ffmpeg-svt-hevc ffmpeg-svt-vp9)
@@ -457,6 +459,10 @@ prepare() {
patch -Np1 -i "${srcdir}/031-ffmpeg-add-svt-vp9.patch"
patch -Np1 -i <(filterdiff -i b/libavcodec/libsvt_vp9.c "${srcdir}/040-ffmpeg-add-svt-vp9-g${_svt_vp9_ver:0:7}.patch")
fi
+
+ if [[ $FFMPEG_OBS_CUDA == 'ON' ]]; then
+ patch -Np1 -i "${srcdir}/050-nvccflags-cpp14.patch"
+ fi
}
build() {
050-nvccflags-cpp14.patch:
diff --git a/configure b/configure
index 7ea54fc7c0..d44e0c53b2 100755
--- a/configure
+++ b/configure2
@@ -6748,7 +6748,7 @@ if [ -z "$nvccflags" ]; then
nvccflags=$nvccflags_default
fi
-nvccflags="$nvccflags -std=c++11"
+nvccflags="$nvccflags -std=c++14"
if enabled x86_64 || enabled ppc64 || enabled aarch64; then
nvccflags="$nvccflags -m64"
Pinned Comments
tytan652 commented on 2022-07-23 05:48 (UTC) (edited on 2024-06-21 13:15 (UTC) by tytan652)
Please, this package follow Arch Linux
ffmpeg
package version (not the staging or the testing one).Don't put
ffmpeg-obs
out-of-date if both packages are on the same version. If you do, you might be ignored in the future.tytan652 commented on 2021-12-17 15:32 (UTC)
OBS Project actually patch FFmpeg to fix some issues and also add RIST support starting from 27.2.
So I created this package, a ffmpeg package that ensure that you have those.
I really wanted to not do this but some fixes are needed, so I did my best to add those "feature-set options".
They allow you to build ffmpeg with feature-set based on other ffmpeg packages from AUR.
Read the PKGBUILD for more information about them.