Skip to content

Releases: bluenviron/mediamtx

v0.20.1

25 Oct 12:26
Compare
Choose a tag to compare

New minor features

  • HLS source

    • the client has been improved in order to support a wider variety of external HLS streams, in particular: streams with fMP4 segments, streams with audio in separate playlist, streams that use EXT-X-BYTERANGE (#1179) (#1094)
  • Raspberry Pi Camera

    • many camera parameters have been added to the configuration file: rpiCameraHFlip, rpiCameraVFlip, rpiCameraBrightness, rpiCameraContrast, rpiCameraSaturation, rpiCameraSharpness, rpiCameraExposure, rpiCameraAWB, rpiCameraDenoise, rpiCameraShutter, rpiCameraMetering, rpiCameraGain, rpiCameraEV, rpiCameraROI, rpiCameraTuningFile, rpiCameraMode (#1198) (#1111)

Fixes and improvements

  • General

    • Fix reading H264 streams that uses Annex-B encoding with a variable delimiter (bluenviron/gortsplib@b3c70f5)
    • prepend SPS and PPS once when remuxing H264 stream. This allows to support H264 streams that have multiple IDR NALUs in the same group (8aa719e)
    • impose a limit on the number of H264 NALUs during Annex-B and AVCC unmarshaling (bluenviron/gortsplib@e97d290)
  • RTSP server

    • send RTCP sender reports to TCP clients too. This allows Nvidia Deepstream to compute the NTP timestamp of frames (bluenviron/gortsplib@0cfbb1f)
    • when a H264 track has no SPS / PPS yet, do not insert a empty sprop-parameter-sets inside the SPS (bluenviron/gortsplib#129)
  • RTSP source

    • support cameras that sends invalid RTCP packets with TCP (#1085)
    • support cameras with invalid SSRC in transport header (#1118)
  • HLS source

    • in case of live feeds, playback now starts from the end of the stream (#1179)
    • variants with unsupported codecs are now skipped (#1179)
  • HLS Muxer

    • use segment IDs as segment names when hlsVariant is mpegts, this prevents conflicts that were previously caused by the fact that the timestamp was used as segment name (42b6e1f)
    • add WWW-Authenticate header when external authentication is enabled (1e788f8)
    • change m3u8 Content-Type to application/x-mpegURL (680b348)
    • print only tracks that are effectively being converted (c9de689)
    • fix compatibility with grafov/m3u8 (dfef383)
  • Raspberry Pi Camera

    • change default resolution to 1920x1080 (532592c)
    • use exact frame timestamps (4f6121b)
  • API

    • always encode timestamps wth RFC3339 (#1093)
    • mark RTMPS connections as rtmpsConns instead of rtmpConns (#1099)
  • apidocs

    • add missing methods rtmpsconns/*(3e529f4)

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