From: dataCobra <dataCobra@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] ffmpeg: add option --enable-nvdec
Date: Mon, 22 Aug 2022 14:34:23 +0200 [thread overview]
Message-ID: <20220822123423.5ckudVqrm-5g5-Z6YJbsIT-39GGubmKBOwyXTlOVwbw@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-38829@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 787 bytes --]
There is an updated pull request by dataCobra against master on the void-packages repository
https://github.com/dataCobra/void-packages ffmpeg-enable-nvdec
https://github.com/void-linux/void-packages/pull/38829
ffmpeg: add option --enable-nvdec
#### Testing the changes
- I tested the changes in this PR: **briefly**
#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64 (crossbuild)
- aarch64-musl (crossbuild)
- armv7l (crossbuild)
This is an update to try fixing issue #38782.
@nvidiaLinuxUser, could you please test this PR for your system?
A patch file from https://github.com/void-linux/void-packages/pull/38829.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ffmpeg-enable-nvdec-38829.patch --]
[-- Type: text/x-diff, Size: 3758 bytes --]
From 7d52f3736f82782d572f066989d5f11309b67d18 Mon Sep 17 00:00:00 2001
From: dataCobra <datacobra@thinkbot.de>
Date: Mon, 22 Aug 2022 14:33:49 +0200
Subject: [PATCH] ffmpeg: add build_option --enable-nvdec
---
srcpkgs/ffmpeg/template | 25 ++++++++++++++-----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/ffmpeg/template b/srcpkgs/ffmpeg/template
index 63d02eb3af18..289881c886d0 100644
--- a/srcpkgs/ffmpeg/template
+++ b/srcpkgs/ffmpeg/template
@@ -2,7 +2,7 @@
# audacity also needs to be bumped when a new ffmpeg version bumps libavformat's soname!
pkgname=ffmpeg
version=4.4.2
-revision=2
+revision=3
short_desc="Decoding, encoding and streaming software"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
@@ -18,19 +18,20 @@ makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-deve
libcdio-paranoia-devel librtmp-devel libmodplug-devel gnutls-devel
speex-devel celt-devel harfbuzz-devel libass-devel opus-devel ocl-icd-devel
libbs2b-devel libvidstab-devel $(vopt_if pulseaudio pulseaudio-devel)
- $(vopt_if x265 x265-devel) $(vopt_if vaapi libva-devel) $(vopt_if vdpau libvdpau-devel)
- $(vopt_if v4l2 v4l-utils-devel) $(vopt_if fdk_aac fdk-aac-devel)
- $(vopt_if vpx libvpx-devel) $(vopt_if aom libaom-devel)
- $(vopt_if nvenc nv-codec-headers) $(vopt_if sndio sndio-devel)
+ $(vopt_if vaapi libva-devel) $(vopt_if vdpau libvdpau-devel)
+ $(vopt_if x265 x265-devel) $(vopt_if v4l2 v4l-utils-devel)
+ $(vopt_if fdk_aac fdk-aac-devel) $(vopt_if vpx libvpx-devel)
+ $(vopt_if aom libaom-devel) $(vopt_if sndio sndio-devel)
$(vopt_if dav1d libdav1d-devel) $(vopt_if zimg zimg-devel)
$(vopt_if webp libwebp-devel) $(vopt_if sofa libmysofa-devel)
- $(vopt_if vulkan 'vulkan-loader Vulkan-Headers')
$(vopt_if drm libdrm-devel) $(vopt_if svtav1 libsvt-av1-devel)
- $(vopt_if srt srt-devel) $(vopt_if rist librist-devel)"
+ $(vopt_if srt srt-devel) $(vopt_if rist librist-devel)
+ $(vopt_if vulkan 'vulkan-loader Vulkan-Headers')
+ $(vopt_if nvenc nv-codec-headers) $(vopt_if nvdec nv-codec-headers)"
depends="ffplay>=${version}_${revision}"
build_options="x265 v4l2 vaapi vdpau vpx fdk_aac aom nvenc sndio pulseaudio
- dav1d zimg webp sofa vulkan drm svtav1 srt rist"
+ dav1d zimg webp sofa vulkan drm svtav1 srt rist nvdec"
build_options_default="x265 v4l2 vpx aom sndio pulseaudio dav1d webp vulkan drm srt rist"
desc_option_srt="Enable support for SRT (Secure, Reliable, Transport)"
desc_option_rist="Enable support for RIST (Reliable Internet Stream Transport)"
@@ -38,7 +39,7 @@ desc_option_sofa="Enable support for AES SOFA"
desc_option_webp="Enable support for WebP"
case "$XBPS_TARGET_MACHINE" in
- i686*|x86_64*) build_options_default+=" vaapi vdpau nvenc";;
+ i686*|x86_64*) build_options_default+=" vaapi vdpau nvenc nvdec";;
ppc64*) build_options_default+=" vaapi vdpau";;
mips*) CFLAGS="-mnan=legacy";;
esac
@@ -105,7 +106,7 @@ do_configure() {
--enable-shared --enable-static --enable-libxcb \
$(vopt_enable pulseaudio libpulse) --enable-libfreetype --enable-libmodplug \
--enable-libspeex --enable-libcelt --enable-libass \
- --enable-libopus --enable-librtmp --enable-libjack $(vopt_enable nvenc) \
+ --enable-libopus --enable-librtmp --enable-libjack \
$(vopt_if fdk_aac '--enable-nonfree --enable-libfdk-aac') \
--disable-libopencore_amrnb --disable-libopencore_amrwb \
--disable-libopenjpeg \
@@ -122,7 +123,9 @@ do_configure() {
$(vopt_enable drm libdrm) \
$(vopt_enable svtav1 libsvtav1) \
$(vopt_enable srt libsrt) \
- $(vopt_enable rist librist)
+ $(vopt_enable rist librist) \
+ $(vopt_if nvenc '--enable-nvenc') \
+ $(vopt_if nvdec '--enable-nvdec')
}
do_build() {
make ${makejobs}
next prev parent reply other threads:[~2022-08-22 12:34 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-22 9:20 [PR PATCH] " dataCobra
2022-08-22 11:02 ` [PR REVIEW] " sgn
2022-08-22 11:03 ` sgn
2022-08-22 12:34 ` dataCobra [this message]
2022-08-22 12:37 ` dataCobra
2022-08-22 12:38 ` dataCobra
2022-08-22 13:01 ` nvidiaLinuxUser
2022-08-22 13:01 ` nvidiaLinuxUser
2022-08-22 13:01 ` nvidiaLinuxUser
2022-08-22 13:02 ` nvidiaLinuxUser
2022-08-22 14:03 ` nvidiaLinuxUser
2022-08-22 14:04 ` nvidiaLinuxUser
2022-08-22 14:05 ` nvidiaLinuxUser
2022-08-22 14:07 ` nvidiaLinuxUser
2022-08-23 0:00 ` sgn
2022-08-23 22:35 ` abenson
2022-08-24 5:47 ` dataCobra
2022-08-24 12:45 ` abenson
2022-08-24 12:48 ` abenson
2022-08-24 12:59 ` dataCobra
2022-08-24 16:02 ` sgn
2022-08-24 16:53 ` [PR PATCH] [Merged]: " abenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220822123423.5ckudVqrm-5g5-Z6YJbsIT-39GGubmKBOwyXTlOVwbw@z \
--to=datacobra@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).