mediamtx v1.21.3

v1.21.3
Added 1
  • Outbound HTTP requests are logged at debug log level, in the same way as inbound HTTP requests
Changed 3
  • Documented link-local IPv6 zone encoding
  • Default recordPath now includes a timezone and a warning is shown when it is not present behavior changed · inferred, marked in the notes below
  • Documentation suggests running MediaMTX in a writable folder, /etc/mediamtx in Docker and /usr/local/etc/mediamtx on host Linux
Fixed 10
  • Restored support for HTTP2 requests by advertising the HTTP2 protocol in TLS ALPN again
  • Forward destinations are matched by configuration on reload so adding, removing or reordering destinations only starts or stops the affected ones
  • Forward destinations are closed before new ones are created when configuration changes, avoiding double publishers
  • Fixed a race condition during logger recreation by safely reloading the logger configuration without destroying it
  • Recorder normalizes incoming timestamps to the local time zone before using them in record segment names
  • RTMP reader output and fMP4 recorder treat H264 recovery point SEI as random access points in addition to IDR frames

5 changes to check, marked in the notes below

From mediamtx

Fixes and improvements

General

API

Media-Over-QUIC

RTMP

HLS

  • fix MPEG-TS variant failing on streams with Opus tracks (https://github.com/bluenviron/mediamtx/issues/6387) With hlsVariant set to mpegts, a stream that carries an Opus track, for instance H264 and Opus published through WebRTC, could not be read through HLS. The muxer failed to start with "the MPEG-TS variant of HLS supports MPEG-4 Audio only" and playlist requests got a 500 error, so the video was unreadable too, while other tracks that HLS cannot carry are skipped with a warning. Skip the audio tracks that are not MPEG-4 Audio when the variant is MPEG-TS, as setupDataTracks already does for KLV tracks. A stream whose only track is such an audio track now returns ErrNoSupportedCodecs instead of failing when the muxer starts.
  • fix MPEG-TS variant failing on streams with several audio tracks (https://github.com/bluenviron/mediamtx/issues/6394) With hlsVariant set to mpegts, a stream that carries two MPEG-4 Audio tracks, for instance H264 and two AAC tracks received through MPEG-TS over SRT, could not be read through HLS. The muxer failed to start with "the MPEG-TS variant of HLS supports a single audio track only" and playlist requests got a 500 error, so the video was unreadable too, while other tracks that HLS cannot carry are skipped with a warning. Skip the MPEG-4 Audio tracks that follow the first one when the variant is MPEG-TS, like the audio tracks of other codecs that this variant cannot carry.
  • muxer: support H264 recovery points (https://github.com/bluenviron/gohlslib/issues/403)
  • muxer: stop silently skipping H264 units without IDR and without non-IDR (https://github.com/bluenviron/gohlslib/issues/405)
  • add AI warning (https://github.com/bluenviron/gohlslib/issues/406)

WebRTC

UDP

  • support interface=all for multicast sources (https://github.com/bluenviron/mediamtx/issues/6253) restore support for listening for UDP multicast packets on all multicast-capable network interfaces. To do so, add the interface=all parameter to the end of a UDP multicast URL when configuring the source.

RPI Camera

Dependencies

  • code.cloudfoundry.org/bytefmt updated from v0.92.0 to v0.95.0
  • github.com/bluenviron/gohlslib/v2 updated from v2.4.6 to v2.4.7
  • github.com/bluenviron/gortmplib updated from v1.0.4 to v1.0.5
  • github.com/bluenviron/mediacommon/v2 updated from v2.9.6 to v2.9.7
  • github.com/gookit/color updated from v1.6.1 to v1.6.3
  • github.com/matthewhartstonge/argon2 updated from v1.6.3 to v1.6.4
  • github.com/pion/ice/v4 updated from v4.4.5 to v4.4.8
  • github.com/pion/webrtc/v4 updated from v4.2.22 to v4.2.24
  • github.com/pires/go-proxyproto updated from v0.15.0 to v0.16.0
  • github.com/quic-go/quic-go updated from v0.63.0 to v0.64.1
  • golang.org/x/crypto updated from v0.57.0 to v0.58.0
  • golang.org/x/sync updated from v0.23.0 to v0.24.0
  • golang.org/x/sys updated from v0.48.0 to v0.49.0
  • golang.org/x/term updated from v0.46.0 to v0.47.0
  • github.com/pion/dtls/v3 updated from v3.1.9 to v3.1.13
  • github.com/pion/sctp updated from v1.11.3 to v1.12.0
  • golang.org/x/net updated from v0.59.0 to v0.61.0
  • golang.org/x/text updated from v0.42.0 to v0.43.0
  • github.com/bluenviron/mediamtx-rpicamera updated from v2.9.0 to v2.9.1
Security

Binaries are compiled from source code by the Release workflow, which is a fully-visible process that prevents any change or external interference in produced artifacts.

Checksums of binaries are also published in a public blockchain by using GitHub Attestations, and they can be verified by running:

ls mediamtx_* | xargs -L1 gh attestation verify --repo bluenviron/mediamtx

You can verify checksums of binaries by downloading checksums.sha256 and running:

cat checksums.sha256 | grep "$(ls mediamtx_*)" | sha256sum --check
View original

Upgraded? How did it go?

Discussion