pkgsrc-Users archive

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

Add libsvtav1 to ffmpeg



Hi, I added a libsvtav1 option to build ffmpeg with svt-av1 support.
This encoder is faster than libaom and has been adopted by AOMedia.
I would add this options to PKG_SUGGESTED_OPTIONS, ffmpeg users
are going to expect support for this encoder.

Regards.
adr

================================
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	5 Oct 2026 17:26:46 -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
================================
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:45:27 -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	5 Oct 2026 17:26:46 -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
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.


Home | Main Index | Thread Index | Old Index