Commit Graph
1111 Commits
Author SHA1 Message Date
Daniel Golle 3e04fee45f gst1-rtsp-server: add package
Package the RTSP server library and its test-launch example, and add a
procd service that discovers cameras and hardware encoders on video4linux
and media hotplug events, keeps them in UCI, and runs one capture
pipeline per camera with the capture, ISP output selection and
hardware encoding of all its enabled streams. Encoded frames reach one
RTSP server instance per stream over Unix FD sockets. Generated streams
use the sensor-native size, the first hardware codec and a constant
bitrate derived from the output size and frame rate; a camera section
can carry a complete pipeline override. The negotiated stream
parameters are published for an ONVIF server.

The server library allocates the data list messages of a frame on the
heap, as a 4K frame overflows musl's thread stack otherwise.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-11-01 11:15:19 +00:00
Daniel Golle 9a103e4a1a gst1-plugins-good: count the dmabuf offset in bytesused
Importing a dmabuf memory that starts at an offset, the chroma plane of
a single-dmabuf NV12 frame into a two-plane NM12 encoder queue, fails at
QBUF with EINVAL: the allocator rewrites bytesused from the memory size
alone and the kernel sees data_offset above bytesused. Add the memory
offset back at QBUF, as the import already did.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-11-01 11:15:19 +00:00
Daniel Golle 884d95a11e gst1-plugins-bad: package Unix FD transport
Expose unixfdsink and unixfdsrc as an optional plugin package for
sharing encoded streams and DMA buffer descriptors between consumers.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-11-01 11:15:19 +00:00
Daniel Golle 1f346aaed6 gst1-plugins-base: heap-allocate the RTSP message arrays
The RTSP connection and watch code allocates the serialised messages,
the output vectors and the map infos of a send on the stack, sized by
the number of RTP packets. A 4K H.265 frame is over a thousand packets
and needs about 250 KB, so on musl's 128 KiB thread stacks the server's
send thread runs past the guard page into the heap and the server
crashes at PLAY. Move the arrays of the four send paths to the heap.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-11-01 11:15:19 +00:00
Daniel Golle 8fa81b008f gst1-plugins-base: package the device monitor
Package gst-device-monitor for camera capability discovery and track
the tool selection in the build configuration.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-11-01 11:15:19 +00:00
Daniel Golle 87849fccd6 gstreamer1: post downloadbuffer buffering messages in order
downloadbuffer computes each BUFFERING message under its lock but posts
it after unlocking, from both the upstream and the downstream streaming
thread, so a stale message below 100% can reach the application after
the 100% one. The element posts nothing further after that, and a
playbin3 application such as WPE WebKit keeps waiting for buffering that
has finished and never starts playback. Add a patch that serialises
posting the way queue2 does.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-10-31 11:36:44 +00:00
Daniel Golle 184f216214 gst1-plugins-bad: fix v4l2codecs decode error on flush
A flush that arrives while a stateless V4L2 decoder is mid-frame makes
the h264, h265 and mpeg2 decoders turn GST_FLOW_FLUSHING from the output
buffer pool into a fatal "Failed to decode data". Every flushing seek
risks it, and a looping video on RK3588 stops with a decode error. Add
a patch that returns the flushing flow up through end_picture() and
decode_slice() so the base class handles it.

Fixes: d86f866af1 ("gst1-plugins-bad: update to 1.17.1")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-10-31 11:36:44 +00:00
Daniel Golle 8da0642aa4 gst1-plugins-bad: make v4l2codecs depend on libgudev
The v4l2codecs plugin links against libgudev-1.0, which meson requires
whenever the plugin is enabled, yet gst1-mod-v4l2codecs neither depends
on libgudev nor lists it as a build dependency. The plugin builds only
when libgudev happens to be staged first and loads only on images that
ship libgudev for other reasons.

Fixes: d86f866af1 ("gst1-plugins-bad: update to 1.17.1")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-10-31 11:36:44 +00:00
Daniel Golle 0997e9fae6 gst1-plugins-bad: disable auto-detected meson features
Meson feature options the Makefile does not pin stay at their auto
default and get switched on by whatever happens to sit in the staging
directory: pangocairo enables analyticsoverlay, libva the va plugin,
openssl the aes plugin. None of them is a declared dependency, so the
built set depends on build order, and a library being re-staged while
gst-plugins-bad compiles breaks the build, as pango did with the
analyticsoverlay plugin.

Set auto_features=disabled so only explicitly enabled features are
built, and pin nls to enabled as the other GStreamer packages do.

