From: Brad Smith Subject: Re: graphics/ffmpeg: Add svt-av1 support To: Pontus Stenetorp Cc: ports@openbsd.org Date: Sat, 24 Jan 2026 21:51:23 -0500 On Sun, Jan 25, 2026 at 12:44:17AM +0900, Pontus Stenetorp wrote: > Cheers Brad! Thank you for clarifying and the ONLY_FOR_ARCHS removal and 3.1.2 multimedia/svt-av1 diffs are now in. > > Please find my updated diff for enabling svt-av1 for graphics/ffmpeg below. Tested again on amd64 with: > > ffmpeg -f lavfi -t 17 -i testsrc=size=1920x1080 -c:v libsvtav1 /tmp/svtav1test.webm Thanks. Here is an updated diff that also includes support for version 4.0. Index: Makefile =================================================================== RCS file: /cvs/ports/graphics/ffmpeg/Makefile,v retrieving revision 1.254 diff -u -p -u -p -r1.254 Makefile --- Makefile 12 Dec 2025 13:38:22 -0000 1.254 +++ Makefile 25 Jan 2026 02:42:05 -0000 @@ -3,6 +3,7 @@ COMMENT= audio/video converter and strea # keep it synced with x11/mplayer V= 8.0.1 DISTNAME= ffmpeg-${V} +REVISION= 0 CATEGORIES= graphics multimedia SITES= https://ffmpeg.org/releases/ EXTRACT_SUFX= .tar.xz @@ -38,12 +39,12 @@ MAINTAINER= Brad Smith qp > 0) { + param->qp = svt_enc->qp; + param->rate_control_mode = 0; ++#if SVT_AV1_CHECK_VERSION(4, 0, 0) ++ param->aq_mode = 0; ++#else + param->enable_adaptive_quantization = 0; ++#endif + } + + desc = av_pix_fmt_desc_get(avctx->pix_fmt);