v1.9.3

bluenviron/mediamtxv1.9.3Oct 20, 2024by github-actions[bot]

AI Summary

Fixes for version reporting, pprof service restoration, and H264 performance/security improvements including handling of malicious SPS data.

Key Highlights

  • Fix version reporting with --version
  • Restore pprof service
  • Fix memory filling up in case of malicious SPS
  • Improve H264 hardware encoder performance

New Features

  • Restore pprof service
  • Fix setting version in Arch Linux package
  • Improve performance of H264 hardware encoder

Full Release Notes

## Fixes and improvements

General

* fix version reporting with --version (https://github.com/bluenviron/mediamtx/issues/3846) (https://github.com/bluenviron/mediamtx/issues/3847)
* make better use of Gin middleware system (https://github.com/bluenviron/mediamtx/issues/3849)
* pprof: fix required authentication action (https://github.com/bluenviron/mediamtx/issues/3850)
* restore pprof service (https://github.com/bluenviron/mediamtx/issues/3848) (https://github.com/bluenviron/mediamtx/issues/3851)
* fix setting version in Arch Linux package (https://github.com/bluenviron/mediamtx/issues/3852)
* warn instead of exiting when it is not possible to get version from git (https://github.com/bluenviron/mediamtx/issues/3857)
* fix wrong -dirty prefix in version (https://github.com/bluenviron/mediamtx/issues/3869)
* h264: improve performance of SPS parser (https://github.com/bluenviron/mediacommon/issues/152)
* h264: fix memory filling up in case of malicious SPS (https://github.com/bluenviron/mediacommon/issues/153). When CpbCntMinus1 is set to unreasonably high values, the RAM fills up.

RTSP

* support H264 with payload type 35 from Bosh Cameras (https://github.com/bluenviron/gortsplib/issues/632)
* server: fix error message (https://github.com/bluenviron/gortsplib/issues/634). Return error 'can't setup medias with different protocols' when trying to use UDP and TCP in sequence.

RPI Camera

* fix using software encoder when frame stride is different from frame width (https://github.com/bluenviron/mediamtx-rpicamera/issues/18)
* improve performance of H264 hardware encoder (https://github.com/bluenviron/mediamtx-rpicamera/issues/25). Performance is increased by sharing structs between multiple API calls.
* improve performace of H264 hardware encoder (https://github.com/bluenviron/mediamtx-rpicamera/issues/26). remove call to poll()
* fix segfault when using invalid ROI or AfWindow parameters (https://github.com/bluenviron/mediamtx-rpicamera/issues/27)

Dependencies

* bump hls.js to v1.5.17 (https://github.com/bluenviron/mediamtx/issues/3885)