Fixes: e7f535c3f6 ("gst1-plugins-bad: update to 1.26.2")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-10-31 11:36:44 +00:00
Daniel Golle 44979b2a0f gst1-plugins-good: package the adaptivedemux2 plugin
The adaptive streaming demuxers dashdemux2, hlsdemux2 and mssdemux2 were
built whenever libxml2 happened to be staged, but never packaged, so no
image carried them. Select the plugin explicitly and package it, with
libsoup 3, which it loads at run time, as a dependency. Pin hls-crypto to
nettle, the library the package depends on, so that meson fails when
nettle is missing.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-10-31 11:36:44 +00:00
Daniel Golle 0f922744ab libcamera: add the RV1126 ISPP path to the rkisp2 pipeline
The RV1126 ISP 2.0 feeds its post-processor, the ISPP, through an
in-kernel buffer pool, and the ISPP carries the main output, a scaler
output and its own parameters node. Drive the ISPP from the rkisp2
pipeline handler when its media device exists: the ISPP main output
becomes the stream's capture node, the first scaler output is offered
as a second stream, the IPA fills the ISPP parameters alongside the
ISP parameters, and the delayed sensor controls follow the measured
frame-start lag of the pool pipe. Stream strides requested by DMA
consumers, such as the hardware encoders behind the GStreamer source,
are honoured on the way.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-10-31 10:54:37 +00:00
Vladimir Ermakov 770e4a0301 go2rtc: update to 1.9.15
- drop unneded patches.
- changelog: https://github.com/AlexxIT/go2rtc/releases/tag/v1.9.15

Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
2026-10-26 16:08:47 +02:00
George Sapkin ebc901d05e yt-dlp: bump to 2026.10.21
Changes: https://github.com/yt-dlp/yt-dlp/releases/tag/2026.10.21
Signed-off-by: George Sapkin <george@sapk.in>
2026-10-23 18:30:17 +03:00
Daniel Golle 3b7cdf03a6 libcamera: add package
libcamera is a userspace camera stack with pipeline handlers for ISPs
and image sources, and image processing algorithms that run in loadable
IPA modules. Package the library, the libcamerasrc GStreamer element,
the V4L2 compatibility layer with libcamerify, the cam tool and one
package per IPA module with its tuning data (IPU3, Mali-C55, rkisp1,
rkisp2, Raspberry Pi VC4 and the software ISP) as separate packages.
All pipeline handlers except the Raspberry Pi PiSP, which needs libpisp,
and the vimc and virtual test handlers are built. Devices are enumerated
through libudev-zero.

The package carries patches in three groups, by number:

 - 001-067: backports from libcamera master that the rkisp2 pipeline
   handler builds on, among them the V4L2Stats, AwbAlgorithm,
   CcmAlgorithm and LscAlgorithm rework of libipa and the DelayedControls
   changes;
 - 100-119: the rkisp2 pipeline handler and IPA of Paul Elder, which are
   still under review;
 - 200-215: a build option to leave IPA modules unsigned, fixes for the
   rkisp2 pipeline handler, the IPA proxy, the GStreamer element and the
   AGC, and the support for the RV1126 with the IMX415.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-10-19 10:08:09 +01:00
George Sapkin c6346c7ccd yt-dlp: bump to 2026.08.19
Changes: https://github.com/yt-dlp/yt-dlp/releases/tag/2026.08.19
Signed-off-by: George Sapkin <george@sapk.in>
2026-10-15 02:01:48 +03:00
Josef Schlehofer d4a141e3f7 ffmpeg: disable dcbzl and ppc4xx on e500 cores
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 <pepe.schlehofer@gmail.com>
2026-10-14 01:12:47 +02:00
Alexandru Ardelean 2a65a9586e graphicsmagick: update to 1.3.49
Security release: CVE-2025-55154 (integer overflow in MNG MAGN chunk
handling), CVE-2026-56379 (command injection via crafted SVG drawing
commands) and CVE-2026-103118 (stack exhaustion in the WPG reader),
plus heap buffer over-reads in GenerateIPTCAttribute() and missing
overflow detection in the PICT decoder.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-10-13 16:28:36 +03:00
Alexandru Ardelean 493b2ae11c motion: update to 4.7.1
4.5.0 uses three interfaces FFmpeg 7 removed; upstream guards them since
4.6. Drop 010-no-po-man.patch and switch PKG_FIXUP to gettext-version,
which runs autopoint and so supplies the po/Makefile.in.in the patch was
working around. Drop --without-mmal, which 4.7.1 no longer has.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-10-02 20:30:36 +03:00
Marcin Maj c637ea92e3 minidlna: fix build with FFmpeg 7 and later
FFmpeg 7 removed AVCodecParameters.channels, causing MiniDLNA 1.3.3
to fail to compile when reading audio channel counts.

