Commit Graph

2819 Commits

Author SHA1 Message Date
dependabot[bot]
8fe607cb21 build(deps): bump golangci/golangci-lint-action from 8 to 9 (#5176)
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 8 to 9.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v8...v9)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-version: '9'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-11 11:54:29 +01:00
Alessandro Ros
5be9b0eb97 rename variable (#5173) 2025-11-09 22:19:17 +01:00
bluenviron-bot
d4741b7d68 bump golangci-lint to 2.6.1 (#5158) 2025-11-07 21:14:09 +01:00
Troy Ihmels
15ce3671ac update documentation
Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
2025-11-07 21:13:44 +01:00
bluenviron-bot
f235ca5626 bump golangci-lint to 2.6.0 (#5148) 2025-11-02 17:05:36 +01:00
bluenviron-bot
2cd62af900 bump hls.js to v1.6.14 (#5147) 2025-11-02 16:58:58 +01:00
dependabot[bot]
42f5fbd4ad build(deps): bump code.cloudfoundry.org/bytefmt from 0.55.0 to 0.56.0 (#5142)
Bumps [code.cloudfoundry.org/bytefmt](https://github.com/cloudfoundry/bytefmt) from 0.55.0 to 0.56.0.
- [Release notes](https://github.com/cloudfoundry/bytefmt/releases)
- [Commits](https://github.com/cloudfoundry/bytefmt/compare/v0.55.0...v0.56.0)

---
updated-dependencies:
- dependency-name: code.cloudfoundry.org/bytefmt
  dependency-version: 0.56.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-01 20:37:25 +01:00
dependabot[bot]
18bc3edea5 build(deps): bump actions/download-artifact from 5 to 6 (#5139)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 5 to 6.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-01 20:37:11 +01:00
dependabot[bot]
d4e3d5741d build(deps): bump actions/upload-artifact from 4 to 5 (#5141)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-01 20:36:57 +01:00
Alessandro Ros
1ef5db5b3c extend udpReadBufferSize to WebRTC UDP sockets (#5130)
this allows to decrease packet losses without touching system parameters.
2025-10-29 11:45:15 +01:00
Alessandro Ros
adc4a6ceb6 add udpReadBufferSize parameter (#5129)
this allows to set a global UDP read buffer, applied to every UDP socket.
2025-10-29 11:28:22 +01:00
Alessandro Ros
3ae5262510 docs: update (#5125) 2025-10-29 10:51:02 +01:00
KHuynh
ff305425a5 build(deps): bump github.com/asticode/go-astits from v1.13.0 to v1.14.0 (#5134) 2025-10-28 12:21:12 +01:00
Alessandro Ros
2859590544 update workflows (#5131) 2025-10-26 16:46:42 +01:00
Alessandro Ros
c42642ac3c recorder: prevent FMP4 durations from overflowing (#4711) (#5126)
The timestamp difference between two samples was put inside an unsigned
integer, and, when negative, caused an overflow.
2025-10-26 15:52:13 +01:00
bluenviron-bot
4ff80d773b bump mediamtx-rpicamera to v2.5.1 (#5121) v1.15.3 2025-10-21 21:50:28 +02:00
dependabot[bot]
24cd892334 build(deps): bump github.com/bluenviron/gortsplib/v5 from 5.1.0 to 5.1.1 (#5118)
Bumps [github.com/bluenviron/gortsplib/v5](https://github.com/bluenviron/gortsplib) from 5.1.0 to 5.1.1.
- [Commits](https://github.com/bluenviron/gortsplib/compare/v5.1.0...v5.1.1)

---
updated-dependencies:
- dependency-name: github.com/bluenviron/gortsplib/v5
  dependency-version: 5.1.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-21 19:18:59 +02:00
dependabot[bot]
c017824870 build(deps): bump github.com/bluenviron/gortmplib from 0.1.0 to 0.1.1 (#5120)
Bumps [github.com/bluenviron/gortmplib](https://github.com/bluenviron/gortmplib) from 0.1.0 to 0.1.1.
- [Commits](https://github.com/bluenviron/gortmplib/compare/v0.1.0...v0.1.1)

---
updated-dependencies:
- dependency-name: github.com/bluenviron/gortmplib
  dependency-version: 0.1.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-21 19:05:33 +02:00
Alessandro Ros
9e0f033192 docs: update (#5115) 2025-10-21 19:03:02 +02:00
Alessandro Ros
d209454693 rtmp: fix freeze when reading source (#5117)
Tracks were read without deadlines, freezing the server if they are not
present. This patch also allows to close the server immediately during
track reading.
2025-10-21 18:04:18 +02:00
dependabot[bot]
6fcb40775c build(deps): bump code.cloudfoundry.org/bytefmt from 0.54.0 to 0.55.0 (#5092)
---
updated-dependencies:
- dependency-name: code.cloudfoundry.org/bytefmt
  dependency-version: 0.55.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-20 21:01:32 +02:00
dependabot[bot]
f450dc5d43 build(deps): bump github.com/pion/webrtc/v4 from 4.1.4 to 4.1.6 (#5099)
Bumps [github.com/pion/webrtc/v4](https://github.com/pion/webrtc) from 4.1.4 to 4.1.6.
- [Release notes](https://github.com/pion/webrtc/releases)
- [Changelog](https://github.com/pion/webrtc/blob/master/.goreleaser.yml)
- [Commits](https://github.com/pion/webrtc/compare/v4.1.4...v4.1.6)

---
updated-dependencies:
- dependency-name: github.com/pion/webrtc/v4
  dependency-version: 4.1.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-19 12:03:07 +02:00
dependabot[bot]
c90ad0019c build(deps): bump github.com/pion/rtcp from 1.2.15 to 1.2.16 (#5103)
Bumps [github.com/pion/rtcp](https://github.com/pion/rtcp) from 1.2.15 to 1.2.16.
- [Release notes](https://github.com/pion/rtcp/releases)
- [Changelog](https://github.com/pion/rtcp/blob/master/.goreleaser.yml)
- [Commits](https://github.com/pion/rtcp/compare/v1.2.15...v1.2.16)

---
updated-dependencies:
- dependency-name: github.com/pion/rtcp
  dependency-version: 1.2.16
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-17 15:28:10 +02:00
Alessandro Ros
54cc8365f1 Revert fe3adf9 (#5107) 2025-10-17 15:27:30 +02:00
Alessandro Ros
fe3adf9b78 lock discussions automatically (#5106) 2025-10-17 15:18:28 +02:00
dependabot[bot]
26b6be02db build(deps): bump github.com/matthewhartstonge/argon2 (#5089)
Bumps [github.com/matthewhartstonge/argon2](https://github.com/matthewhartstonge/argon2) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/matthewhartstonge/argon2/releases)
- [Changelog](https://github.com/matthewhartstonge/argon2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/matthewhartstonge/argon2/compare/v1.4.0...v1.4.1)

---
updated-dependencies:
- dependency-name: github.com/matthewhartstonge/argon2
  dependency-version: 1.4.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
v1.15.2
2025-10-13 18:45:10 +02:00
dependabot[bot]
d8d3b9759b build(deps): bump github.com/MicahParks/keyfunc/v3 from 3.6.2 to 3.7.0 (#5088)
Bumps [github.com/MicahParks/keyfunc/v3](https://github.com/MicahParks/keyfunc) from 3.6.2 to 3.7.0.
- [Release notes](https://github.com/MicahParks/keyfunc/releases)
- [Commits](https://github.com/MicahParks/keyfunc/compare/v3.6.2...v3.7.0)

---
updated-dependencies:
- dependency-name: github.com/MicahParks/keyfunc/v3
  dependency-version: 3.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-13 18:36:52 +02:00
dependabot[bot]
ab5574b2b5 build(deps): bump github.com/bluenviron/gortsplib/v5 from 5.0.1 to 5.1.0 (#5086)
Bumps [github.com/bluenviron/gortsplib/v5](https://github.com/bluenviron/gortsplib) from 5.0.1 to 5.1.0.
- [Commits](https://github.com/bluenviron/gortsplib/compare/v5.0.1...v5.1.0)

---
updated-dependencies:
- dependency-name: github.com/bluenviron/gortsplib/v5
  dependency-version: 5.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-13 18:26:28 +02:00
Alessandro Ros
f126a7e7d6 playback: improve segment merging algorithm (#5084)
* merge segments only if they belong to the same stream and are
consecutive. * compute DTS without using NTP timestamp, increasing
robustness against NTP fluctuations.
2025-10-13 17:00:21 +02:00
Alessandro Ros
7bca38badb add self-upgrader (#3501) (#5035)
this allows to upgrade MediaMTX to latest version by running

./mediamtx --upgrade
2025-10-13 13:06:47 +02:00
Alessandro Ros
02e2b9d640 recorder: write additional infos inside segments (#5083)
write stream ID, segment number, DTS, NTP in a dedicated box. This
allows to improve the merge algorithm in the playback server.
2025-10-13 12:34:44 +02:00
Alessandro Ros
ccaccc51b4 replace incoming absolute timestamps of any source (#5081)
Absolute timestamps are used to generate recording segments, so users
should not be able to change them, unless explicitly allowed.

Parameter useAbsoluteTimestamp allowed to re-enable absolute timestamps
with RTSP and WebRTC, now it is extended to all protocols.
2025-10-13 12:23:51 +02:00
Alessandro Ros
75420552b9 recorder: reset fMP4 sequence number during segment switch (#5082)
It's useless to make sequence numbers unique across the entire stream.
2025-10-12 17:59:28 +02:00
Alessandro Ros
a9d84103d0 prevent estimated absolute timestamp from drifting too much (#5080) 2025-10-12 17:53:22 +02:00
Alessandro Ros
0cdae40fe3 estimate absolute timestamp more precisely (#5078)
When the absolute timestamp of incoming frames was not available, it
was filled with the current timestamp, which is influenced by latency
over time.

This mechanism is replaced by an algorithm that detects when latency is
the lowest, stores the current timestamp and uses it as reference
throughout the rest of the stream.
2025-10-12 11:02:14 +02:00
Alessandro Ros
f5f03562d3 rewrite Unit definition (#5079)
Stream units now share the same struct, with a specialized payload.
2025-10-11 12:18:51 +02:00
dependabot[bot]
e2294836f5 build(deps): bump code.cloudfoundry.org/bytefmt from 0.53.0 to 0.54.0 (#5070)
Bumps [code.cloudfoundry.org/bytefmt](https://github.com/cloudfoundry/bytefmt) from 0.53.0 to 0.54.0.
- [Release notes](https://github.com/cloudfoundry/bytefmt/releases)
- [Commits](https://github.com/cloudfoundry/bytefmt/compare/v0.53.0...v0.54.0)

---
updated-dependencies:
- dependency-name: code.cloudfoundry.org/bytefmt
  dependency-version: 0.54.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-11 12:12:51 +02:00
dependabot[bot]
0fe7799ebf build(deps): bump github.com/pion/rtp from 1.8.22 to 1.8.23 (#5065)
Bumps [github.com/pion/rtp](https://github.com/pion/rtp) from 1.8.22 to 1.8.23.
- [Release notes](https://github.com/pion/rtp/releases)
- [Changelog](https://github.com/pion/rtp/blob/master/.goreleaser.yml)
- [Commits](https://github.com/pion/rtp/compare/v1.8.22...v1.8.23)

---
updated-dependencies:
- dependency-name: github.com/pion/rtp
  dependency-version: 1.8.23
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-11 12:12:34 +02:00
dependabot[bot]
4178b6f3ce build(deps): bump golang.org/x/term from 0.35.0 to 0.36.0 (#5072)
Bumps [golang.org/x/term](https://github.com/golang/term) from 0.35.0 to 0.36.0.
- [Commits](https://github.com/golang/term/compare/v0.35.0...v0.36.0)

---
updated-dependencies:
- dependency-name: golang.org/x/term
  dependency-version: 0.36.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-11 12:04:27 +02:00
dependabot[bot]
b42b9dc66b build(deps): bump github.com/go-git/go-git/v5 from 5.16.2 to 5.16.3 (#5067)
Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.16.2 to 5.16.3.
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.16.2...v5.16.3)

---
updated-dependencies:
- dependency-name: github.com/go-git/go-git/v5
  dependency-version: 5.16.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-11 12:04:19 +02:00
dependabot[bot]
807320c3ff build(deps): bump github.com/quic-go/quic-go from 0.54.0 to 0.54.1 (#5077)
Bumps [github.com/quic-go/quic-go](https://github.com/quic-go/quic-go) from 0.54.0 to 0.54.1.
- [Release notes](https://github.com/quic-go/quic-go/releases)
- [Commits](https://github.com/quic-go/quic-go/compare/v0.54.0...v0.54.1)

---
updated-dependencies:
- dependency-name: github.com/quic-go/quic-go
  dependency-version: 0.54.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-11 12:03:58 +02:00
Alessandro Ros
7ecbe736c6 docs: update (#5061) 2025-10-05 18:07:39 +02:00
Alessandro Ros
6415285427 hls: improve web page performance (#5062)
load hls.js in parallel with the page.
2025-10-05 18:00:14 +02:00
Alessandro Ros
7634370818 add read and write timeouts in HTTP servers (#5056)
this prevents zombie connections from piling up.
2025-10-04 10:01:21 +02:00
dependabot[bot]
b7c1bdb7bc build(deps): bump code.cloudfoundry.org/bytefmt from 0.52.0 to 0.53.0 (#5051)
Bumps [code.cloudfoundry.org/bytefmt](https://github.com/cloudfoundry/bytefmt) from 0.52.0 to 0.53.0.
- [Release notes](https://github.com/cloudfoundry/bytefmt/releases)
- [Commits](https://github.com/cloudfoundry/bytefmt/compare/v0.52.0...v0.53.0)

---
updated-dependencies:
- dependency-name: code.cloudfoundry.org/bytefmt
  dependency-version: 0.53.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-03 09:37:53 +02:00
dependabot[bot]
14c20ede9c build(deps): bump github.com/pion/interceptor from 0.1.40 to 0.1.41 (#5050)
Bumps [github.com/pion/interceptor](https://github.com/pion/interceptor) from 0.1.40 to 0.1.41.
- [Release notes](https://github.com/pion/interceptor/releases)
- [Changelog](https://github.com/pion/interceptor/blob/master/.goreleaser.yml)
- [Commits](https://github.com/pion/interceptor/compare/v0.1.40...v0.1.41)

---
updated-dependencies:
- dependency-name: github.com/pion/interceptor
  dependency-version: 0.1.41
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-03 09:37:45 +02:00
Alessandro Ros
691d7290fb webrtc: fix packet corruption when reading G711 (#5048)
when a reader is reading a G711 track, stream units are modified
globally, affecting every other reader. This fixes the issue.
2025-09-30 10:42:24 +02:00
Alessandro Ros
2690ef8e71 api: add /info endpoint (#945) (#5045) 2025-09-30 10:39:27 +02:00
Alessandro Ros
2024783eec webrtc: fix clippy audio when reading Opus (#3878) (#5047)
Opus timestamp is now recomputed from scratch.
2025-09-30 10:35:56 +02:00
Alessandro Ros
cd80814009 do not include recorder and HLS muxer in sent bytes (#4380) (#5039)
in API (/paths/list, /paths/get) and metrics (paths_bytes_sent), the
amount of sent bytes was increased even in case of writes to the
recorder and HLS muxer, which are not generating network traffic. This
fixes the issue.
2025-09-29 09:28:04 +02:00