Commit Graph

1382 Commits

Author SHA1 Message Date
aler9
89aa62d01b try to fix DTS extraction of nvenc H264 streams (https://github.com/aler9/rtsp-simple-server/issues/1002) 2022-11-01 19:13:32 +01:00
aler9
dbb6934a3c server: wait for a packet with DTS equal to PTS before filling RTP-Info 2022-11-01 11:20:23 +01:00
aler9
84cb8a7004 cleanup server-h264-save-to-disk example 2022-11-01 10:24:36 +01:00
Alessandro Ros
035ee70202 speed up tests (#143) 2022-11-01 10:13:07 +01:00
aler9
d9d6227906 client: simplify usage of Setup() 2022-11-01 09:58:08 +01:00
aler9
0e6a0b8b25 call OnDecodeError when rtpcleaner returns an error 2022-10-31 18:51:29 +01:00
aler9
b1f72f9392 return error in OnDecodeError when there are oversized UDP packets 2022-10-31 15:53:15 +01:00
aler9
5a5f454814 rtpreordered: improve performance 2022-10-31 15:14:07 +01:00
aler9
e8fde26d55 return error in OnDecodeError when there are lost RTP packets 2022-10-31 15:05:42 +01:00
aler9
30e029011b add OnDecodeError callback to both client and server
This allows to detect decode errors of RTP and RTCP packets
2022-10-31 12:36:30 +01:00
aler9
9b5071f505 update docs 2022-10-31 10:05:34 +01:00
aler9
d40f9a53c9 examples: insert SPS/PPS before IDR groups once 2022-10-29 17:07:09 +02:00
aler9
29e624aad9 rename mpegtsencoder into mpegtsmuxer 2022-10-29 17:02:49 +02:00
aler9
b3cde905f7 add server-h264-save-to-disk example 2022-10-29 16:56:03 +02:00
aler9
6e6be34636 support generic tracks with multiple formats (https://github.com/aler9/rtsp-simple-server/issues/1103) 2022-10-28 19:10:54 +02:00
aler9
394c2f0696 client: support FritzBox 660 Cable (https://github.com/aler9/rtsp-simple-server/issues/1119) 2022-10-28 16:49:28 +02:00
aler9
363ed38625 server: fix memory leak
(https://github.com/aler9/rtsp-simple-server/issues/1206)

RTCPSender was not closed when its corresponding stream was closed
2022-10-28 16:27:18 +02:00
aler9
cc9dcae08a server: make ServerStream.Close() thread-safe 2022-10-28 16:22:31 +02:00
aler9
630b1ebce1 change and check error message 2022-10-28 15:28:05 +02:00
aler9
c51fddc784 server: move serverMulticastHandler inside serverStreamTrack 2022-10-28 14:56:03 +02:00
aler9
0b75c240c7 server: fix bug that allowed two readers to use the same UDP ports
UDP ports of a reader that performed a SETUP request, but not a PLAY
request, were not taken into account when checking port availability
2022-10-28 14:39:23 +02:00
aler9
145b21ef3d update docs 2022-10-28 14:11:58 +02:00
aler9
87e9036976 rtptimedec: increase threshold of negative differences 2022-10-26 16:53:27 +02:00
aler9
7d8e3cf5bc improve tests 2022-10-21 17:02:13 +02:00
Tristan Matthews
0fd8773b35 track_h264: avoid appending empty sps to fmtp line (#129)
This avoids adding fmtp lines of the form "sprop-parameter-sets=" with no value.
2022-10-21 16:58:12 +02:00
aler9
e97d29084e h264: apply NALU count limit during Annex-B and AVCC unmarshaling 2022-10-09 13:21:40 +02:00
aler9
74f941be71 rtptimedec: improve performance 2022-10-09 11:14:20 +02:00
aler9
b3c70f56f7 h264: fix Annex-B decoding
Some Annex-B streams use both [0 0 1] and [0 0 0 1] as delimiters.
These streams are now parsed correctly.
2022-10-08 20:13:46 +02:00
aler9
92cc1b5ee9 update golangci-lint 2022-09-17 21:19:40 +02:00
aler9
e99f799c07 client: support cameras with invalid SSRC in transport header
(https://github.com/aler9/rtsp-simple-server/issues/1118)
2022-08-29 14:51:32 +02:00
aler9
25199d8e16 client: support cameras that sends invalid RTCP packets with TCP
(https://github.com/aler9/rtsp-simple-server/issues/1085)
2022-08-27 17:34:10 +02:00
aler9
0cfbb1fb30 server: send RTCP sender reports to TCP clients too
this allows Nvidia Deepstream to compute NTP timestamp of frames
(https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_NTP_Timestamp.html)
2022-08-25 22:47:38 +02:00
aler9
dff01f3eac update go.mod 2022-08-23 10:45:58 +02:00
aler9
7171f0cf51 support go 1.19; drop support for go 1.16 2022-08-23 10:40:19 +02:00
aler9
1a89e1d932 split makefile into multiple scripts 2022-08-23 10:13:21 +02:00
aler9
155862f15b improve coverage 2022-08-16 10:24:36 +02:00
aler9
8268c27bde update docs 2022-08-15 11:00:26 +02:00
aler9
27f8015ac6 simplify usage of Conn 2022-08-15 00:10:21 +02:00
aler9
06bed24dd9 add intermediate layer between net.Conn and client / server 2022-08-14 23:43:01 +02:00
aler9
a0a168d26c improve tests 2022-08-14 20:54:57 +02:00
aler9
40c1ff8dfe rename rtpaac into rtpmpeg4audio 2022-08-14 12:47:40 +02:00
aler9
1884f8a743 update golangci-lint 2022-08-13 18:18:59 +02:00
aler9
4b19822d51 rename MPEGVideo and MPEGAudio into MPEG2Video and MPEG2Audio 2022-08-07 14:01:00 +02:00
aler9
a2c6a7fb97 server: change behavior in case of unhandled methods
(https://github.com/aler9/rtsp-simple-server/issues/1066)

Return 501 and keep connection open instead of returning 400 and
closing the connection.
2022-08-07 13:51:12 +02:00
aler9
4940e8faeb server: add Session to ServerHandlerOnSetParameterCtx 2022-08-07 13:43:59 +02:00
aler9
702cac94a6 write MPEG in uppercase 2022-08-05 23:40:11 +02:00
aler9
537b2033d2 rename TrackAAC into TrackMPEG4Audio 2022-08-05 23:37:53 +02:00
aler9
592d62e859 support HE-AAC v1 and HE-AAC v2 tracks (#1068) 2022-08-05 23:33:44 +02:00
aler9
b1513c6802 rename pkg/acc into pkg/mpeg4audio 2022-08-05 22:40:05 +02:00
aler9
7d4da47da4 remove deprecated libav function 2022-08-05 14:04:11 +02:00