Skip to content

Releases: bluenviron/mediamtx

v0.20.0

16 Aug 16:54
Compare
Choose a tag to compare

New major features

  • Add native support for the raspberry Pi camera. Please take a look at the README in order to enable this feature (#1057)
  • Support the RTMPS protocol (#1089)
  • API: add "created" field to RTSP sessions, RTMP connections, HLS muxers (092a2be)
  • API: add published track list to /v1/paths/list (101ea25)

Fixes and improvements

  • General: bump golang to 1.18, node to 16 (8267f4c)
  • General: print track codecs into logs (cb8aec8)
  • General: fix deadlock when sourceOnDemand is true and source exits (f5a031d)
  • General: support HE-AAC v1 and HE-AAC v2 tracks (#1068)
  • API: return static sources in paths/list even if sourceOnDemand is true (7067c02)
  • RTSP server: Return 501 and keep connection open in case of unhandled methods (#1066)
  • RTSP server: fix freeze caused by race condition (bluenviron/gortsplib@8883050)
  • RTMP server / source: improve performance. Reuse existing structs instead of allocating them during every read() (0db2d3e)
  • RTMP server: set right command ID when replying to a play request (a19a20a)
  • RTMP server: fix reading metadata from onMetadata when there's no audio (4990e98)
  • RTMP server: stop inserting a AV_SEQHDR message before every IDR (51e0bbd)

v0.19.3

24 Jul 15:27
Compare
Choose a tag to compare

Fixes and improvements

  • General: print log to stdout instead of stderr (#1042)
  • General: use more efficient bit reader / writer
  • General: prefer POC method over SEI method for extracting H264 DTS (bluenviron/gortsplib@793cea6)
  • RTSP server / source: implement packet reordering for UDP / Multicast transports (bluenviron/gortsplib#132)
  • RTSP server / source: support streams that encode NALUs into Annex-B (#1029)
  • RTSP server / source: accept RTP/H264 packets even if the server is unable to parse them (#1049)
  • RTSP server / source: add limit on nalus per group (bluenviron/gortsplib@e3c9f0c)
  • RTSP source: avoid sending/receiving invalid packet when reading with multicast (bluenviron/gortsplib@fb39087)
  • RTSP source: support ADTS-encoded, fragmented AUs (bluenviron/gortsplib@570be5c)
  • RTSP source: fix RTSPS default port (bluenviron/gortsplib@36c6d0b)
  • RTMP server / source: rewrite implementation of connections from scratch. This slightly improve efficiency and allows to rapidly fix eventual bugs (#1047)
  • RTMP server: fix rtmp -> rtsp audio conversion (822a896)
  • HLS muxer: create only 7 initial gaps (#999)
  • HLS muxer: when hlsAlwaysRemux is on, automatically recreate muxers in case of errors 8a4743f

v0.19.2

24 Jun 18:41
Compare
Choose a tag to compare

Fixes and improvements

  • General: fix extracting DTS from H264 streams encoded with nvenc (#989)
  • General: fix bug that caused on-demand commands to be closed after 10secs (#1000)
  • General: replace bit reader / writer with a better implementation, improving performance
  • RTSP server: correctly close sessions in case of errors during SETUP, preventing a memory leak (#965)
  • RTSP server: server: fix crash that happens when a reader tries to setup a closed stream (#866)
  • RTSP server / proxy: improve handling of RTP/H264 packets, in order to heal invalid packets wherever they come from
  • RTSP proxy: fix parsing of transport headers with empty source (#986)
  • RTSP proxy: support TP-Link application tracks (#990)
  • RTMP server: fix compatibility with some DJI drones (#928)
  • HLS muxer: compensate latency by using the hls.js parameter maxLiveSyncPlaybackRate inside the default player. This further decreases decreases LL-HLS latency and prevents it from increasing over time (#972)
  • HLS muxer: return 404 instead of 500 when a stream is not found
  • HLS muxer: show real client IPs when behind a proxy. A new parameter hlsTrustedProxies has been added in order to set trusted proxies IPs (#955)

v0.19.1

07 Jun 19:31
Compare
Choose a tag to compare

Fixes and improvements

  • RTSP source: Persist credentials on source redirections (bluenviron/gortsplib#124)
  • RTSP server: fix RTCP report in case of non-H264 tracks
  • HLS muxer: fix error "wrong nal_ref_idc" (#966)
  • HLS muxer, RTMP server: extract DTS from NALUs instead of estimating it
  • HLS muxer: improve performance, decrease memory consumption
  • HLS muxer: cache content of init.mp4
  • HLS muxer: do not use EXT-X-GAP with fmp4 variant

v0.19.0

31 May 17:30
Compare
Choose a tag to compare

New major features

  • Support Low-Latency HLS (#938) (#556) (#641) - LL-HLS is a recently-introduced HLS variant that allows to significantly decrease latency when viewing a stream through the browser. It is disabled by default, to enable it you have to follow instructions in the README. Please be aware that:

    • it requires a TLS/HTTPS certificate;
    • it greatly increases the number of requests/responses exchanged between clients and the server - therefore, it's much heavier than standard HLS in terms of client requirements (not server requirements, since tests showed that generating MP4 segments consumes much less CPU than MPEG-TS segments);
    • although this version has been tested on ~500 cameras from various vendors, there could still be compatibility problems with some streams. If you have problems, first try to increase the hlsPartDuration parameter, then feel free to open an issue.

    other than that, this server is now is one of the few (if not the only one) that allows to generate LL-HLS without re-encoding the stream, therefore enjoy!

v0.18.5

28 May 11:58
Compare
Choose a tag to compare

Fixes and improvements

  • General: fix regression that caused a source to be closed after 10secs when sourceOnDemand is yes (#949)
  • RTSP server / source: support SDPs with TIAS bandwidths (#948)

v0.18.4

19 May 09:37
Compare
Choose a tag to compare

Fixes and improvements

  • General: fix rtmp -> rtsp audio conversion (#932)
  • RTSP server: improve performance when reading with TCP
  • RTSP server: fix wrong RTP-Info header that caused error messages in FFmpeg after 13h14m of reading (#922)
  • RTSP source: support cameras that provide base URL inside control attribute (#683)
  • RTMP server: fix bias error in AAC timestamp
  • HLS client: improve video / audio sync

v0.18.3

10 May 15:39
Compare
Choose a tag to compare

Fixes and improvements

  • General: fix panic that happens when publishing to a path with source = redirect (#933)
  • General: fix bias error in AAC timestamp
  • RTSP source: restore support for cameras with percent sign in password
  • HLS muxer: prefer hls.js over native HLS

v0.18.2

02 May 17:32
Compare
Choose a tag to compare

Fixes and improvements

  • General: add limit on AU (AAC units) and NALU (H264 units) sizes in order to prevent RAM exhaustion
  • RTSP source: support AUs wrapped inside ADTS (#855)
  • RTSP source: fix timeout that happens when there's a UDP->TCP switch and Content-Base contains an absolute URL (#897)
  • HLS muxer: fix PCR insertion when stream is audio only
  • HLS muxer: update primary playlist in case SPS/PPS changed
  • HLS muxer: remove progressive flag; add liveSyncDurationCount, liveMaxLatencyDurationCount to hls.js
  • HLS muxer: upgrade hls.js

v0.18.1

24 Apr 09:40
Compare
Choose a tag to compare

Fixes and improvements

  • RTSP server: change default RTSPS port (#867)
  • RTSP server: fix reading with ffplay and stateless ipv6
  • RTSP server: fix reading with multicast when host is macOS (#895)
  • RTSP source: support AAC tracks with custom sizelength, indexlength and indexdeltalength
  • RTSP source: fix parsing of transport header with dahua rtsp server (bluenviron/gortsplib#121)
  • HLS muxer: add EXT-X-INDEPENDENT-SEGMENTS tag
  • HLS muxer: do not increase version number of MPEG-TS tables unless there's a reason (asticode/go-astits#38)
  • HLS muxer: fix crash in case of null SPS
  • HLS muxer: add EXT-X-VERSION to primary playlist