Commit Graph
1288 Commits
Author SHA1 Message Date
Alessandro RosandGitHub 5bb751a4c8 hls: fix reading AV1 from OBS+WHIP (#3886) (#4177) 2025-01-19 18:40:18 +01:00
Alessandro RosandGitHub e86a7a8217 webrtc: disable UDP when not needed (#4176) 2025-01-19 15:43:58 +01:00
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
Alessandro RosandGitHub c1e1c74f6e webrtc: fix setting video width, height and rate when publishing a camera with browser (#4167) (#4171) 2025-01-18 18:57:56 +01:00
1f33b5b2ba playback: improve performance (#4152)
* change from filepath.Walk to filepath.WalkDir

* use filepath.WalkDir in the entire project

---------

Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
2025-01-17 13:19:03 +01:00
Alessandro RosandGitHub 8f6267deb8 bump pion/webrtc to v4 (#4145) 2025-01-13 23:19:29 +01:00
8c1ed7254f fix closing some custom commands on Windows (#3981)
* Bugfix: Rewrote addProcessToGroup. Fixed possible invalid process handle by using windows.OpenProcess instead. Fixes issue: 3980

* run gofumpt

---------

Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
2025-01-11 20:40:25 +01:00
Alessandro RosandGitHub 8f04264fe5 webrtxc: fix MTX_QUERY not set when reading or publishing (#4138) (#3937) (#4141) 2025-01-11 17:29:48 +01:00
github-actions[bot]andGitHub 5077fb2238 bump hls.js to v1.5.19 (#4140) 2025-01-11 10:25:29 +01:00
Alessandro RosandGitHub 38f3662f7a playback: in /list, always return 404 when there are no timespans (#4131) 2025-01-10 16:53:28 +01:00
c7595a5cd8 playback: fix extraneous list entry when start time is specified (#4129)
* fix extraneous playback list entry when start time is specified

* add comment and test

---------

Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
2025-01-10 16:20:25 +01:00
Alessandro RosandGitHub 070ea5fc19 rtmp: fix compatibility with DJI Osmo Action 4 (#3802) (#4116) 2025-01-07 17:36:31 +01:00
aler9 1342431c15 webrtc: fix reconnecting to server after a failure (#4022) 2025-01-06 13:51:08 +01:00
Alessandro RosandGitHub 6d7d0e6e21 fix documentation (#4110) 2025-01-05 12:02:04 +01:00
Alessandro RosandGitHub d4c29f8283 webrtc: switch to recvonly transceivers (#4059) (#4108)
This fixes compatibility with devices that support decoding AV1 but
don't support encoding it.

This was previously impossible to achieve due to a bug that prevented
video from being displayed when recvonly transceivers were in use and
audio was not present.
2025-01-04 16:36:03 +01:00
Alessandro RosandGitHub 21b5031d6b playback: improve /list performance (#3663) (#4102)
Segments are now parsed in parallel.
2025-01-03 13:59:49 +01:00
Alessandro RosandGitHub ac0ddc9e8a playback: improve /list response time (#3637) (#4096)
Response times of the /list endpoint were slow because the duration of
each segment was computed from scratch by summing the duration of each
of its parts.

This is improved by storing the duration of the overall segment in the
header and using that, if available.
2025-01-03 13:08:46 +01:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>aler9
0f74cee372 build(deps): bump github.com/bluenviron/gohlslib/v2 from 2.1.0 to 2.1.1 (#4099)
* build(deps): bump github.com/bluenviron/gohlslib/v2 from 2.1.0 to 2.1.1

Bumps [github.com/bluenviron/gohlslib/v2](https://github.com/bluenviron/gohlslib) from 2.1.0 to 2.1.1.
- [Commits](https://github.com/bluenviron/gohlslib/compare/v2.1.0...v2.1.1)

---
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>

* fix tests

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
2025-01-02 13:10:57 +01:00
Alessandro RosandGitHub b49acb1e00 accept durations expressed as days (i.e. '1d') (#4094) 2025-01-02 12:44:15 +01:00
Alessandro RosandGitHub 8cbbbc05c3 rtmp: support additional Enhanced-RTMP features (#3685) (#4088)
new features:
* support publishing Opus and AC-3 tracks
* support publishing more than 2 tracks. This is compatible with OBS multitrack video and OBS VOD audio track
2025-01-02 12:44:01 +01:00
Alessandro RosandGitHub 6425bd5a8e srt: fix compatibility with Blackmagic Design hardware (#3701) (#4087) 2025-01-02 12:43:37 +01:00
Alessandro RosandGitHub d38b7e95fc playback: allow filtering timespans by start and end date (#3637) (#3489) (#4085) 2025-01-02 12:43:18 +01:00
Alessandro RosandGitHub df3362aef8 warn users if deprecated parameters are being used (#4080) 2024-12-25 19:28:54 +01:00
Alessandro RosandGitHub dfb792eb90 rtsp: rename encryption, protocols, serverKey, serverCert into rtspEncryption, rtspProtocols, rtspServerKey, rtspServerCert (#4078) 2024-12-25 18:26:14 +01:00
Alessandro RosandGitHub 8cb584b514 api, metrics: fix RTC lowercase in webRTCSession and webRTCSource (#4076) 2024-12-25 17:47:24 +01:00
Alessandro RosandGitHub 28970b323e fix MTX_CONN_TYPE value with RTSP connections (#3967) (#4075) 2024-12-25 17:42:19 +01:00
Alessandro RosandGitHub 8a808ac0f6 api: add 'session' field to RTSPConn (#3974) (#4074) 2024-12-25 16:17:53 +01:00
Alessandro RosandGitHub 57addb1cc2 api, metrics: add additional RTSP statistics (#3312) (#4073) 2024-12-25 15:43:41 +01:00
Alessandro RosandGitHub f1e031c5c8 fix recording timestamp with some audio codecs (#3969) (#4041) (#4062)
When a stream contained an Opus, MPEG-4 audio or AC3 track, timestamp in
the segment file name was increasing at twice the speed.
2024-12-21 11:18:23 +01:00
d23fb08e2d bump hls.js to v1.5.18 (#4052)
Co-authored-by: mediamtx-bot <bot@mediamtx>
2024-12-18 11:22:53 +01:00
Alessandro RosandGitHub d641392da5 fix race condition when checking configuration (#4044)
* simplify configuration parser

* fix race condition when checking configuration
2024-12-15 12:34:51 +01:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>aler9
cf01683168 build(deps): bump github.com/datarhei/gosrt from 0.7.0 to 0.8.0 (#3992)
* build(deps): bump github.com/datarhei/gosrt from 0.7.0 to 0.8.0

Bumps [github.com/datarhei/gosrt](https://github.com/datarhei/gosrt) from 0.7.0 to 0.8.0.
- [Commits](https://github.com/datarhei/gosrt/compare/v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: github.com/datarhei/gosrt
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix tests

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
2024-12-11 00:42:16 +01:00
Alessandro RosandGitHub 770d72b638 rtmp: support Extended Metadata Frames (#4006) (#4014) (#4018) 2024-12-04 23:29:16 +01:00
github-actions[bot]andGitHub 212382ed2f bump mediamtx-rpicamera to v2.3.6 (#4004) 2024-12-03 07:59:45 +01:00
Alessandro RosandGitHub 72a8b3ca8a webrtc: support publishing and reading H265 tracks (#4003) 2024-12-02 23:55:54 +01:00
Alessandro RosandGitHub 235fd27dce rpicamera: fix restarting camera when component crashes (#3997) 2024-11-30 18:58:33 +01:00
Alessandro RosandGitHub e6fa56dd06 rpicamera: fix restarting stream in case of disconnections or driver errors (#3988) 2024-11-30 11:25:31 +01:00
Alessandro RosandGitHub b77df43536 fix crash when recording a stream with unsupported tracks (#3978) (#3996)
* normalize variable names

* fix file name

* fix crash when recording a stream with unsupported tracks (#3978)
2024-11-30 11:23:41 +01:00
Alessandro RosandGitHub 716660217d remove deprecated build flags syntax (#3930) 2024-11-06 15:07:33 +01:00
Alessandro RosandGitHub 576a117c7c bump Golang to 1.23 (#3702) 2024-11-04 14:02:05 +01:00
f8b366c604 webrtc: restart ICE only on failed connection states (#3899)
* webrtc: Restart ICE only on failed connection states

* rename "connected" into "ready" since WebRTC can emit the "connected" state multiple times

---------

Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
2024-10-31 12:47:35 +01:00
Alessandro RosandGitHub 5ff4f90ff9 webrtc: fix using JavaScript classes from outside the server (#3923) 2024-10-30 21:29:50 +01:00
Alessandro RosandGitHub 20ad88f013 webrtc: move JavaScript reader and publisher into portable classes (#3921) 2024-10-28 18:48:11 +01:00
Alessandro RosandGitHub 51b21c8adb webrtc: include query parameters in session URL (#3920) 2024-10-28 18:35:55 +01:00
Alessandro RosandGitHub 1dd975504f rpi: increase default camera bitrate to 5 Mbps (#3896) 2024-10-21 01:25:32 +02:00
6cd7487857 bump mediamtx-rpicamera to v2.3.4 (#3895)
Co-authored-by: mediamtx-bot <bot@mediamtx>
2024-10-20 16:40:33 +02:00
773116a647 bump hls.js to v1.5.17 (#3885)
Co-authored-by: mediamtx-bot <bot@mediamtx>
2024-10-18 17:42:35 +02:00
Alessandro RosandGitHub a532779e33 simplify Path.HasStaticSource() (#3876) 2024-10-14 14:47:51 +02:00
Alessandro RosandGitHub e2121c6949 bump mediamtx-rpicamera (#3870) 2024-10-13 21:28:27 +02:00
Alessandro RosandGitHub 6188ee1886 fix wrong -dirty prefix in version (#3869) 2024-10-12 22:24:40 +02:00