Add an OpenWrt package patch to use ch_layout.nb_channels with
libavcodec 61 and later. Retain the existing channels field access
for older versions.

Signed-off-by: Marcin Maj <marcinmajsc@gmail.com>
2026-10-01 19:44:58 +03:00
Daniel Golle a09a32e9bf tvheadend: depend on dvb-support for the dvb group
The package allocates a group named dvb with a dynamic id, while
openwrt.git's dvb-support package allocates it as gid 49 together with
the hotplug rules that put the DVB adapter nodes into it. Two different
ids for one group name make the metadata scan fail.

Depend on dvb-support and pin the group to the same id.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-29 18:14:57 +01:00
Rosen Penev 059ba7d4fd minisatip: stop gating libdvbcsa on BUILD_PATENTED
libdvbcsa no longer requires BUILD_PATENTED, so enable dvbcsa
unconditionally and drop the BUILD_PATENTED dependency and config
toggle.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2026-09-29 08:56:17 +02:00
Rosen Penev 974cc0daf5 tvheadend: stop gating CSA support on BUILD_PATENTED
libdvbcsa no longer requires BUILD_PATENTED, so drop the gate from the
libdvbcsa dependency and the configure args. Software descrambling is
now enabled via TVHEADEND_CSA alone.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2026-09-29 08:56:17 +02:00
Josef Schlehofer 0d7ca569eb tvheadend: skip the DVB permission fix without adapters
start_service() runs chgrp and chmod on /dev/dvb/*. Without a DVB
adapter the pattern does not match, so every start, including the one
during a package upgrade, prints

    chgrp: /dev/dvb/*: No such file or directory
    chmod: /dev/dvb/*: No such file or directory

Only touch the entries that exist. The fix itself is still needed for
adapters that were plugged in before the package was installed, as no
hotplug event sets their group then.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2026-09-28 16:21:34 +02:00
Josef Schlehofer 3726fde8fb tvheadend: update to 2026-09-24
Update to git master 547f8bfa with new web UI.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2026-09-28 16:21:34 +02:00
Josef Schlehofer 4acd6e13fd tvheadend: handle DVB device nodes on dvb hotplug events
The DVB device nodes are created after the USB hotplug event, so the
existing USB hotplug script may run before the nodes exist. This leaves
newly connected tuners owned by root:root 0600 and inaccessible to
tvheadend.

Handle DVB hotplug events instead. On add, fix the group ownership and
permissions after procd creates the node. On remove, remove the empty
adapter directory so tvheadend can detect that the adapter disappeared.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2026-09-23 15:02:57 +02:00
Alexandru Ardelean 017888a5ca gst1-plugins-base: re-enable the NEON audio resampler on 32-bit ARM
The NEON audio resampler has been compiled out of every 32-bit ARM build
since 1.28. Its inline asm advances pointers with add.w, a Thumb-2 only
mnemonic that gas rejects in ARM (A32) state, which is how OpenWrt builds
ARM. The same add.w sits in the meson probe that gates HAVE_ARM_NEON, so
the probe fails first and hides the broken asm behind the generic C path.

Backport the upstream fix, which selects the operand form per ISA and
drops add.w from the probe. Thumb-2 code generation is unchanged.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-09-20 13:59:46 +03:00
W. Michael Petullo 5405dd6ff2 gst1-libav: update to 1.28.7
Upstream list of changes is available at
https://gstreamer.freedesktop.org/releases/1.28/#1.28.7.

Drop 001-gst-libav-Fix-build-failure-with-FFmpeg-9.0.patch. The fix it
carries is already in 1.28.7, so quilt refuses to apply it ("can be
reverse-applied") and the build fails before it starts.

Signed-off-by: W. Michael Petullo <mike@flyn.org>
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-09-20 13:59:46 +03:00
W. Michael Petullo 393870af73 gst1-plugins-ugly: update to 1.28.7
Upstream list of changes is available at
https://gstreamer.freedesktop.org/releases/1.28/#1.28.7.

Signed-off-by: W. Michael Petullo <mike@flyn.org>
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-09-20 13:59:46 +03:00
W. Michael Petullo 2a6e651c50 gst1-plugins-bad: update to 1.28.7
Upstream list of changes is available at
https://gstreamer.freedesktop.org/releases/1.28/#1.28.7.

The y4m plugin is gone from gst-plugins-bad in 1.28: its y4mdec element
moved into the gst-plugins-good y4m plugin, and neither gst/y4m nor the
y4m meson option exists here any more. Drop the -Dy4m= argument, which
meson would now reject as unknown, together with the gst1-mod-y4mdec
package. The element stays available as gst1-mod-y4m from
gst-plugins-good.

Signed-off-by: W. Michael Petullo <mike@flyn.org>
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-09-20 13:59:46 +03:00
Alexandru Ardelean 2ed4d547ff gst1-plugins-good: add the y4m plugin package
In 1.28 upstream merged the y4mdec element from gst-plugins-bad into the
gst-plugins-good y4m plugin, which now registers both y4mdec and y4menc
from a single libgsty4m. The Makefile has passed -Dy4m= since 1.16.2,
but the package line stayed commented out, so the plugin was never
built.

Enable it, so the y4mdec element dropped from gst-plugins-bad in this
series stays available. Anyone who selected gst1-mod-y4mdec needs to
select gst1-mod-y4m instead.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-09-20 13:59:46 +03:00
W. Michael Petullo b518cab35a gst1-plugins-good: update to 1.28.7
Upstream list of changes is available at
https://gstreamer.freedesktop.org/releases/1.28/#1.28.7.

Signed-off-by: W. Michael Petullo <mike@flyn.org>
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-09-20 13:59:46 +03:00
W. Michael Petullo 2cfc0aae49 gst1-plugins-base: update to 1.28.7
Upstream list of changes is available at
https://gstreamer.freedesktop.org/releases/1.28/#1.28.7.

Signed-off-by: W. Michael Petullo <mike@flyn.org>
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-09-20 13:59:46 +03:00
W. Michael Petullo 20d0ffe4d0 gstreamer1: update to 1.28.7
Upstream list of changes is available at
https://gstreamer.freedesktop.org/releases/1.28/#1.28.7.

Signed-off-by: W. Michael Petullo <mike@flyn.org>
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-09-20 13:59:46 +03:00
W. Michael Petullo d0106a08c9 grilo-plugins: update to 0.3.18
Remove reference to removed opensubtitles plugin.

Signed-off-by: W. Michael Petullo <mike@flyn.org>
2026-09-18 19:29:56 +03:00
Daniel Golle 66c7c55e4a gst1-libav: fix build with FFmpeg 9
libavcodec 63 does not define the V308, V408 and V410 codec IDs that
the video decoder and encoder registration list among the quasi
codecs to skip, so both files fail to compile. Backport the upstream
change that guards those entries by libavcodec major version.

Fixes: 78521023 ("ffmpeg: update to 9.0.1")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-18 16:44:26 +01:00
Daniel Golle 763e45c890 ustreamer: use ATOMIC64_DEPENDS
ustreamer and ustreamer-dump import 64-bit atomics from libatomic where
the compiler cannot inline them, but the build links the library on
every architecture. ATOMIC64_DEPENDS restricts the dependency to the
targets that need it; --as-needed drops the unused library elsewhere.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-16 16:35:19 +01:00
Daniel Golle 4b24b41e7a gstreamer1: use ATOMIC64_DEPENDS
The open-coded architecture list pulls libatomic onto ARMv6K and ARMv7
targets although they inline 64-bit atomics. ATOMIC64_DEPENDS covers
exactly the targets that need it.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-09-16 16:35:19 +01:00
Mirko Vogt 87456bddf4 ffmpeg: change PKG_MAINTAINER
- 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 <mirko-openwrt@nanl.de>
2026-09-15 22:40:22 +02:00
Mirko Vogt e1a07d05b9 ffmpeg: add V4L2 hardware decoding patches from LibreELEC
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 <mirko-openwrt@nanl.de>
2026-09-15 22:40:22 +02:00
Mirko Vogt 83f634c4b3 ffmpeg: add LibreELEC's Kodi compatibility patches
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 <mirko-openwrt@nanl.de>
2026-09-15 22:40:22 +02:00
Mirko Vogt 87a92bf189 ffmpeg: re-add libpostproc as a source plugin
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 <mirko-openwrt@nanl.de>
2026-09-15 22:40:22 +02:00
Mirko Vogt 7852102303 ffmpeg: update to 9.0.1
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 <= 1.30 and >= 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 <noreply@anthropic.com>
Signed-off-by: Mirko Vogt <mirko-openwrt@nanl.de>
2026-09-15 22:40:22 +02:00
Josef Schlehofer ef7283f311 tvheadend: drop the handwritten version override
The handwritten debian/changelog is only used to override the version
reported by support/version, but it is unnecessary and causes a version
mismatch:

- Build/Prepare feeds the raw git hash into debian/changelog, so the
  binary reports ddb984f4c17f4a26fd34f3e1b24e3323f9641b75~openwrt1
  instead of the package version 2026.08.17~ddb984f4.
- The CI package test then fails because it cannot find the package
  version in the output of any installed executable.
- Without .git, debian/changelog or rpm/version, support/version falls
  back to the source directory name.
- OpenWrt already names the source directory tvheadend-$(PKG_VERSION),
  so the binary correctly reports 2026.08.17~ddb984f4 without any
  override.

Alpine uses rpm/version in the same way and does not encode its own
package release into the version either.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2026-09-10 08:53:25 +02:00
Josef Schlehofer f2c8300e25 tvheadend: require GNU libiconv and drop the iconv self-test patch
tvheadend has no transliteration of its own.  It asks iconv for
"<charset>//TRANSLIT//IGNORE", a GNU extension that musl does not
implement.  Converting "ŽluťoučkýKůň" to ASCII on mpc85xx/p2020
(Turris 1.x), musl 1.2.6:

    charset                   musl             GNU libiconv
    ASCII//TRANSLIT//IGNORE   EINVAL           "Zlutouck'yKun"
    ASCII//TRANSLIT           EINVAL           "Zlutouck'yKun"
    ASCII                     "*lu*ou*k*K**"   EILSEQ

050-iconv-test-continue.patch removed the abort() from the startup
self-test that reports this, so the package could be built against
musl's iconv.  That silenced the check without fixing anything:
intlconv_utf8() still returns -EIO, so cleanup_filename() in
src/dvr/dvr_rec.c cannot build a recording file name and
pvr_generate_filename() fails.  The charset cannot be avoided either,
because intlconv_filesystem_charset() returns "ASCII" unless $LANG
names a UTF-8 locale, which OpenWrt does not set by default.

Depend on libiconv-full instead of $(ICONV_DEPENDS), which pulls it in
only when BUILD_NLS is set, and point the compiler at its staging prefix
when nls.mk has not already done so.  The binary then links against
libiconv.so.2, the self-test passes and the patch can be dropped.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2026-09-10 08:53:25 +02:00
Josef Schlehofer 4f1c6984a2 tvheadend: update to 2026-08-17
Update to git master ddb984f4, 124 commits on from the previously
packaged 395afb85. Most of that is web UI work and translation updates,
with smaller fixes in the build system, mpegts and dvr code.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2026-09-10 08:53:25 +02:00
Alexandru Ardelean 8e89b97254 imagemagick: add test-version.sh version override
The binaries print the version as X.Y.Z-R while PKG_VERSION is X.Y.Z.R,
so the generic per-executable version probe never matches and the job
fails. Add a test-version.sh override that greps for the dashed form,
mirroring the conversion the runtime test.sh already does.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-08-07 11:27:13 +03:00
Alexandru Ardelean 8d4f64dc9f graphicsmagick: expand test.sh coverage
Exercise more gm subcommands and codecs on top of the existing PNG/JPEG,
resize, pixel, draw and composite checks: TIFF round-trip, PPM and GIF
encoders, crop, 90-degree rotate, horizontal append and in-place mogrify.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-08-07 11:27:13 +03:00
Alexandru Ardelean b0536d3ff6 imagemagick: expand test.sh coverage
Exercise more of the toolchain on top of the existing PNG/JPEG/BMP,
resize, pixel-sampling, grayscale and composite checks: TIFF round-trip,
PPM and GIF encoders, crop, 90-degree rotate, horizontal append, the IM7
'magick' driver and in-place mogrify.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-08-07 11:27:13 +03:00
Alexandru Ardelean 98243ee6ef graphicsmagick: update to 1.3.48
Update to the latest upstream stable release.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-08-07 11:27:13 +03:00
Alexandru Ardelean 9c2eb543eb imagemagick: update to 7.1.2.29
Update to the latest upstream stable release. Also fix PKG_SOURCE_URL:
imagemagick.org/archive no longer serves the release tarballs (404),
they live under download.imagemagick.org/archive/releases now.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-08-07 11:27:13 +03:00