Commit graph

2446 commits

Author SHA1 Message Date
dependabot[bot]
1b68fd27b9
build(deps): bump golang.org/x/crypto from 0.35.0 to 0.36.0 (#4314)
Some checks failed
code_lint / golangci_lint (push) Has been cancelled
code_lint / mod_tidy (push) Has been cancelled
code_lint / api_docs (push) Has been cancelled
code_test / test_64 (push) Has been cancelled
code_test / test_32 (push) Has been cancelled
code_test / test_highlevel (push) Has been cancelled
2025-03-05 20:36:38 +01:00
github-actions[bot]
285b94fce5
bump mediamtx-rpicamera to v2.3.7 (#4312)
Some checks are pending
code_lint / golangci_lint (push) Waiting to run
code_lint / mod_tidy (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_highlevel (push) Waiting to run
Co-authored-by: mediamtx-bot <bot@mediamtx>
2025-03-05 17:58:51 +01:00
dependabot[bot]
4dfe274239
build(deps): bump code.cloudfoundry.org/bytefmt from 0.30.0 to 0.31.0 (#4308)
Some checks are pending
code_lint / golangci_lint (push) Waiting to run
code_lint / mod_tidy (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_highlevel (push) Waiting to run
2025-03-04 18:57:11 +01:00
dependabot[bot]
5258aa3185
build(deps): bump github.com/pion/rtp from 1.8.11 to 1.8.12 (#4303)
Some checks failed
code_lint / golangci_lint (push) Has been cancelled
code_lint / mod_tidy (push) Has been cancelled
code_lint / api_docs (push) Has been cancelled
code_test / test_64 (push) Has been cancelled
code_test / test_32 (push) Has been cancelled
code_test / test_highlevel (push) Has been cancelled
2025-03-03 21:09:09 +01:00
Alessandro Ros
14ec80ae01
improve recordPath documentation (#3678) (#4302) 2025-03-03 18:10:18 +01:00
Alessandro Ros
371b9585a6
change error message when stream is not found (#4301)
Switch from 'no one is publishing to path' to 'no stream is available
on path' since the stream might be provided from a static source too.
2025-03-03 18:09:22 +01:00
Alessandro Ros
c692f3b78c
webrtc: rewrite WHIP client (#4299)
Some checks failed
code_lint / golangci_lint (push) Has been cancelled
code_lint / mod_tidy (push) Has been cancelled
code_lint / api_docs (push) Has been cancelled
code_test / test_64 (push) Has been cancelled
code_test / test_32 (push) Has been cancelled
code_test / test_highlevel (push) Has been cancelled
2025-03-01 17:01:57 +01:00
Alessandro Ros
aa101c680c
webrtc: make client always provide UDP candidates (#4298) 2025-03-01 16:52:59 +01:00
Alessandro Ros
b602170ed6
bump code.cloudfoundry.org/bytefmt (#4296)
Some checks are pending
code_lint / golangci_lint (push) Waiting to run
code_lint / mod_tidy (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_highlevel (push) Waiting to run
2025-03-01 11:55:47 +01:00
Alessandro Ros
1bfd9bacc9
bump pion/webrtc (#4295) 2025-03-01 11:51:57 +01:00
Alessandro Ros
4584726985
update linter (#4294) 2025-03-01 11:37:42 +01:00
Alessandro Ros
5c6cf58d75
webrtc: fix connecting to TCP-only sources (#4293) 2025-03-01 11:07:50 +01:00
Alessandro Ros
44136b3045
api: fix crash in /recordings/list (#4040) (#4291)
Some checks are pending
code_lint / golangci_lint (push) Waiting to run
code_lint / mod_tidy (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_highlevel (push) Waiting to run
The API crashed when

- '%path%' is not present in 'recordPath'
- 'all_others' is in 'paths'
- there's at least one recording segment

A recording segment without path is parsed as a segment with an empty
path. This path is then passed to FindPathConf(), that returns an error
in case of empty or invalid paths. This error is not checked for
performance reasons, leading to the crash.

This PR prevents empty or invalid paths from reaching FindPathConf().
2025-02-28 19:04:05 +01:00
Kibeom Lee
95d0be64bc
fix ARM compilation (#4280)
Some checks are pending
code_lint / golangci_lint (push) Waiting to run
code_lint / mod_tidy (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_highlevel (push) Waiting to run
2025-02-27 20:13:18 +01:00
Alessandro Ros
7ab8fbb55d
add instructions on how to expose in subfolder (#4287) 2025-02-27 19:53:55 +01:00
dependabot[bot]
c82ad52a02
build(deps): bump github.com/go-git/go-git/v5 from 5.13.2 to 5.14.0 (#4286)
Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.13.2 to 5.14.0.
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.13.2...v5.14.0)

---
updated-dependencies:
- dependency-name: github.com/go-git/go-git/v5
  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-02-27 19:32:23 +01:00
dependabot[bot]
492163158b
build(deps): bump golang.org/x/crypto from 0.33.0 to 0.35.0 (#4279)
Some checks failed
code_lint / golangci_lint (push) Has been cancelled
code_lint / mod_tidy (push) Has been cancelled
code_lint / api_docs (push) Has been cancelled
code_test / test_64 (push) Has been cancelled
code_test / test_32 (push) Has been cancelled
code_test / test_highlevel (push) Has been cancelled
2025-02-26 08:15:34 +01:00
dependabot[bot]
f679555e71
build(deps): bump github.com/datarhei/gosrt from 0.8.0 to 0.9.0 (#4271)
Some checks failed
code_lint / golangci_lint (push) Has been cancelled
code_lint / mod_tidy (push) Has been cancelled
code_lint / api_docs (push) Has been cancelled
code_test / test_64 (push) Has been cancelled
code_test / test_32 (push) Has been cancelled
code_test / test_highlevel (push) Has been cancelled
2025-02-20 18:48:17 +01:00
Alessandro Ros
386be42784
rtsp: rewrite authentication around ServerConn.VerifyCredentials (#4267)
Some checks failed
code_lint / golangci_lint (push) Has been cancelled
code_lint / mod_tidy (push) Has been cancelled
code_lint / api_docs (push) Has been cancelled
code_test / test_64 (push) Has been cancelled
code_test / test_32 (push) Has been cancelled
code_test / test_highlevel (push) Has been cancelled
2025-02-18 17:54:13 +01:00
Alessandro Ros
7ade2896e5
warn users when non-existent fields are used in conf (#4261) 2025-02-18 15:23:44 +01:00
Alessandro Ros
d822c2a200
rtsp: support using relative URLs in sourceRedirect (#4260) 2025-02-18 15:23:07 +01:00
Alessandro Ros
2745527264
prevent useless path manager reload (#4264) 2025-02-18 15:18:45 +01:00
Alessandro Ros
b950a0a601
rtsp: fix authentication when rtspAuthMethods is empty (#4266)
when rtspAuthMethods is nil, digest+SHA256 gets enabled, resulting in
the inability of FFmpeg and most clients to connect due to
compatibility issues.
2025-02-18 15:18:17 +01:00
Alessandro Ros
244da930a1
switch to mediacommon/v2 (#4259)
Some checks are pending
code_lint / golangci_lint (push) Waiting to run
code_lint / mod_tidy (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_highlevel (push) Waiting to run
2025-02-17 14:54:58 +01:00
dependabot[bot]
0711bf43a4
build(deps): bump github.com/alecthomas/kong from 1.8.0 to 1.8.1 (#4255)
Some checks failed
code_lint / golangci_lint (push) Has been cancelled
code_lint / mod_tidy (push) Has been cancelled
code_lint / api_docs (push) Has been cancelled
code_test / test_64 (push) Has been cancelled
code_test / test_32 (push) Has been cancelled
code_test / test_highlevel (push) Has been cancelled
2025-02-14 19:12:09 +01:00
Alessandro Ros
eeb83f9a56
record: fix crash when recordDeleteAfter is 0 and API is called (#4250) (#4254)
Some checks are pending
code_lint / golangci_lint (push) Waiting to run
code_lint / mod_tidy (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_highlevel (push) Waiting to run
2025-02-14 11:53:16 +01:00
Alessandro Ros
b33fb487e0
fix workflow badges (#4249)
Some checks are pending
code_lint / golangci_lint (push) Waiting to run
code_lint / mod_tidy (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_highlevel (push) Waiting to run
2025-02-13 11:19:10 +01:00
dependabot[bot]
5e841b14b5
build(deps): bump github.com/alecthomas/kong from 1.7.0 to 1.8.0 (#4246)
Some checks failed
code_lint / golangci_lint (push) Has been cancelled
code_lint / mod_tidy (push) Has been cancelled
code_lint / api_docs (push) Has been cancelled
code_test / test_64 (push) Has been cancelled
code_test / test_32 (push) Has been cancelled
code_test / test_highlevel (push) Has been cancelled
2025-02-10 18:54:03 +01:00
dependabot[bot]
9f1a414abc
build(deps): bump golang.org/x/crypto from 0.32.0 to 0.33.0 (#4245) 2025-02-10 18:53:50 +01:00
dependabot[bot]
b66efd66da
build(deps): bump github.com/bluenviron/gortsplib/v4 (#4236)
Some checks failed
code_lint / golangci_lint (push) Has been cancelled
code_lint / mod_tidy (push) Has been cancelled
code_lint / api_docs (push) Has been cancelled
code_test / test_64 (push) Has been cancelled
code_test / test_32 (push) Has been cancelled
code_test / test_highlevel (push) Has been cancelled
Bumps [github.com/bluenviron/gortsplib/v4](https://github.com/bluenviron/gortsplib) from 4.12.2 to 4.12.3.
- [Commits](https://github.com/bluenviron/gortsplib/compare/v4.12.2...v4.12.3)

---
updated-dependencies:
- dependency-name: github.com/bluenviron/gortsplib/v4
  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-02-07 20:19:14 +01:00
Alessandro Ros
e8e21bfa42
do not allocate recordcleaner.Cleaner when not needed (#4232) 2025-02-07 17:11:20 +01:00
Alessandro Ros
d31f1ab882
fix removing empty recording folders (#4227) (#4231) 2025-02-07 17:07:08 +01:00
Jean-Philippe Bergeron
e8297478f3
Configurable webrtcSTUNGatherTimeout (#4221) 2025-02-07 16:34:17 +01:00
dependabot[bot]
2998c59137
build(deps): bump golang.org/x/term from 0.28.0 to 0.29.0 (#4223)
Some checks failed
code_lint / golangci_lint (push) Has been cancelled
code_lint / mod_tidy (push) Has been cancelled
code_lint / api_docs (push) Has been cancelled
code_test / test_64 (push) Has been cancelled
code_test / test_32 (push) Has been cancelled
code_test / test_highlevel (push) Has been cancelled
Bumps [golang.org/x/term](https://github.com/golang/term) from 0.28.0 to 0.29.0.
- [Commits](https://github.com/golang/term/compare/v0.28.0...v0.29.0)

---
updated-dependencies:
- dependency-name: golang.org/x/term
  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-02-05 20:11:14 +01:00
dependabot[bot]
c05a029987
build(deps): bump golang.org/x/sys from 0.29.0 to 0.30.0 (#4224) 2025-02-05 19:47:01 +01:00
Alessandro Ros
1a1da5edda
fix freeze when getting metrics and a RTSP connection is being created (#4179) (#4216)
Some checks failed
code_lint / golangci_lint (push) Has been cancelled
code_lint / mod_tidy (push) Has been cancelled
code_lint / api_docs (push) Has been cancelled
code_test / test_64 (push) Has been cancelled
code_test / test_32 (push) Has been cancelled
code_test / test_highlevel (push) Has been cancelled
2025-02-02 14:03:17 +01:00
Alessandro Ros
a1c6da84dc
webrtc: fix detecting closure of some sessions (#4204) (#4212)
Some checks failed
code_lint / golangci_lint (push) Has been cancelled
code_lint / mod_tidy (push) Has been cancelled
code_lint / api_docs (push) Has been cancelled
code_test / test_64 (push) Has been cancelled
code_test / test_32 (push) Has been cancelled
code_test / test_highlevel (push) Has been cancelled
2025-02-01 13:43:57 +01:00
Alessandro Ros
5cb5dc4e12
remove useless checks (#4213)
Some checks are pending
code_lint / golangci_lint (push) Waiting to run
code_lint / mod_tidy (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_highlevel (push) Waiting to run
2025-01-31 20:57:50 +01:00
dependabot[bot]
80879f6baa
build(deps): bump github.com/alecthomas/kong from 1.6.1 to 1.7.0 (#4208)
Some checks are pending
code_lint / golangci_lint (push) Waiting to run
code_lint / mod_tidy (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_highlevel (push) Waiting to run
2025-01-30 19:52:48 +01:00
dependabot[bot]
9062f7f0b2
build(deps): bump github.com/pion/logging from 0.2.2 to 0.2.3 (#4205)
Some checks failed
code_lint / golangci_lint (push) Has been cancelled
code_lint / mod_tidy (push) Has been cancelled
code_lint / api_docs (push) Has been cancelled
code_test / test_64 (push) Has been cancelled
code_test / test_32 (push) Has been cancelled
code_test / test_highlevel (push) Has been cancelled
2025-01-27 20:47:09 +01:00
dependabot[bot]
a8b8f676f4
build(deps): bump github.com/bluenviron/gohlslib/v2 from 2.1.2 to 2.1.3 (#4194)
Some checks failed
code_lint / golangci_lint (push) Has been cancelled
code_lint / mod_tidy (push) Has been cancelled
code_lint / api_docs (push) Has been cancelled
code_test / test_64 (push) Has been cancelled
code_test / test_32 (push) Has been cancelled
code_test / test_highlevel (push) Has been cancelled
Bumps [github.com/bluenviron/gohlslib/v2](https://github.com/bluenviron/gohlslib) from 2.1.2 to 2.1.3.
- [Commits](https://github.com/bluenviron/gohlslib/compare/v2.1.2...v2.1.3)

---
updated-dependencies:
- dependency-name: github.com/bluenviron/gohlslib/v2
  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-01-24 12:26:00 +01:00
dependabot[bot]
c6a9d81d4c
build(deps): bump github.com/bluenviron/mediacommon (#4193)
Some checks are pending
code_lint / golangci_lint (push) Waiting to run
code_lint / mod_tidy (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_highlevel (push) Waiting to run
Bumps [github.com/bluenviron/mediacommon](https://github.com/bluenviron/mediacommon) from 1.13.4-0.20250119173005-20b296ab1174 to 1.13.4.
- [Commits](https://github.com/bluenviron/mediacommon/commits/v1.13.4)

---
updated-dependencies:
- dependency-name: github.com/bluenviron/mediacommon
  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-01-24 11:04:08 +01:00
dependabot[bot]
091b4f4241
build(deps): bump github.com/go-git/go-git/v5 from 5.13.1 to 5.13.2 (#4190)
Some checks are pending
code_lint / golangci_lint (push) Waiting to run
code_lint / mod_tidy (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_highlevel (push) Waiting to run
2025-01-23 18:48:11 +01:00
github-actions[bot]
f40f491b09
bump hls.js to v1.5.20 (#4185)
Some checks failed
code_lint / golangci_lint (push) Has been cancelled
code_lint / mod_tidy (push) Has been cancelled
code_lint / api_docs (push) Has been cancelled
code_test / test_64 (push) Has been cancelled
code_test / test_32 (push) Has been cancelled
code_test / test_highlevel (push) Has been cancelled
2025-01-22 07:15:45 +01:00
dependabot[bot]
0a76806e19
build(deps): bump github.com/bluenviron/gortsplib/v4 (#4181)
Some checks failed
code_lint / golangci_lint (push) Has been cancelled
code_lint / mod_tidy (push) Has been cancelled
code_lint / api_docs (push) Has been cancelled
code_test / test_64 (push) Has been cancelled
code_test / test_32 (push) Has been cancelled
code_test / test_highlevel (push) Has been cancelled
2025-01-20 20:06:33 +01:00
Alessandro Ros
5bb751a4c8
hls: fix reading AV1 from OBS+WHIP (#3886) (#4177)
Some checks are pending
code_lint / golangci_lint (push) Waiting to run
code_lint / mod_tidy (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_highlevel (push) Waiting to run
2025-01-19 18:40:18 +01:00
Alessandro Ros
e86a7a8217
webrtc: disable UDP when not needed (#4176)
Some checks are pending
code_lint / golangci_lint (push) Waiting to run
code_lint / mod_tidy (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_highlevel (push) Waiting to run
2025-01-19 15:43:58 +01:00
Alessandro Ros
4d98628792
webrtc: fix connectivity regression on Windows (#4150) (#4175)
When MediaMTX is running on Windows and the machine has an IPv6, connectivity was impossible to achieve.
2025-01-19 15:36:40 +01:00
Alessandro Ros
0e2d39b0ce
webrtx: fix connectivity regression (#4161) (#4174)
when webrtcLocalTCPAddress is filled, webrtcAdditionalHosts is not
empty and webrtcIPsFromInterfaces is false, connectivity was impossible
to achieve.
2025-01-19 14:20:06 +01:00
ijessen-mitll
35e858c6e7
playback: fix filtering when start date is earlier than first segment (#4173)
* bugfix in recordstore: no segments returned when given a start time earlier than all available segments

* add tests

---------

Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
2025-01-19 10:23:03 +01:00