Skip to content

Packetization #1

Closed
Closed

Description

@aboba

The APIs make sense for encoding a bitstream, transporting it reliably then decoding and rendering it.

But what if you want to packetize an encoded bitstream within QUIC datagrams and then reassemble and decode it on the other side?

Or what if you want a mixture of reliable and unreliable transport? For example, you might want to provide different transport for keyframes and P-frames. So you might want to separate out portions of the encoded bitstream for reliable transport, and other portions for datagram transport.

Activity

  1. steveanton commented on Aug 28, 2019

    @steveanton
    Contributor

    Networking packetization is out of scope unless it's something useful that the codec supports/specifies. For example, splitting VP8 bitstream into RTP packets is out of scope but exposing the two types of H264 bitstream is in scope.

    Separating the bitstreams by type should be quite possible. Whatever reads the output of the encoder TransformStream will know whether the bitstream packet is a key frame or delta frame and can route the chunk accordingly.

    Re: unreliable transport. WebCodecs will support indicating to the decoder if the bitstream chunks are discontinuous due to e.g. packet loss.

  2. added a commit that references this issue on Aug 28, 2019
  3. pthatcherg commented on Sep 18, 2019

    @pthatcherg
    Contributor

    I think this overlaps, to a degree, with this new tracking issue: #24. If you squint, RTP is a container format.

  4. added a commit that references this issue on Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions