<feed xmlns='http://www.w3.org/2005/Atom'>
<title>packages/multimedia/ffmpeg, branch master</title>
<subtitle>Mirror of packages feed</subtitle>
<id>https://git-03.infra.openwrt.org/feed/packages/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/feed/packages/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/'/>
<updated>2026-11-15T00:04:03Z</updated>
<entry>
<title>ffmpeg: update V4L2 Request, add RPi DRM PRIME, trust store</title>
<updated>2026-11-15T00:04:03Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2026-11-11T19:05:03Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=60aae222edbbcf3fcd1e9b570cabba28d5e06520'/>
<id>urn:sha1:60aae222edbbcf3fcd1e9b570cabba28d5e06520</id>
<content type='text'>
Move the V4L2 Request patches to the head of FFmpeg pull request 20847
(3ac4e07593ee), Jonas Karlman's submission of them, as
120-v4l2-request-01 to -11. Their hwcontext maps the capture formats
rpi-hevc-dec prefers, NV12MT_COL128 and NV12MT_10_COL128, only where
linux/videodev2.h defines them, which the toolchain's kernel headers do
not, so patch 151 defines them with the Raspberry Pi kernel's values.

Patch 121, Arun Iyengar's fix from that pull request, hands each frame a
reference-counted session object, so that a frame returned after an SPS
change re-created the hwaccel finds its session closed and needs no
wait; FFmpeg crashed or hung on such HEVC streams. Patch 122 sets the
EXT SPS RPS controls of Linux 7.0, from which rkvdec's HEVC decoders
take the reference picture sets a slice header selects, and patch 152
defines them for the toolchain's kernel headers.

The V4L2 M2M decoders copy every picture into a software frame, so a
player cannot hand a stateful decoder's capture buffers to the display
as it does with the V4L2 Request hwaccels; the Raspberry Pi 4's H.264
decoder is stateful. Carry LibreELEC's v4l2-drmprime series, rebased
for FFmpeg 9 in LibreELEC commit cd0c6aab93d9 ("ffmpeg: rebase and
re-enable v4l2-drmprime patches"), one file per patch of
packages/multimedia/ffmpeg/patches/v4l2-drmprime/0001-v4l2-drmprime.patch:
  130-v4l2-drmprime-01 to -08 (Lukas Rusak): DRM PRIME output, a DRM
    hwcontext, software pixel formats, a pixel format option and flush
  130-v4l2-drmprime-09 (Rudi Heitbaum): adapt to FFmpeg 9
The decoders include libdrm's drm_fourcc.h, so FFMPEG_V4L2_M2M selects
FFMPEG_LIBDRM. Patches 200 and 201 are refreshed.

The series allocates a DRM hwdevice context per decoder and a hwframes
context per queue and keeps them for the life of the process. Patch 131
releases all three when the decoder context is destroyed.

Give the mbedtls backend, the package's default TLS backend, a trust
store, so that https works with peer verification on, as it is by
default. Take the patch submitted upstream, which reads SSL_CERT_FILE
and otherwise the system bundle.

Let a caller keep a network stream on one uplink of a multi-homed
host. Patches 172 and 173, submitted upstream, make the segment and key
connections of an HLS or DASH stream inherit local_addr from the
playlist connection. Patches 175 and 176, submitted upstream, add
local_dev to the tcp and udp protocols, which binds the socket to a
named device with SO_BINDTODEVICE, joins multicast groups on that
device and is inherited the same way.

Since FFmpeg 9.0, struct Program in the MPEG-TS demuxer is about
131 KiB, and pat_cb() and pmt_cb() each keep one on the stack. The
ffmpeg program demuxes every input in a thread with musl's default
stack of 128 KiB, so it crashes on any MPEG-TS input. Backport FFmpeg
commit 6edbe0d5af28 ("avformat/mpegts: avoid ~131 KiB stack frames in
PAT/PMT callbacks"), which swaps two programs member by member and
copies only the stream list of the previous program.

Fixes: e1a07d05b984 ("ffmpeg: add V4L2 hardware decoding patches from LibreELEC")
Fixes: 785210230381 ("ffmpeg: update to 9.0.1")
Link: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20847
Link: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24565
Link: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24566
Link: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25960
Link: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/26065
Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>ffmpeg: disable dcbzl and ppc4xx on e500 cores</title>
<updated>2026-10-13T23:12:47Z</updated>
<author>
<name>Josef Schlehofer</name>
</author>
<published>2026-09-28T01:14:05Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=d4a141e3f71aba1bbc4258bb5346541b13e16569'/>
<id>urn:sha1:d4a141e3f71aba1bbc4258bb5346541b13e16569</id>
<content type='text'>
e500 cores trap on dcbzl, maclhw and mullhw, but configure enables
dcbzl for --cpu=8548, and ppc4xx too with CONFIG_USE_LTO, so ffmpeg
dies with SIGILL (seen on a Turris 1.1). Pass --disable-dcbzl and
--disable-ppc4xx for 8540 and 8548 and make configure honour them.

Signed-off-by: Josef Schlehofer &lt;pepe.schlehofer@gmail.com&gt;
</content>
</entry>
<entry>
<title>ffmpeg: change PKG_MAINTAINER</title>
<updated>2026-09-15T20:40:22Z</updated>
<author>
<name>Mirko Vogt</name>
</author>
<published>2026-09-09T16:28:37Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=87456bddf4e98e3522cc22ecf66a325b44eb6a88'/>
<id>urn:sha1:87456bddf4e98e3522cc22ecf66a325b44eb6a88</id>
<content type='text'>
 - removing Ted Hess as maintainer per request by himself
 - removing Ian Leonard as maintainer per request by himself
 - adding myself (Mirko Vogt) as maintainer
 - adding Daniel Golle as maintainer

Signed-off-by: Mirko Vogt &lt;mirko-openwrt@nanl.de&gt;
</content>
</entry>
<entry>
<title>ffmpeg: add V4L2 hardware decoding patches from LibreELEC</title>
<updated>2026-09-15T20:40:22Z</updated>
<author>
<name>Mirko Vogt</name>
</author>
<published>2026-09-08T13:49:22Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=e1a07d05b984d9bd14c0a4ad6c00ee617418ce6a'/>
<id>urn:sha1:e1a07d05b984d9bd14c0a4ad6c00ee617418ce6a</id>
<content type='text'>
V4L2 Request API hwaccels for stateless decoders such as Allwinner
cedrus, exporting DRM_PRIME frames, and a V4L2 M2M deinterlace filter
driving mem2mem deinterlacers such as Allwinner's sun8i-di on DRM_PRIME
frames. The hwaccels introduce the v4l2-request and libudev configure
options.

Add the FFMPEG_V4L2_REQUEST option (pulls libdrm and libudev) to the
libffmpeg menu, keep both new configure options explicitly off in the
common block like the other autodetected ones, and re-add the
*_v4l2request hwaccels under manual component selection.

Patches:
  120-v4l2-request-01 to -13: carried over from LibreELEC
    (packages/multimedia/ffmpeg/patches/v4l2-request/0001-v4l2-request.patch
    as of LibreELEC commit 79de202a10), one file per patch of the series:
    01 avutil/hwcontext: Add hwdevice type for V4L2 Request API
       (Jonas Karlman)
    02 avutil/hwcontext_v4l2request: Probe for a capable media and
       video device (Jonas Karlman)
    03 avcodec: Add common V4L2 Request API code (Jonas Karlman)
    04 avcodec/v4l2request: Add common decode support for hwaccels
       (Jonas Karlman)
    05 avcodec: Add V4L2 Request API mpeg2 hwaccel (Jonas Karlman)
    06 avcodec/h264dec: add ref_pic_marking and pic_order_cnt bit_size
       to slice context (Boris Brezillon)
    07 avcodec: Add V4L2 Request API h264 hwaccel (Jernej Skrabec)
    08 avcodec: Add V4L2 Request API hevc hwaccel (Jernej Skrabec)
    09 avcodec: Add V4L2 Request API vp8 hwaccel (Boris Brezillon)
    10 avcodec: Add V4L2 Request API vp9 hwaccel (Boris Brezillon)
    11 avcodec: Add V4L2 Request API av1 hwaccel (Jonas Karlman)
    12 avutil/hwcontext_v4l2request: Add support for AFBC_16X16_SPLIT
       pix fmts (Jernej Skrabec)
    13 avutil/hwcontext_v4l2request: Add support for BROADCOM_SAND128
       pix fmts (Jonas Karlman)
    Co-developed by Alex Bee, Benjamin Gaignard and Ezequiel Garcia.
  140-vf-deinterlace-v4l2m2m: carried over from LibreELEC
    (packages/multimedia/ffmpeg/patches/vf-deinterlace-v4l2m2m/0001-vf-deinterlace-v4l2m2m.patch
    as of LibreELEC commit 9ef6c9c6f7; Jernej Skrabec): adds the
    deinterlace_v4l2m2m filter

Headers unchanged, hunks refreshed with quilt; the patched tree is
identical to the one LibreELEC's files produce.

LibreELEC's v4l2-drmprime patch (stateful M2M decoders) is not carried:
it needs a rebase for FFmpeg 9 which LibreELEC has not done either.

The V4L2 Request API series is under review upstream as:
https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20847
The patches here are taken from LibreELEC, though,
as that's the set that Kodi is built and tested against,
incl. some platform specific fixes.

Signed-off-by: Mirko Vogt &lt;mirko-openwrt@nanl.de&gt;
</content>
</entry>
<entry>
<title>ffmpeg: add LibreELEC's Kodi compatibility patches</title>
<updated>2026-09-15T20:40:22Z</updated>
<author>
<name>Mirko Vogt</name>
</author>
<published>2026-09-08T13:49:22Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=83f634c4b338398e71be82504998b1788faafe5b'/>
<id>urn:sha1:83f634c4b338398e71be82504998b1788faafe5b</id>
<content type='text'>
Patches:
  110-libdav1d-get-format: carried over from LibreELEC (Lukas Rusak):
    adds a get_format callback to the libdav1d decoder so Kodi's
    hardware-first, software-fallback decoder setup initialises
    multithreaded software decoding properly; without effect until the
    libdav1d option is enabled
  111-swscale-yuv2rgb-no-warning: carried over from LibreELEC
    (Christian Hewitt): removes the warning swscale logs on every
    context initialisation without an accelerated colourspace
    conversion

LibreELEC keeps both in one file
(packages/multimedia/ffmpeg/patches/libreelec/0001-libreelec.patch as
of LibreELEC commit 5d54b2dd82); they are split here so each keeps its
own header. Headers unchanged, hunks refreshed with quilt; the patched
tree is identical to the one LibreELEC's file produces.

Signed-off-by: Mirko Vogt &lt;mirko-openwrt@nanl.de&gt;
</content>
</entry>
<entry>
<title>ffmpeg: re-add libpostproc as a source plugin</title>
<updated>2026-09-15T20:40:22Z</updated>
<author>
<name>Mirko Vogt</name>
</author>
<published>2026-09-08T13:49:21Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=87a92bf18940b5245bb8f6ee129b9a0a19b3cad0'/>
<id>urn:sha1:87a92bf18940b5245bb8f6ee129b9a0a19b3cad0</id>
<content type='text'>
Upstream dropped libpostproc in 8.0; Kodi still requires it.

The --enable/--disable-postproc option the patch re-introduces is set
explicitly: on together with GPL in libffmpeg, off in libffmpeg-mini.

Patches:
  100-postproc: carried over from LibreELEC (Matthias Reichl's rebase
    of Michael Niedermayer's libpostproc source plugin;
    packages/multimedia/ffmpeg/patches/postproc/0001-postproc.patch as
    of LibreELEC commit 5f03a122f8): re-adds libpostproc as a source
    plugin

Header unchanged, hunks refreshed with quilt; the patched tree is
identical to the one LibreELEC's file produces.

Signed-off-by: Mirko Vogt &lt;mirko-openwrt@nanl.de&gt;
</content>
</entry>
<entry>
<title>ffmpeg: update to 9.0.1</title>
<updated>2026-09-15T20:40:22Z</updated>
<author>
<name>Mirko Vogt</name>
</author>
<published>2026-09-08T13:49:21Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=785210230381467d60ecba4cb74b7aeffbd64b49'/>
<id>urn:sha1:785210230381467d60ecba4cb74b7aeffbd64b49</id>
<content type='text'>
Rework the package while bumping from 6.1.4.

Variants: libffmpeg is the configurable build (menu "FFmpeg
configuration"; the defaults give a full-featured build), libffmpeg-mini
a fixed small decoder set for playback-only consumers; the two conflict.
The former -full, -custom and -audio-dec variants are folded into
libffmpeg: its menu carries the per-codec/format/protocol selection the
custom variant had, controlled by a "manual component selection"
option that is off by default. libffmpeg provides libffmpeg-full and
libffmpeg-audio-dec as transitional aliases for consumers not yet
updated. libffmpeg-mini no longer provides the libffmpeg virtual
package: its fixed set is too small for the in-tree consumers of that
name (mpd, minidlna), which need the default build; it is for consumers
that depend on it explicitly.

 * deterministic configure: --disable-autodetect plus an explicit
   --disable baseline for everything configure would pick up from the
   environment; each optional library/hwaccel is one config symbol
   driving both the conditional DEPENDS and the configure flag
 * menu: licence, size/speed, programs, hwaccels (libdrm, V4L2 M2M,
   VA-API), TLS backend (default mbedTLS, OpenWrt's default TLS
   library), external libraries, system libraries, component selection.
   Defaults follow what in-tree consumers need: libopus, LAME (shine
   on soft-float) and libx264 on; fdk-aac only for a nonfree, non-GPL
   build. The ALSA input device is dropped (no in-tree consumer).
   libdav1d (FFmpeg has no native software AV1 decoder) and VA-API are
   prepared but commented out until the dav1d and libva packages exist
   in the feeds.
 * BUILD_PATENTED: vvc (H.266) is added to the patented component lists
   next to h264, hevc and vc1; FFmpeg 9 builds its native VVC decoder,
   parser, muxer and demuxer by default and H.266 is licensed through
   the same patent pools as HEVC.

Build fixes for 9.0.1 are part of this commit; feature patches from
LibreELEC and the options they introduce follow in separate commits.

Patches:
  010-pkgconfig: kept unchanged: expresses libdir and includedir
    relative to ${prefix} in the generated .pc files
  020-libavcodec-fix-Wint-conversion-in-vulkan,
  030-avformat-file-guard-fd_dup-by-FD_PROTOCOL-or-PIPE_PR,
  040-vulkan_decode-fix-the-print-format-of-VkDeviceSize,
  050-avcodec-dct-Make-declarations-and-definitions-match,
  060-avutil-tx-fix-GCC-memset-warning,
  080-avcodec-pcm-bluray-dvd-Use-correct-pointer-types-on-,
  090-avcodec-tiff-Suppress-unused-variable-warnings,
  100-avcodec-tableprint_vlc-Unbreak-hardcoded-tables,
  120-avfilter-af_channelsplit-fix-mixed-declaration-and-c:
    dropped: merged upstream
  070-avformat-rawdec-guard-by-CONFIG_DATA_DEMUXER: dropped: only
    silenced an unused-function warning in builds without the data
    demuxer
  160-libavdevice-v4l2-libv4l2-posix-ioctl: new: libv4l2.h only
    declares v4l2_ioctl() with the POSIX "int request" signature when
    the consumer defines a feature macro first; FFmpeg detects that
    signature (HAVE_IOCTL_POSIX) but never tells the header, and GCC 14
    turns the resulting pointer-type mismatch into an error. Define
    both macro spellings (v4l-utils &lt;= 1.30 and &gt;= 1.32). Same approach
    as q66's posix-ioctl.patch in Chimera Linux, also carried by Alpine,
    which defines one of the two names per copy
  170-tls_mbedtls-build-without-version-module: new: OpenWrt's mbedtls
    package disables MBEDTLS_VERSION_C, so mbedtls_version_get_number()
    is not declared; fall back to the compile-time MBEDTLS_VERSION_NUMBER
  180-mips-cabac-no-mips16: re-added: restores the MIPS16 guard for the
    MIPS CABAC inline assembly from Rosen Penev's 030-h264-mips.patch
    (2020), dropped by the 6.1.2 update
  190-configure-hevcparse-select-hevc_sei: new: configure's hevcparse
    component does not select hevc_sei although hevc/parse.c needs it;
    without BUILD_PATENTED the HEVC decoder and parser that used to pull
    it in are off while the default-enabled dovi_split bitstream filter
    still needs hevcparse, leaving ff_hevc_decode_nal_sei undefined

The explicit GPL option and the explicit libdrm dependency follow
Daniel Golle's 7.1.4 update proposal of this package, which was superseded
by this PR/update.

Assisted-By: Claude Fable 5.1 &lt;noreply@anthropic.com&gt;
Signed-off-by: Mirko Vogt &lt;mirko-openwrt@nanl.de&gt;
</content>
</entry>
<entry>
<title>ffmpeg: document BUILD_PATENTED in package description</title>
<updated>2026-03-22T12:35:19Z</updated>
<author>
<name>Wei-Ting Yang</name>
</author>
<published>2026-03-05T11:51:52Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=3132319ea4cd8badd034aa187a3091986a51d7af'/>
<id>urn:sha1:3132319ea4cd8badd034aa187a3091986a51d7af</id>
<content type='text'>
Add a note indicating that patented codecs and technologies are
available when CONFIG_BUILD_PATENTED=y.

Signed-off-by: Wei-Ting Yang &lt;williamatcg@gmail.com&gt;
</content>
</entry>
<entry>
<title>ffmpeg: update to 6.1.4</title>
<updated>2026-02-02T23:51:19Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2026-01-30T05:26:43Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=00f5b1531161499287a0cd236565efaa8d464b24'/>
<id>urn:sha1:00f5b1531161499287a0cd236565efaa8d464b24</id>
<content type='text'>
Remove warning disable. The issue was fixed in 7.1 and backported to
6.1.3

Remove atrac3 from patented list. It's no longer true and is already in
the non patented list.

Add missing upstream patch in 6.1.4 to fix x86 build.

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
</content>
</entry>
<entry>
<title>treewide: fix spelling and grammar in Makefiles</title>
<updated>2025-12-31T07:12:36Z</updated>
<author>
<name>George Sapkin</name>
</author>
<published>2025-12-26T04:26:18Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=de64f871b0f00b885039997eb46f914bdac687a5'/>
<id>urn:sha1:de64f871b0f00b885039997eb46f914bdac687a5</id>
<content type='text'>
Fix spelling and grammar in package definitions, configs, comments and
other strings.

Signed-off-by: George Sapkin &lt;george@sapk.in&gt;
</content>
</entry>
</feed>
