Commit graph

522 commits

Author SHA1 Message Date
Alessandro Ros
f2f417e451
search for configuration file in various paths, print paths if configuration is not found (#1993) (#2276) (#2357) 2023-09-16 22:14:13 +02:00
Alessandro Ros
64d9060560
add additional environment variables to custom commands (#1414) (#2356)
new variables: MTX_CONN_TYPE, MTX_CONN_ID, MTX_SOURCE_TYPE, MTX_SOURCE_ID, MTX_READER_TYPE, MTX_READ_ID
2023-09-16 21:41:49 +02:00
Alessandro Ros
ed77560811
add runOnDisconnect, runOnNotReady, runOnUnread (#1464) (#2355) 2023-09-16 19:21:48 +02:00
Alessandro Ros
73ddb21e63
implement native recording (#1399) (#2255)
* implement native recording (#1399)

* support saving VP9 tracks

* support saving MPEG-1 audio tracks

* switch segment when codec parameters change

* allow to disable recording on a path basis

* allow disabling recording cleaner

* support recording MPEG-1/2/4 video tracks

* add microseconds to file names

* add tests
2023-09-16 17:27:07 +02:00
Alessandro Ros
b7e7758293
srt, udp: support publishing and reading MPEG-1/2/4 video with SRT and UDP/MPEG-TS (#2277) 2023-09-16 17:23:40 +02:00
Alessandro Ros
a005de1aa0
udp: fix reading two streams with same port and different multicast IP (#2133) (#2332)
Fixes #2133
2023-09-12 00:27:08 +02:00
Alessandro Ros
f07886db5f
print the reason why a source is started or stopped (#2322) 2023-09-09 23:37:56 +02:00
Alessandro Ros
4b5a977c86
rtsp: normalize debug logging of requests / responses (#2321) 2023-09-09 23:08:47 +02:00
github-actions[bot]
82714fddcd
bump hls-js to v1.4.12 (#2283) 2023-09-02 09:56:03 +02:00
Alessandro Ros
ffa34428fc
fix bug that prevented multiple readers from accessing the same stream (#2281) (#2282) 2023-09-01 23:15:27 +02:00
Alessandro Ros
966bec88c6
bump gortsplib, gohlslib, mediacommon (#2279) 2023-09-01 20:10:26 +02:00
Alessandro Ros
5a40a06e9e
fix changing log level with hot reloading or API (#2278) 2023-09-01 19:54:34 +02:00
Alessandro Ros
95baade478
srt: fix memory leak during reader disconnection (#2273) 2023-08-31 23:01:47 +02:00
Alessandro Ros
90bd6cb12b
update dependencies (#2266) 2023-08-30 11:48:03 +02:00
Alessandro Ros
5fb7f4e846
force all readers to use an asynchronous writer (#2265)
needed by #2255
2023-08-30 11:24:14 +02:00
Alessandro Ros
30a69a7722
fix maxReaders limit in case of multiple tracks (#2246) (#2264) 2023-08-30 10:58:24 +02:00
Alessandro Ros
bd1cb35022
fix conversion of AV1/VP9 tracks from HLS/RTMP to RTSP (#2263) 2023-08-29 19:52:39 +02:00
Alessandro Ros
8e955d2119
hls: return 404 when requesting hls.min.js.map (#2262) 2023-08-29 11:03:10 +02:00
Alessandro Ros
30b7245bb9
limit logging of decode errors (#2253) 2023-08-26 23:34:39 +02:00
Alessandro Ros
b72f3577c8
print warning when the write queue is full (#2251) 2023-08-26 19:45:10 +02:00
Alessandro Ros
cf86dbb303
switch to gortsplib/v4 (#2244) 2023-08-26 18:54:28 +02:00
Alessandro Ros
bf8e69ea89
rename readBufferCount into writeQueueSize (#2248) 2023-08-26 13:25:21 +02:00
Alessandro Ros
e0fb11040e
move units into dedicated package (#2245)
needed by #2244
2023-08-25 18:11:02 +02:00
Alessandro Ros
23ddaac481
support publishing VP9 tracks with RTMP (#2247) 2023-08-25 17:02:51 +02:00
Alessandro Ros
482266ae95
hls source: fix formatting debug log messages (#2243) 2023-08-24 22:42:57 +02:00
github-actions[bot]
de90baa697
bump hls-js to v1.4.10 (#2239)
Co-authored-by: mediamtx-bot <bot@mediamtx>
2023-08-23 18:44:47 +02:00
Alessandro Ros
1e15d4995c
embed hls.js into the server (#2202) (#2236) 2023-08-23 18:37:07 +02:00
Alessandro Ros
a29a4c7de7
hls: fix wrong protocol sent to external authentication server (#2213) 2023-08-16 19:17:06 +02:00
Alessandro Ros
659f19f8bb
enable errcheck (#2201) 2023-08-13 16:38:23 +02:00
Daniel
36e608902d
Add video player options via query string (#2145)
* Add video player options via query string.

* use arrow-style functions

* remove redundant check

---------

Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
2023-08-07 22:19:15 +02:00
Alessandro Ros
161a9b54b2
update dependencies (#2176) 2023-08-07 20:25:45 +02:00
Alessandro Ros
efcc4c4e65
fix crash in case of specially-crafted HTTP requests (#2166) (#2169) 2023-08-07 17:16:33 +02:00
Alessandro Ros
61d300396d
remove 'disable' from names of configuration parameters (#2101) 2023-08-06 21:40:08 +02:00
Alessandro Ros
d6058ae469
rename disablePublisherOverride into overridePublisher (#2164) 2023-08-06 21:29:16 +02:00
Alessandro Ros
40b4fa1e8e
support reading and proxying VP9 tracks with HLS (#2162) 2023-08-06 21:10:16 +02:00
Alessandro Ros
a2e94fe3db
normalize error message (#2160) 2023-08-06 17:56:11 +02:00
Alessandro Ros
ff01e56dfe
hls: support proxying AV1 tracks (#2157) 2023-08-06 13:21:43 +02:00
Alessandro Ros
d9b7878c3d
hls: prefer Opus tracks to MPEG-4 tracks (#2158) 2023-08-06 13:21:32 +02:00
Alessandro Ros
153463466c
hls: support reading and proxying AV1 tracks (#2155) 2023-08-06 02:28:28 +02:00
Alessandro Ros
d00b22b5e5
support setting a maximum number of readers per path (#1286) (#2154) 2023-08-05 17:41:54 +02:00
Alessandro Ros
b198cc5952
srt: support runOnRead (#2152) 2023-08-05 17:18:04 +02:00
Alessandro Ros
dd91abae9b
api: add transport to RTSP sessions (#2151) 2023-08-05 17:10:48 +02:00
Alessandro Ros
ce0924ac72
udp: support using domain names instead of IPs (#2150) 2023-08-05 16:40:51 +02:00
Alessandro Ros
8bb71ac8d8
srt, udp: support reading and writing MPEG-1 audio streams (#2147) 2023-08-05 14:47:20 +02:00
Alessandro Ros
bc3084ae7b
support proxying WebRTC streams (#2142) 2023-08-03 23:12:05 +02:00
Alessandro Ros
ef8b9fb63d
webrtc, hls: reply status code 204 to OPTIONS requests (#2141) 2023-08-02 20:52:26 +02:00
Alessandro Ros
1bfc08cca2
update gortsplib (#2138) 2023-08-02 11:39:53 +02:00
Alessandro Ros
556392d2ee
remove workaround for pion/rtp < 1.8.1 (#2134) 2023-08-01 11:38:19 +02:00
Alessandro Ros
b4e3033ea3
support publishing, reading, proxying with SRT (#2068) 2023-07-31 21:20:09 +02:00
Alessandro Ros
d696a782f7
rtmp: simplify API (#2130) 2023-07-31 19:41:59 +02:00