Commit Graph

1457 Commits

Author SHA1 Message Date
aler9
b9a15679b3 update readme 2022-12-13 18:23:26 +01:00
aler9
f62da20a99 rename files 2022-12-13 18:07:38 +01:00
aler9
38b24b8e26 rename 'track' references into 'format' 2022-12-13 18:06:41 +01:00
aler9
50d6b2e916 fix race condition when calling format.Clone() 2022-12-13 17:10:01 +01:00
aler9
0f87a1cf41 server: add ServerSession.SetuppedMedias() 2022-12-12 20:10:24 +01:00
aler9
6f452f32aa Merge branch 'v1' 2022-12-12 18:19:16 +01:00
aler9
107d7b618d fix support for LPCM tracks with no explicit channel count
(https://github.com/aler9/rtsp-simple-server/issues/1292)
v1.0.1
2022-12-12 18:13:16 +01:00
aler9
d58970493e update readme 2022-12-12 16:16:36 +01:00
aler9
442cfcf2df media: remove pointer from Medias.FindFormat() 2022-12-12 01:00:25 +01:00
aler9
d74b7429ca update docs link 2022-12-12 00:21:02 +01:00
aler9
233a51b388 update readme 2022-12-12 00:19:37 +01:00
aler9
a50247956f rename medias.Format into medias.FindFormat 2022-12-12 00:16:25 +01:00
aler9
46cbb885b7 improve coverage 2022-12-11 23:40:01 +01:00
aler9
0c13440721 rename rtpcodecs into formatdecenc 2022-12-11 22:56:59 +01:00
aler9
256877086b merge serverWriter and clientWriter 2022-12-11 22:54:16 +01:00
Alessandro Ros
a1396206b5 convert Tracks into Medias and Formats (#155)
* split tracks from medias

* move tracks into dedicated package

* move media into dedicated package

* edit Medias.Marshal() in order to return SDP

* add medias.Find() and simplify examples

* improve coverage

* fix rebase errors

* replace TrackIDs with MediaIDs

* implement media-specific and track-specific callbacks for reading RTCP and RTP packets

* rename publish into record, read into play

* add v2 tag

* rename tracks into formats
2022-12-11 22:03:22 +01:00
aler9
2a5b3e3ee5 server: return error in case of unexpected interleaved frames v1.0.0 2022-12-11 17:59:58 +01:00
aler9
fa95f5a86b add Client.SetupAll() 2022-12-11 14:25:35 +01:00
aler9
99855bd3a2 allow invalid RTCP packets in both client and server
(https://github.com/aler9/rtsp-simple-server/issues/1085)

Invalid RTCP packets, in both server and client, do not trigger a fatal
error anymore but they're just blocked. OnDecodeError() is called in
order to emit a warning.
2022-12-09 12:48:33 +01:00
aler9
00efb912aa avoid using fmt.Print* in example 2022-12-09 12:45:16 +01:00
aler9
e6e7f11ee1 improve coverage 2022-12-09 12:31:18 +01:00
Alessandro Ros
8515d62735 fix codecov / github api limits (#157) 2022-11-29 15:48:15 +01:00
aler9
d521a785c4 support tracks without clock rate 2022-11-27 21:17:48 +01:00
aler9
f16cb173b7 rename read-codec and publish-codec examples into read-track and publish-track 2022-11-27 19:42:05 +01:00
aler9
ab0c9e64c9 merge TrackPCMA and TrackPCMU into Track G711 2022-11-27 19:36:46 +01:00
aler9
150f16ae65 revert 15ec133 2022-11-20 22:33:48 +01:00
aler9
be93b242a5 examples: disconnect allow overriding publishers in server 2022-11-20 22:16:16 +01:00
aler9
ed8665762a examples: fix memory leak in server-h264-save-to-disk 2022-11-20 22:15:49 +01:00
aler9
91e15d6e1a examples: fix x265enc flags 2022-11-20 22:07:25 +01:00
aler9
15ec13386d improve ptsEqualsDTS algothm with H264 tracks 2022-11-20 12:29:59 +01:00
aler9
9f5ab03742 headers: simplify usage of Range 2022-11-20 11:33:49 +01:00
aler9
e6477ceacc add Track.String() method 2022-11-19 20:39:53 +01:00
aler9
a682c228b2 do not check for codec case when parsing tracks 2022-11-19 09:50:51 +01:00
aler9
87d5a512b1 add TrackVorbis 2022-11-15 23:27:55 +01:00
aler9
c2c0230669 move RTP decoders/encoders into pkt/rtpcodecs 2022-11-15 23:08:36 +01:00
Alessandro Ros
9795e9175a add H265 decoder and encoder (#154) 2022-11-15 23:01:26 +01:00
aler9
a7e222d3e6 add RTP/LPCM decoder and encoder 2022-11-15 22:11:26 +01:00
aler9
0bee80a277 add CreateEncoder() method to add tracks that have an encoder 2022-11-15 17:31:55 +01:00
aler9
8984685105 add RTP encoder/decoder for G722, PCMA, PCMU 2022-11-15 17:22:40 +01:00
aler9
f07fad893f add TrackLPCM and client-publish-codec-lpcm example 2022-11-14 22:46:23 +01:00
aler9
cb05e71b46 add TrackG722 and client-publish-codec-g722 example 2022-11-14 22:16:55 +01:00
aler9
1656e0e823 add CreateDecoder() method to all tracks that can be decoded 2022-11-14 21:32:49 +01:00
Alessandro Ros
51b8063325 rtph264: return error in decoder if packetization-mode is 2 (#153) 2022-11-14 21:23:13 +01:00
aler9
1161ed966f fix race condition in tests 2022-11-14 20:12:45 +01:00
aler9
cac23fd512 update readme 2022-11-14 18:46:59 +01:00
Alessandro Ros
e264304710 add RTP/VP9 encoder and decoder (#152) 2022-11-14 18:46:26 +01:00
aler9
34545becc3 rtpreorder: do not freeze in case the stream timestamp resets 2022-11-14 18:39:20 +01:00
Alessandro Ros
4d7abfc638 add RTP/VP8 encoder and decoder (#149) 2022-11-14 17:38:58 +01:00
Alessandro Ros
0ad09c2184 add RTP/Opus decoder and encoder (#151) 2022-11-14 17:12:58 +01:00
Alessandro Ros
7951b2e4af allow to set NTP of outgoing packets in both client and server (#148) 2022-11-14 16:55:40 +01:00