From: ezag <ezag@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: vmaf-2.3.1
Date: Sun, 08 Jan 2023 21:09:44 +0100 [thread overview]
Message-ID: <20230108200944.B2ihl7OWZGGgoOvw4UC-wr8DYEmpafRl4-rxL4tiytE@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41489@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 399 bytes --]
There is an updated pull request by ezag against master on the void-packages repository
https://github.com/ezag/void-packages vmaf
https://github.com/void-linux/void-packages/pull/41489
New package: vmaf-2.3.1
### To do: ###
- [x] patch ffmpeg (uses external vmaf model)
- [x] split vmaf-devel package
A patch file from https://github.com/void-linux/void-packages/pull/41489.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-vmaf-41489.patch --]
[-- Type: text/x-diff, Size: 4055 bytes --]
From da997f80531c5634a31d92da85289bb31da8d9b9 Mon Sep 17 00:00:00 2001
From: Eugen Zagorodniy <zag@disroot.org>
Date: Fri, 6 Jan 2023 06:29:47 +0200
Subject: [PATCH 1/2] New package: vmaf-2.3.1
---
common/shlibs | 1 +
srcpkgs/vmaf-devel | 1 +
srcpkgs/vmaf/template | 30 ++++++++++++++++++++++++++++++
3 files changed, 32 insertions(+)
create mode 120000 srcpkgs/vmaf-devel
create mode 100644 srcpkgs/vmaf/template
diff --git a/common/shlibs b/common/shlibs
index 349c183cdb38..a4fd6bb94906 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4220,3 +4220,4 @@ libdspy-1.so.1 d-spy-1.4.0_1
libpanel-1.so.1 libpanel-1.0.1_1
libqrtr.so.1 qrtr-ns-1.0_1
libbpf.so.1 libbpf-1.0.0_1
+libvmaf.so.1 vmaf-2.3.1_1
diff --git a/srcpkgs/vmaf-devel b/srcpkgs/vmaf-devel
new file mode 120000
index 000000000000..61c973c1c892
--- /dev/null
+++ b/srcpkgs/vmaf-devel
@@ -0,0 +1 @@
+vmaf
\ No newline at end of file
diff --git a/srcpkgs/vmaf/template b/srcpkgs/vmaf/template
new file mode 100644
index 000000000000..530055f17465
--- /dev/null
+++ b/srcpkgs/vmaf/template
@@ -0,0 +1,30 @@
+# Template file for 'vmaf'
+pkgname=vmaf
+version=2.3.1
+revision=1
+build_wrksrc=libvmaf
+build_style=meson
+hostmakedepends="nasm xxd"
+short_desc="Perceptual video quality assessment algorithm developed by Netflix"
+maintainer="Eugen Zagorodniy <zag@disroot.org>"
+license=BSD-2-Clause-Patent
+homepage="https://github.com/Netflix/vmaf"
+distfiles="https://github.com/Netflix/vmaf/archive/refs/tags/v${version}.tar.gz"
+checksum=8d60b1ddab043ada25ff11ced821da6e0c37fd7730dd81c24f1fc12be7293ef2
+
+post_install() {
+ vlicense ../LICENSE
+ # Obsolete compute_vmaf() used by ffmpeg-4.4.3 requires non-built-in models
+ vcopy ../model usr/share/vmaf
+}
+
+vmaf-devel_package() {
+ depends="vmaf>=${version}_${revision}"
+ short_desc+=" - development files"
+ pkg_install() {
+ vmove usr/include
+ vmove "usr/lib/*.a"
+ vmove "usr/lib/*.so"
+ vmove usr/lib/pkgconfig
+ }
+}
From ad5d7860cb2dce4115a0dc92296485b22757f91f Mon Sep 17 00:00:00 2001
From: Eugen Zagorodniy <zag@disroot.org>
Date: Fri, 6 Jan 2023 20:50:38 +0200
Subject: [PATCH 2/2] ffmpeg: enable vmaf support
---
srcpkgs/ffmpeg/template | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/ffmpeg/template b/srcpkgs/ffmpeg/template
index 23a3d5c9967b..c3fd2e66b97a 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.3
-revision=2
+revision=3
short_desc="Decoding, encoding and streaming software"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
@@ -17,7 +17,7 @@ makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-deve
libvorbis-devel x264-devel xvidcore-devel jack-devel SDL2-devel
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)
+ libbs2b-devel libvidstab-devel vmaf-devel $(vopt_if pulseaudio pulseaudio-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)
@@ -66,6 +66,8 @@ post_patch() {
ppc64le*) ;;
ppc*) _apply_patch -p1 ${FILESDIR}/altivec.patch ;;
esac
+
+ vsed -i libavfilter/vf_libvmaf.c -e 's!/usr/local/share/model/\(vmaf_v0.6.1\).pkl!/usr/share/vmaf/\1.json!'
}
do_configure() {
@@ -110,7 +112,7 @@ do_configure() {
$(vopt_if fdk_aac '--enable-nonfree --enable-libfdk-aac') \
--disable-libopencore_amrnb --disable-libopencore_amrwb \
--disable-libopenjpeg \
- --enable-postproc --enable-opencl ${_args} \
+ --enable-postproc --enable-opencl --enable-libvmaf ${_args} \
$(vopt_enable x265 libx265) \
$(vopt_enable v4l2 libv4l2) \
$(vopt_enable aom libaom) $(vopt_enable vaapi) $(vopt_enable vdpau) \
next prev parent reply other threads:[~2023-01-08 20:09 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-06 5:36 [PR PATCH] " ezag
2023-01-06 5:47 ` [PR PATCH] [Updated] " ezag
2023-01-06 18:51 ` ezag
2023-01-06 19:16 ` [PR REVIEW] " paper42
2023-01-06 19:16 ` paper42
2023-01-06 19:16 ` paper42
2023-01-06 19:16 ` paper42
2023-01-06 20:26 ` [PR PATCH] [Updated] " ezag
2023-01-06 20:30 ` ezag
2023-01-06 22:40 ` [PR PATCH] [Updated] New package: vmaf-1.5.3 ezag
2023-01-06 22:56 ` [PR PATCH] [Updated] New package: vmaf-2.3.1 ezag
2023-01-06 23:17 ` ezag
2023-01-07 3:14 ` [PR PATCH] [Updated] " ezag
2023-01-08 20:09 ` ezag [this message]
2023-01-08 20:26 ` ezag
2023-04-09 1:52 ` github-actions
2023-04-09 18:42 ` [PR PATCH] [Updated] " ezag
2023-04-09 19:10 ` ezag
2023-06-24 14:05 ` Duncaen
2023-06-26 11:07 ` [PR PATCH] [Updated] " ezag
2023-06-26 11:31 ` ezag
2023-06-26 11:38 ` [PR PATCH] [Closed]: " Duncaen
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=20230108200944.B2ihl7OWZGGgoOvw4UC-wr8DYEmpafRl4-rxL4tiytE@z \
--to=ezag@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).