Commit graph

66 commits

Author SHA1 Message Date
aler9
6921a402d1 decode the configuration when decoding JSON 2021-09-27 16:40:49 +02:00
aler9
54292d712e convert the configuration into JSON before loading it 2021-09-27 16:40:49 +02:00
aler9
ca9645c2f9 api: decode durations from strings instead of numbers
This allows to use human-readable durations with the API,
for instance: "5s" instead of 5000000000
2021-09-26 23:21:37 +02:00
aler9
3b0327233e move hls utils into gortsplib 2021-09-23 20:14:20 +02:00
aler9
e2f33a7495 api: support working with path configs that contains slashes (#581) 2021-09-23 09:07:36 +02:00
aler9
9398cea0c2 update golangci-lint 2021-09-09 23:05:54 +02:00
aler9
02afa8ff99 rtmp, hls: remove initial difference of 2secs between PTS and DTS of H264 2021-09-07 10:04:58 +02:00
aler9
e189f4570c hls, rtmp: set DTS = PTS when a IDR frame is received 2021-09-06 19:04:39 +02:00
aler9
ddcd0c34cf api: fix concurrency issue when creating multiple path configs at once (#542) 2021-09-06 18:39:15 +02:00
aler9
df4c268813 support proxying HLS 2021-09-05 18:00:29 +02:00
aler9
5eb4741278 hls: speed up serving of files 2021-09-05 15:47:28 +02:00
Lionel Nicolas
450acfaf4e externalcmd: fix crash when manually pushing to an ondemand path 2021-08-27 08:37:24 +02:00
aler9
b65207012c update gortsplib 2021-08-25 19:51:59 +02:00
aler9
6d69e4969e hls: set html video height to 100% 2021-08-23 13:12:14 +02:00
aler9
92523c2a13 hls: insert segments into playlist only after they're complete
In this way, EXT-X-TARGETDURATION and EXTINF are always filled correctly.

If no segments have been generated yet, the playlist is not returned
until a segment is inserted or the muxer is closed. This causes timeout
issues on iOS Safari, that are solved by waiting for a fetch() before starting
the video.
2021-08-23 13:12:09 +02:00
aler9
6e5564c0a2 api: return rtspsSessions in case of RTSPS sessions 2021-08-20 10:32:43 +02:00
aler9
da44bbd18a api: normalize entity names 2021-08-20 10:13:41 +02:00
aler9
801ef44f54 rtsp, rtmp: fix ignored errors 2021-08-19 17:28:42 +02:00
aler9
4fdd42fa58 hls: rename remuxer into muxer 2021-08-18 15:49:12 +02:00
aler9
ca499a27c3 remove stats from rtmp and rtsp source 2021-08-18 15:43:56 +02:00
aler9
60823aa2b6 print 'ready' only when a source is really ready 2021-08-18 15:42:41 +02:00
aler9
a2ff0d455f do not allow closed static sources to set a path as ready 2021-08-18 15:41:03 +02:00
aler9
96cb56621a hls: add primary playlist 2021-08-16 18:07:10 +02:00
aler9
ba41af91b2 hls: remove useless check 2021-08-15 09:23:19 +02:00
aler9
30910d52d2 hls: increase video size up to 100% of the page (#480) 2021-08-14 16:51:51 +02:00
aler9
ffe4a2d1e7 hls: support reading on iOS Safari 2021-08-14 16:35:25 +02:00
aler9
600f7bf48c hls: move NALU filtering into hls muxer 2021-08-14 16:35:25 +02:00
aler9
40a5c78c8d fix comment 2021-08-14 16:21:05 +02:00
aler9
9486f4f32d hls: reply with 404 to invalid requests 2021-08-14 11:15:59 +02:00
aler9
7765de44fc api: log right protocol version of responses 2021-08-14 11:08:02 +02:00
aler9
e0a215ab53 api: log requests and responses even in case of code 404 2021-08-14 11:00:56 +02:00
aler9
0de711d7e0 hls, rtmp: print clearer error messages (#501)
in case a stream doesn't contain a H264 track
or a AAC track.
2021-08-13 14:16:36 +02:00
aler9
d7f1c04711 close custom commands with SIGQUIT instead of SIGINT (#495) 2021-08-12 15:16:39 +02:00
aler9
f1a812ba5d rewrite metrics system to provide more data (#492) 2021-08-12 11:49:21 +02:00
aler9
6702cb41ed api: make sure that entities are deleted immediately after a kick request 2021-08-12 10:50:29 +02:00
aler9
da7f9c7ee1 api: add RTSPS endpoints to list and kick RTSPS sessions 2021-08-11 17:33:43 +02:00
aler9
e57177ef49 cleanup 2021-08-11 13:57:33 +02:00
aler9
20ac25571c api: add "state" field to RTSP sessions and RTMP connections 2021-08-11 12:25:19 +02:00
aler9
6163095a11 fix crash that happens when sourceOnDemand is true and a source times out 2021-08-10 18:36:34 +02:00
aler9
3872b42434 hls: fix freeze when sourceOnDemand is yes and multiple sources are requested at the same time (#493) 2021-08-10 15:00:07 +02:00
aler9
10b5a6b4dd api: add v1 prefix 2021-08-07 19:20:39 +02:00
aler9
3134b95e80 api: add documentation 2021-08-07 19:20:39 +02:00
aler9
0535ab8e9c api: add tests 2021-08-07 19:20:39 +02:00
aler9
5943660ab3 api: print all requests and responses when logLevel is debug 2021-08-07 19:20:39 +02:00
aler9
ed375583d0 Implement an HTTP API to query and control the server 2021-08-07 19:20:39 +02:00
aler9
e516d265d6 refactor ondemand system 2021-08-03 22:40:47 +02:00
aler9
fd27ed941e fix multiple freezes 2021-08-01 17:22:28 +02:00
aler9
90e24b79cb cleanup 2021-08-01 16:58:46 +02:00
aler9
f0a283d141 reload only rtsp server when authMethods is changed 2021-08-01 16:56:53 +02:00
aler9
f1b365a7bc cleanup 2021-08-01 16:39:40 +02:00