Commit graph

1059 commits

Author SHA1 Message Date
github-actions[bot]
97c58b4530
bump hls-js to v1.5.3 (#2964)
Co-authored-by: mediamtx-bot <bot@mediamtx>
2024-01-31 10:37:37 +01:00
Alessandro Ros
0433af66a3
hls, webrtc: in the web page, show connection errors to users (#2957) 2024-01-29 00:43:34 +01:00
Alessandro Ros
7d0e702f14
hls: fix infinite loop in web client when reading incompatible codecs (#2956)
when a player received a stream with incompatible codecs, it started
polling the server for index.m3u8 in an infinite loop. This was caused
by #2631
2024-01-29 00:25:42 +01:00
Alessandro Ros
0f733bab26
add rpiCameraAWBGains (#2858) (#2954) 2024-01-28 21:48:21 +01:00
Alessandro Ros
6f6f8e0994
prevent multiple crashes when reloading the configuration (#2945) 2024-01-26 13:04:06 +01:00
github-actions[bot]
2f35bbc5bc
bump hls-js to v1.5.2 (#2948)
Co-authored-by: mediamtx-bot <bot@mediamtx>
2024-01-26 12:20:08 +01:00
Alessandro Ros
57c2d5aecb
add playback server (#2452) (#2906)
* add playback server

* add playback switch

* update readme
2024-01-23 20:52:05 +01:00
Alessandro Ros
9b270adc03
record: use reception time instead of current time in segment names (#2925) 2024-01-21 19:15:31 +01:00
Alessandro Ros
f8a56aae91
rtmp: simplify Audio message structure (#2924) 2024-01-21 16:29:13 +01:00
Alessandro Ros
7b9617f2e7
api: return 404 when an entity is not found (#2582) (#2920) 2024-01-18 23:28:56 +01:00
Alessandro Ros
b3eaec50c1
srt: support standard streamID syntax (#2469) (#2919) 2024-01-18 23:23:51 +01:00
Alessandro Ros
dd7d7c6c5d
srt: wait some seconds before returning authentication errors (#2918)
this allows to mitigate brute force attacks and is possible thanks to
https://github.com/datarhei/gosrt/pull/43
2024-01-18 22:48:25 +01:00
Alessandro Ros
cd2495423a
do not wait for HTTP connections to close when shutting down the server (#2909) 2024-01-15 17:54:52 +01:00
Alessandro Ros
514036d41a
treat different RTSP formats as different tracks in logs and API (#2907) 2024-01-15 12:08:14 +01:00
Sijmen
397c58a882
Add Argon2 credential hash support (#2888)
* Add argon2 credential hash support

* update README, tests and documentation

---------

Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
2024-01-13 12:49:08 +01:00
Alessandro Ros
20bb9b90cd
support G711 tracks with multiple channels and custom sample rates (#2891) 2024-01-13 11:40:26 +01:00
github-actions[bot]
a6c7d287a7
bump hls-js to v1.5.1 (#2903)
Co-authored-by: mediamtx-bot <bot@mediamtx>
2024-01-13 11:33:09 +01:00
dependabot[bot]
120791b415
build(deps): bump github.com/bluenviron/mediacommon from 1.7.0 to 1.7.1 (#2897)
Bumps [github.com/bluenviron/mediacommon](https://github.com/bluenviron/mediacommon) from 1.7.0 to 1.7.1.
- [Commits](https://github.com/bluenviron/mediacommon/compare/v1.7.0...v1.7.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>
2024-01-13 11:28:12 +01:00
github-actions[bot]
584fdb72a0
bump hls-js to v1.5.0 (#2900) 2024-01-11 11:27:11 +01:00
Alessandro Ros
27975d8b67
rtmp: support publishing G711 and LPCM tracks (#2857) (#2884) 2024-01-07 17:02:22 +01:00
Alessandro Ros
7437ee7a09
update golangci-lint (#2868) 2024-01-03 21:13:20 +01:00
Alessandro Ros
e50def6afd
update gohlslib (#2862) 2024-01-03 18:56:18 +01:00
Alessandro Ros
698963ad03
support recording G711 tracks with fMP4 (#2853) 2023-12-28 23:17:50 +01:00
Alessandro Ros
598fadc9fb
api: add 'query' field to RTMP, RTSP, SRT and WebRTC clients (#2689) (#2844) 2023-12-26 13:59:53 +01:00
Alessandro Ros
1341421412
move api, metrics and pprof into dedicated packages (#2843) 2023-12-26 13:41:15 +01:00
James Bohnert
3ecd79f076
RunOn.. commands - Propagate errors in restart configurations (#2828)
* RunOnX commands - Propagate errors in restart configurations

* apply gofmt

---------

Co-authored-by: James Bohnert <jbohnert@haivision.com>
Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
2023-12-26 13:06:58 +01:00
Alessandro Ros
1feeba92b0
webrtc: prevent NotReadableError when publishing with Android (#2698) (#2842) 2023-12-26 12:53:33 +01:00
github-actions[bot]
e6fec31516
bump hls-js to v1.4.14 (#2825) 2023-12-19 12:22:38 +01:00
Alessandro Ros
fe4f436bd3
rtmp: change default RTMPS port to 1936 when it is omitted in source (#2821) 2023-12-18 10:45:18 +01:00
Alessandro Ros
4e8b8a2014
rtmp, srt: fix output of 'is reading from' log entry (#2820) 2023-12-18 10:38:31 +01:00
Alessandro Ros
94953f5d22
webrtc: support Chrome versions older than M72 (#2621) (#2814) 2023-12-16 18:39:36 +01:00
Alessandro Ros
89560c19a0
rtmp: fix parsing error caused by extended timestamps (#2393) (#2556) (#2384) (#1550) (#2564) (#2808) 2023-12-16 17:17:42 +01:00
Alessandro Ros
0c131a2e92
rpi: pass log level to libcamera (#2617) (#2811) 2023-12-15 12:10:16 +01:00
Alessandro Ros
22414bb38c
rtmp: return error in case of extended chunk stream IDs (#2806) 2023-12-14 11:38:47 +01:00
Alessandro Ros
d261bfe773
support static sources in paths with regular expressions (#824) (#2799)
This allows to proxy requests to other servers by using regular
expressions.
2023-12-10 21:23:41 +01:00
Alessandro Ros
15e6c199b4
always use 'all_others' or 'all' after every other path configuration (#2798) 2023-12-10 19:28:02 +01:00
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
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
ce45498769
move hooks into dedicated package (#2746) 2023-11-26 22:06:07 +01:00