Skip to content

What is a EncodedVideoChunk or a EncodedAudioChunk? #829

Closed Answered by padenot
erwanvivien asked this question in Q&A
Discussion options

You must be logged in to vote

Encoded{Audio,Video}Chunk are sequences of bytes that are compressed, and correspond precisely to a particular format, for a particular codec. Those are often also called packets. For example, for the Opus audio codec, the specification is described here: https://datatracker.ietf.org/doc/html/rfc6716#section-3.

For video, a packet corresponds to a single image (compressed), for audio, it corresponds to a number of audio samples (in the order of hundreds to a few thousands, typically).

Wav (PCM) is particular because it's not really compressed: as long as you take a group of bytes that has a size that is a multiple of both the sample size (e.g. 2 for 16-bits audio), multiplied by the numbe…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@erwanvivien
Comment options

Answer selected by erwanvivien
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants