pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/60856: ffmpeg port lacks support for AV! encoding with libsvtav1



>Number:         60856
>Category:       pkg
>Synopsis:       ffmpeg port lacks support for AV! encoding with libsvtav1
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 06 13:25:00 +0000 2026
>Originator:     adr
>Release:        Current
>Organization:
>Environment:
NetBSD npi 11.99.8 NetBSD 11.99.8 (GENERIC64) #0: Sat Sep 12 12:47:59 UTC 2026  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbarm/compile/GENERIC64 evbarm
>Description:
Unlike x264 or x265, AV1 is a royalty-free coding format, and svt-av1 is replacing libaom.
https://aomedia.org/blog%20posts/SVT-AV1-Proven-Performance-Promising-Horizons/
Ffmpeg users are going to expect svt-av1 support, which is lacking right now in the pkgsrc port.
>How-To-Repeat:
$ ffprobe9 -encoders
>Fix:
Index: options.description
===================================================================
RCS file: /cvsroot/pkgsrc/mk/defaults/options.description,v
retrieving revision 1.768
diff -u -r1.768 options.description
--- options.description 31 Aug 2026 05:30:11 -0000      1.768
+++ options.description 5 Oct 2026 17:47:24 -0000
@@ -979,6 +979,7 @@
 sunaudio               Enable Sun audio support.
 svg                    Enable SVG support.
 svn                    Enable subversion support.
+svtav1                 Enable AV1 support using libsvtav1.
 sybase                 Enable Sybase/MS SQL Server support.
 syncdir                        Force synchronous link() and related syscalls.
 syslog                 Enable syslog support.
===================================================================
Index: options.mk
===================================================================
RCS file: /cvsroot/pkgsrc/multimedia/ffmpeg9/options.mk,v
retrieving revision 1.1
diff -u -r1.1 options.mk
--- options.mk  12 Aug 2026 03:43:35 -0000      1.1
+++ options.mk  6 Oct 2026 13:24:04 -0000
@@ -6,7 +6,7 @@
 
 PKG_SUPPORTED_OPTIONS= ass aom bluray doc fdk-aac fontconfig freetype jack \
                        lame libvpx libwebp opencore-amr opus pulseaudio rav1e rpi rtmp \
-                       speex tesseract theora vorbis x11 x264 x265 xvid
+                       speex svtav1 tesseract theora vorbis x11 x264 x265 xvid
 PKG_SUGGESTED_OPTIONS= ass aom bluray freetype fontconfig gnutls lame \
                        libvpx libwebp opus speex theora vorbis x264 x265 xvid
 
@@ -65,6 +65,15 @@
 CONFIGURE_ARGS+=       --disable-libaom
 .endif
 
+# av1 option with libsvtav1
+.if !empty(PKG_OPTIONS:Msvtav1)
+CONFIGURE_ARGS+=       --enable-libsvtav1
+BUILDLINK_API_DEPENDS.svt-av1+=        svt-av1>=3.0.0
+.include "../../multimedia/svt-av1/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-libsvtav1
+.endif
+
 # av1 option with rav1e
 .if !empty(PKG_OPTIONS:Mrav1e)
 CONFIGURE_ARGS+=       --enable-librav1e
@@ -73,7 +82,8 @@
 CONFIGURE_ARGS+=       --disable-librav1e
 .endif
 
-.if !empty(PKG_OPTIONS:Maom) || !empty(PKG_OPTIONS:Mrav1e)
+.if !empty(PKG_OPTIONS:Maom) || !empty(PKG_OPTIONS:Mrav1e) || \
+       !empty(PKG_OPTIONS:Msvtav1)
 CONFIGURE_ARGS+=       --enable-libdav1d
 .include "../../multimedia/dav1d/buildlink3.mk"
 .else




Home | Main Index | Thread Index | Old Index