Commit Graph

1944 Commits

Author SHA1 Message Date
Alessandro Ros
11988249df
move servers into internal/servers (#2792) 2023-12-08 19:17:17 +01:00
github-actions[bot]
3891e7eb26
bump hls-js to v1.4.13 (#2791)
Co-authored-by: mediamtx-bot <bot@mediamtx>
2023-12-08 10:33:30 +01:00
dependabot[bot]
ea28a1fef2
build(deps): bump github.com/bluenviron/gortsplib/v4 from 4.6.0 to 4.6.1 (#2785) 2023-12-04 19:35:32 +01:00
Alessandro Ros
b8dd7b9e52
add RTMPS metrics (#2783) 2023-12-03 16:59:35 +01:00
Alessandro Ros
ed72fa7db1
fix crash when requesting metrics and RTMP, SRT or WebRTC servers are not present anymore (#2782) 2023-12-03 16:42:12 +01:00
Alessandro Ros
20123fd5b9
record: rename segmentPath into path (#2777) 2023-12-02 15:35:21 +01:00
Alessandro Ros
7c8e593b0b
record: normalize decoding and encoding of segment paths (#2775) 2023-12-02 15:15:17 +01:00
Alessandro Ros
5da2ded815
record: rename recFormat into format (#2776) 2023-12-02 15:03:37 +01:00
Neeraj Kanhere
47bd7352f0
support unix timestamp in filenames of recorded segments (#2774)
* added support for %s to use unix timestamp in filenames

* fix lint errors

* add tests

* update documentation

---------

Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
2023-12-02 14:36:13 +01:00
Alessandro Ros
3e12f83732
hls, webrtc: fix appending slash to paths that contain slashes (#2773) 2023-12-01 21:14:45 +01:00
Alessandro Ros
aade2eedb9
hls, webrtc: prevent XSS attack when appending slash to paths (#2766) (#2767) (#2772) 2023-12-01 20:54:18 +01:00
Alessandro Ros
4ccb245feb
webrtc: fix propagating query parameters when appending slash to paths (#2771) 2023-12-01 20:24:00 +01:00
Alessandro Ros
50e7b038c4
hls: fix appending slash when behind a reverse proxy (#2770) 2023-12-01 20:23:04 +01:00
Alessandro Ros
0e5e3324a7
rpicamera: allow to change bitrate and IDR period dynamically (#2703) (#2764) 2023-11-30 21:43:19 +01:00
Alessandro Ros
6ca59e0ed8
bump gosrt (#2761) 2023-11-29 19:41:56 +01:00
dependabot[bot]
fe9426cc05
build(deps): bump golang.org/x/crypto from 0.15.0 to 0.16.0 (#2751) 2023-11-27 19:59:43 +01:00
Alessandro Ros
ce45498769
move hooks into dedicated package (#2746) 2023-11-26 22:06:07 +01:00
Alessandro Ros
d640dcf14d
fix missing comment in conf (#2745) 2023-11-26 20:24:52 +01:00
Alessandro Ros
e4f86be005
rename github workflow (#2744) 2023-11-26 20:24:39 +01:00
Alessandro Ros
81c803ba64
webrtc: fix bad quality when converting Opus from WebRTC to LL-HLS (#2499) (#2740) 2023-11-24 22:07:33 +01:00
dependabot[bot]
db5ba9903f
build(deps): bump github.com/bluenviron/gohlslib from 1.0.5 to 1.0.6 (#2736) 2023-11-23 19:10:50 +01:00
Alessandro Ros
dc453620fe
record: fix invalid segment duration in case of offsets between video/audio (#2477) (#2715) 2023-11-23 13:36:07 +01:00
Alessandro Ros
e6f861ee95
rename 'binaries' workflow into 'nightly_binaries' (#2714) 2023-11-23 13:35:27 +01:00
Eng Zer Jun
f335fc67f9
test: use t.Setenv to set env vars in tests (#2722)
This commit replaces `os.Setenv` with `t.Setenv` in tests. The
environment variable is automatically restored to its original value
when the test and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.Setenv

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-11-20 17:34:56 +01:00
dependabot[bot]
dee7176cb0
build(deps): bump github.com/bluenviron/mediacommon from 1.5.0 to 1.5.1 (#2711)
Bumps [github.com/bluenviron/mediacommon](https://github.com/bluenviron/mediacommon) from 1.5.0 to 1.5.1.
- [Commits](https://github.com/bluenviron/mediacommon/compare/v1.5.0...v1.5.1)

---
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>
2023-11-17 18:33:04 +01:00
Alessandro Ros
c3d9be322d
allow using 'fallback' with static sources (#2606) (#2706) 2023-11-16 23:37:43 +01:00
Bohdan Cherniakh
4fa6c16c85
Add query as optional block for SRT publish and read (#2656) 2023-11-16 23:32:17 +01:00
Alessandro Ros
3277765851
apidocs: add missing recording settings to PathConf (#2705) 2023-11-16 22:47:01 +01:00
dependabot[bot]
09f43d9764
build(deps): bump github.com/bluenviron/gortsplib/v4 from 4.5.0 to 4.6.0 (#2702) 2023-11-15 20:28:40 +01:00
Alessandro Ros
42150c7ae5
update readme (#2695) 2023-11-13 18:05:07 +01:00
Alessandro Ros
a760a98bcc
webrtc: fix crash when reading from path 'publish' (#2688) (#2692) 2023-11-13 14:36:18 +01:00
Alessandro Ros
e8f57153d5
after a release, post to issues once (#2691) 2023-11-13 11:51:32 +01:00
Alessandro Ros
7a1e155531
update dependencies (#2687) 2023-11-13 00:09:42 +01:00
Alessandro Ros
687d8685ef
webrtc: improve connectivity mechanism (#2686) 2023-11-12 23:55:28 +01:00
Alessandro Ros
4cf8948fe6
automatically inform authors of GitHub issues about new releases (#2685) 2023-11-12 21:57:55 +01:00
Alessandro Ros
83a3086de7
webrtc: prevent pion/webrtc from writing log lines (#2681) 2023-11-12 13:46:25 +01:00
dependabot[bot]
5ae35af464
build(deps): bump github.com/pion/webrtc/v3 from 3.2.21 to 3.2.22 (#2675)
Bumps [github.com/pion/webrtc/v3](https://github.com/pion/webrtc) from 3.2.21 to 3.2.22.
- [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/v3.2.21...v3.2.22)

---
updated-dependencies:
- dependency-name: github.com/pion/webrtc/v3
  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>
2023-11-11 20:39:12 +01:00
dependabot[bot]
f44d80867f
build(deps): bump github.com/pion/rtp from 1.8.2 to 1.8.3 (#2677)
Bumps [github.com/pion/rtp](https://github.com/pion/rtp) from 1.8.2 to 1.8.3.
- [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.2...v1.8.3)

---
updated-dependencies:
- dependency-name: github.com/pion/rtp
  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>
2023-11-11 15:58:52 +01:00
dependabot[bot]
34275ca40d
build(deps): bump github.com/pion/rtcp from 1.2.11 to 1.2.12 (#2676)
Bumps [github.com/pion/rtcp](https://github.com/pion/rtcp) from 1.2.11 to 1.2.12.
- [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.11...v1.2.12)

---
updated-dependencies:
- dependency-name: github.com/pion/rtcp
  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>
2023-11-11 15:55:11 +01:00
Alessandro Ros
2fe31a2421
record: allow using special characters in recording path (#2674) 2023-11-10 16:07:21 +01:00
Alessandro Ros
d51baa04f7
record: fix deleting segments in case of relative paths (#2526) (#2673) 2023-11-10 16:03:04 +01:00
Alessandro Ros
ef19552632
fix setting 'recordDeleteAfter' to zero (#2670) (#2671) 2023-11-10 13:51:52 +01:00
dependabot[bot]
fb585b5b72
build(deps): bump golang.org/x/crypto from 0.14.0 to 0.15.0 (#2668)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.14.0 to 0.15.0.
- [Commits](https://github.com/golang/crypto/compare/v0.14.0...v0.15.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  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>
2023-11-10 13:18:24 +01:00
dependabot[bot]
b87a3ca735
build(deps): bump golang.org/x/term from 0.13.0 to 0.14.0 (#2667)
Bumps [golang.org/x/term](https://github.com/golang/term) from 0.13.0 to 0.14.0.
- [Commits](https://github.com/golang/term/compare/v0.13.0...v0.14.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>
2023-11-09 22:41:08 +01:00
dependabot[bot]
ca2e3a9ebe
build(deps): bump github.com/pion/rtcp from 1.2.10 to 1.2.11 (#2669)
Bumps [github.com/pion/rtcp](https://github.com/pion/rtcp) from 1.2.10 to 1.2.11.
- [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.10...v1.2.11)

---
updated-dependencies:
- dependency-name: github.com/pion/rtcp
  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>
2023-11-09 22:40:51 +01:00
Alessandro Ros
cb04d28f6e
metrics: expose state of WebRTC sessions (#2662) 2023-11-08 12:01:39 +01:00
Alessandro Ros
f82c6e3654
tests: fix race condition in TestPathRunOnDemand (#2663) 2023-11-08 11:21:08 +01:00
Dr. Ralf S. Engelschall
4bf0d10079
metrics: add paths_bytes_sent, srt_conns, srt_conns_bytes_received, srt_conns_bytes_sent (#2620) (#2619) (#2629)
* add missing Prometheus exports (#2620, #2619):
paths_bytes_sent, srt_conns, srt_conns_bytes_received, srt_conns_bytes_sent

* protect Stream.BytesSent()

* add tests

---------

Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
2023-11-08 11:20:16 +01:00
dependabot[bot]
2a6060d302
build(deps): bump github.com/gorilla/websocket from 1.5.0 to 1.5.1 (#2652)
Bumps [github.com/gorilla/websocket](https://github.com/gorilla/websocket) from 1.5.0 to 1.5.1.
- [Release notes](https://github.com/gorilla/websocket/releases)
- [Commits](https://github.com/gorilla/websocket/compare/v1.5.0...v1.5.1)

---
updated-dependencies:
- dependency-name: github.com/gorilla/websocket
  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>
2023-11-07 19:41:51 +01:00
Alessandro Ros
5dae270900
srt: fix race condition when disposing late packets (#2648) 2023-11-05 18:39:37 +01:00