rtci-rtp 0.1.0

RTP packets, header extensions (RFC 3550, RFC 8285) and codec payload formats for WebRTC
Documentation
rtci-rtp-0.1.0 has been yanked.

rtci-rtp

RTP packets and headers, one-byte and two-byte header extensions with typed codecs for the extensions WebRTC uses, and per-codec packetizers and depacketizers, including the SVC layer structures and the SFrame payload format.

Specifications

  • RFC 3550, RTP; RFC 3551, the audio/video profile; RFC 8285, header extensions
  • Payload formats: RFC 6184 (H.264), RFC 7798 (H.265), RFC 7741 (VP8), RFC 9628 (VP9), the AV1 RTP specification, RFC 7587 (Opus), RFC 4733 (DTMF), RFC 2198 (RED), RFC 3389 (comfort noise)
  • Header extensions: RFC 6464 and RFC 6465 (audio levels), RFC 7941 (SDES items), abs-send-time, abs-capture-time, transport-wide sequence numbers, the AV1 dependency descriptor
  • draft-ietf-avtcore-rtp-sframe, the SFrame payload format; W3C WebRTC SVC scalability modes

Clause-by-clause status, with the test that proves each clause: rfc3550, rfc8285, rfc6184, rfc7798, rfc7741, rfc9628, av1-rtp, rfc7587, rfc4733.

Use

packet::Packet and header::Header marshal and unmarshal through rtci-shared's traits and get or set extensions by id; packetizer::Packetizer with a codec payloader turns an encoded frame into payloads, and the depacketizers reverse it. The root crate (rtci) uses it for every media stream.

Sans-I/O

Codecs and packetizers only: no socket, no clock (timestamps come from the caller), no encryption (that is rtci-srtp).

Licence

Licensed under either of the MIT licence or the Apache License, Version 2.0, at your option.

This crate is part of the rtci workspace, which descends from webrtc-rs/rtc and is developed independently; FORK.md lists what it carries over upstream. Upstream's licence and copyright notices are retained.