mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
GB28181: Support GB28181-2016 protocol. v5.0.74 (#3201)
01. Support GB config as StreamCaster. 02. Support disable GB by --gb28181=off. 03. Add utests for SIP examples. 04. Wireshark plugin to decode TCP/9000 as rtp.rfc4571 05. Support MPEGPS program stream codec. 06. Add utest for PS stream codec. 07. Decode MPEGPS packet stream. 08. Carry RTP and PS packet as helper in PS message. 09. Support recover from error mode. 10. Support process by a pack of PS/TS messages. 11. Add statistic for recovered and msgs dropped. 12. Recover from err position fastly. 13. Define state machine for GB session. 14. Bind context to GB session. 15. Re-invite when media disconnected. 16. Update GitHub actions with GB28181. 17. Support parse CANDIDATE by env or pip. 18. Support mux GB28181 to RTMP. 19. Support regression test by srs-bench.
This commit is contained in:
parent
9c81a0e1bd
commit
5a420ece3b
298 changed files with 43343 additions and 763 deletions
|
@ -219,6 +219,8 @@ public:
|
|||
// For decoder only, the ts message does not use them, for user to get the channel and packet.
|
||||
SrsTsChannel* channel;
|
||||
SrsTsPacket* packet;
|
||||
// For decoder only, the ts message does not use them, to get the RTP packet source.
|
||||
void* ps_helper_;
|
||||
public:
|
||||
// The audio cache buffer start pts, to flush audio if full.
|
||||
// @remark the pts is not the adjust one, it's the orignal pts.
|
||||
|
@ -228,6 +230,9 @@ public:
|
|||
bool write_pcr;
|
||||
// Whether got discontinuity ts, for example, sequence header changed.
|
||||
bool is_discontinuity;
|
||||
public:
|
||||
// The chunk id of TS packet.
|
||||
uint8_t continuity_counter;
|
||||
public:
|
||||
// The timestamp in 90khz
|
||||
int64_t dts;
|
||||
|
@ -237,8 +242,6 @@ public:
|
|||
SrsTsPESStreamId sid;
|
||||
// The size of payload, 0 indicates the length() of payload.
|
||||
uint16_t PES_packet_length;
|
||||
// The chunk id.
|
||||
uint8_t continuity_counter;
|
||||
// The payload bytes.
|
||||
SrsSimpleStream* payload;
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue