Commit Graph

233 Commits

Author SHA1 Message Date
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
00efb912aa avoid using fmt.Print* in example 2022-12-09 12:45:16 +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
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
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
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
Alessandro Ros
e264304710 add RTP/VP9 encoder and decoder (#152) 2022-11-14 18:46:26 +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
aler9
ae0df8d4c9 use named constant for MPEG4-audio object type 2022-11-14 16:50:21 +01:00
aler9
8fc6bf35ae improve client-read examples in order to setup only needed tracks 2022-11-14 16:05:14 +01:00
aler9
402cae203e rename aac examples into mpeg4audio examples 2022-11-14 15:59:49 +01:00
aler9
3c358e9cfd add client-publish-codec-pcma example 2022-11-14 15:56:45 +01:00
aler9
54b701049b add *codec* to codec-related examples 2022-11-14 15:54:40 +01:00
aler9
16e4e3c2ef simplify example 2022-11-07 22:01:39 +01:00
Alessandro Ros
7a4c7d6d66 remove h264 decoding and re-encoding (#144)
* stop re-encoding H264

* stop decoding H264

* improve tests
2022-11-02 14:38:05 +01:00
aler9
84cb8a7004 cleanup server-h264-save-to-disk example 2022-11-01 10:24:36 +01:00
aler9
d9d6227906 client: simplify usage of Setup() 2022-11-01 09:58:08 +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
40c1ff8dfe rename rtpaac into rtpmpeg4audio 2022-08-14 12:47:40 +02:00
aler9
537b2033d2 rename TrackAAC into TrackMPEG4Audio 2022-08-05 23:37:53 +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
aler9
e262385062 client: remove StartReading, StartReadingAndWait 2022-07-09 17:08:37 +02:00
aler9
f3b0fc69b4 rename Read / Write into Unmarshal / Marshal when needed
Read() / Write() are used to read / write from streams, while
Unmarshal() / Marshal() are used to decode / encode from / to bytes.
2022-06-27 17:27:16 +02:00
aler9
e82968442d store MPEG4AudioConfig inside TrackAAC instead of storing single fields 2022-06-24 13:25:53 +02:00
aler9
9f4fea8a01 change track initialization method 2022-06-23 13:13:36 +02:00
aler9
a820d95649 normalize NewTrackOpus() 2022-06-23 10:45:07 +02:00
aler9
b4925dbc24 fix crash in client-read-h264-save-to-disk 2022-06-15 10:37:15 +02:00
aler9
2fa3148a27 move URL into dedicated folder 2022-06-05 01:27:19 +02:00
aler9
29ab19d68a fix example 2022-06-03 11:02:42 +02:00
aler9
bcd6f1b549 h264: fix DTS extractor with B-frames and remove PTS-DTS offset 2022-06-03 10:27:05 +02:00
aler9
787c516d79 stop normalizing H264 PTS 2022-06-02 22:25:13 +02:00
aler9
46253a74b0 stop filtering SEI NALU in example 2022-06-02 20:38:11 +02:00
aler9
f60f8fa622 remove double check 2022-06-02 19:01:06 +02:00
aler9
2c3c9ea1c5 delay allocation of dts extractor until it is needed 2022-06-02 18:06:22 +02:00
aler9
d40205e592 cleanup code 2022-06-02 18:04:22 +02:00