Commit Graph

1382 Commits

Author SHA1 Message Date
aler9
c88c5c822a update readme 2023-02-25 20:36:29 +01:00
Alessandro Ros
de998e779b support go 1.20 (#189) 2023-02-25 17:59:58 +01:00
Alessandro Ros
61858cefe5 update dependencies (#188) v2.1.3 2023-02-20 11:04:26 +01:00
Nils Zottmann
1c50779598 Allow RTCP packets for keepalive also in state PLAY (#185) (#186)
* Allow RTCP packets for keepalive also in state PLAY (#185)

* use sessionTimeout instead of ReadTimeout

* reset udpLastPacketTime before PLAY and RECORD

* change error message in case of timeouts

* fix comment

---------

Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
v2.1.2
2023-02-13 13:22:38 +01:00
aler9
d75c8e4788 speedup tests 2023-02-13 13:18:22 +01:00
Alessandro Ros
6e9e4d7e88 move standards list in a dedicated README section (#187) 2023-02-12 18:17:52 +01:00
Alessandro Ros
6deba3e454 prevent RAM exhaustion with some SPS strings (#184) 2023-02-06 22:18:20 +01:00
aler9
82f69e94f6 server: update error message
replace 'teared down' with 'torn down'
2023-02-05 19:02:42 +01:00
aler9
9b14285018 client: fix bug that limited UDP clients to 1024 (#179)
A function that returned a random port was wrongly returning only 1024
possible values.
v2.1.1
2023-02-04 20:28:13 +01:00
aler9
1d915dcc81 change error message v2.1.0 2023-01-23 13:52:11 +01:00
Alessandro Ros
df8077ce7c server: fix race condition (#178) 2023-01-23 13:19:56 +01:00
Alessandro Ros
a2d6ce8af6 replace OnDecodeError with OnWarning (#177) 2023-01-23 12:54:57 +01:00
Alessandro Ros
14fcde1c69 client: call OnDecodeError() during protocol switch from UDP to TCP (#176) 2023-01-23 12:41:14 +01:00
Alessandro Ros
7b6a5f8cb3 Add proxy example (#141) (#175)
* cleanup

* add proxy example
2023-01-23 11:23:16 +01:00
Alessandro Ros
82dac32f6e format: fix compatibility with some TP-Link cameras (#174)
https://github.com/aler9/rtsp-simple-server/issues/1267
2023-01-22 19:32:17 +01:00
Alessandro Ros
f6438ed8d1 normalize file names (#173) 2023-01-22 11:44:20 +01:00
Alessandro Ros
b55886f6df media: preserve recvonly, sendonly and sendrecv attributes (#171) 2023-01-22 11:23:59 +01:00
Alessandro Ros
341d0a6a0e media: remove redundant pointer (#172) 2023-01-21 20:15:00 +01:00
Alessandro Ros
40574c4fb6 sdp: fix multiple crashes in SDP parser (#170)
* sdp: support parsing example SDP In ONVIF specification

* sdp: fix crash in SDP parser; add fuzz tests

* sdp: improve coverage
2023-01-21 19:32:40 +01:00
aler9
e3f21fc59f client: send TEARDOWN even when PLAY or RECORD have not been sent yet 2023-01-19 10:31:28 +01:00
Alessandro Ros
71bd86cff9 client: improve automatic protocol switching (#169)
(https://github.com/aler9/rtsp-simple-server/issues/1105)

when a camera receives a UDP request and replies with a TCP response,
switch protocol from UDP to TCP.
2023-01-19 09:41:24 +01:00
aler9
ca3ab98cca server: fix generation of RTP-Info v2.0.5 2023-01-11 00:57:30 +01:00
aler9
8664d5413d fix high level tests 2023-01-11 00:47:39 +01:00
aler9
645f9462e2 server: support publishing/reading to/from path '/' or '' 2023-01-11 00:39:58 +01:00
aler9
e86bf26343 cleanup examples 2023-01-08 22:13:15 +01:00
aler9
5a1fdd13a9 h264: fix DTS extractions with some cameras v2.0.4 2023-01-08 18:13:38 +01:00
aler9
8912d5e643 restore compatibility with go 1.17 v2.0.3 v2.0.2 2023-01-08 12:45:46 +01:00
aler9
c9d7b05308 jpeg: add fuzz tests 2023-01-08 12:01:04 +01:00
aler9
8a1dd54d61 h264: fix crash in Annex-B decoding, add fuzz tests 2023-01-08 11:53:56 +01:00
aler9
73c9840bbe formatdecenc: fix crash in VP9 decoder 2023-01-07 17:41:12 +01:00
aler9
0499d99e83 formatdecenc: fix crash in MJPEG decoder; add fuzz tests 2023-01-07 16:43:45 +01:00
aler9
441a90a519 improve examples 2023-01-07 11:46:00 +01:00
aler9
bf12e12afd client: decrease security issues with AnyPortEnable
When AnyPortEnable is true, store the port of the first incoming packet
and check that following packets use the same port
v2.0.1
2023-01-07 11:06:10 +01:00
aler9
7137d8534a isolate UDP listeners from client / server 2023-01-07 10:59:15 +01:00
Alessandro Ros
2e88705875 improve coverage (#168) v2.0.0 2023-01-06 23:34:10 +01:00
aler9
a759ba9d01 h264: improve DTS extractor
This improves the DTS extractor in order to work with streams with no
timing infos or incorrect timing infos
2023-01-06 15:00:16 +01:00
aler9
f7e8c5b4bb h265: fix crash in DTSExtractor
Check that SPS.VUI and SPS.VUI.TimingInfo are not nil
2023-01-05 23:26:17 +01:00
aler9
07ad99402a h264: fix crash in DTSExtractor
Check that SPS.VUI or SPS.VUI.TimingInfo are not nil
2023-01-05 14:41:53 +01:00
aler9
7f11619db8 update readme 2023-01-03 19:19:58 +01:00
aler9
0ce4354144 h264: remove useless variable 2023-01-03 16:30:02 +01:00
aler9
62296a3eca examples: fix client-read-format-h264-save-to-disk example 2023-01-03 16:30:02 +01:00
aler9
ab0c73c8d8 h264, h265: rename 'nalus' into 'au' 2023-01-03 16:30:02 +01:00
aler9
19a12923a3 h264: simplify DTS extractor 2023-01-03 16:30:02 +01:00
aler9
7546b34f6e add issue-lock workflow 2022-12-31 16:50:17 +01:00
aler9
ce25207cb8 h265: rename SPS variables in order to follow ISO specification more closely 2022-12-29 13:37:05 +01:00
aler9
33fe24eb6d remove redundant variables 2022-12-28 23:32:20 +01:00
aler9
da21f946e5 add h265 DTS extractor 2022-12-28 20:21:16 +01:00
aler9
5d8e0d9564 add Media.FindFormat() 2022-12-27 17:42:35 +01:00
aler9
5f2ac979c5 move pkg/mpeg4audio into pkg/codecs/mpeg4audio 2022-12-27 17:30:53 +01:00
aler9
824fd75d18 rename MJPEG label into M-JPEG 2022-12-27 17:27:59 +01:00