Skip to content

Emit VideoDecoderConfig with VideoEncoder output - #113

Merged
chcunningham merged 4 commits into
less_algorithmsfrom
encoder_emits_decoder_config
Feb 10, 2021
Merged

chcunningham merged 4 commits into
less_algorithmsfrom
encoder_emits_decoder_config

Conversation

@chcunningham

@chcunningham chcunningham commented Dec 11, 2020 •

Copy link
Copy Markdown
Collaborator

Supplying the VideoDecoderConfig tells VideoEncoder users how to
eventually decode their encoded chunks. Fixes #108.

The EncodedVideoChunkOutputCallback will emit this config alongside the
EncodedVideoChunk anytime the config changes. State is added to detect
changes and fill out the config.

This also updates the sizing info in VideoEncoderConfig to be more
consistent with VideoDecoderConfig (helpful when generating the decoder
config). Fixes #93.


Preview | Diff

Supplying the VideoDecoderConfig tells VideoEncoder users how to
eventually decode their encoded chunks. See #108.

The EncodedVideoChunkOutputCallback will emit this config alongside the
EncodedVideoChunk anytime the config changes. State is added to detect
changes and fill out the config.

This also updates the sizing info in VideoEncoderConfig to be more
consistent with VideoDecoderConfig (helpful when generating the decoder
config). See #93.
@chcunningham

chcunningham commented Feb 10, 2021 •

Copy link
Copy Markdown
Collaborator Author

@padenot approved the API shape changes in our weekly editors call. I filed #138 for follow up on the issue of racing [[active encoder config]]

@chcunningham
chcunningham merged commit 010a5d4 into less_algorithms Feb 10, 2021
chcunningham added a commit that referenced this pull request Feb 10, 2021
This brings in changes from #113:
Emit VideoDecoderConfig with VideoEncoder output

I originally created #113 of the in-progress
less_algorithms branch, and I ultimately landed the PR there
to make the PR commit history more readable.
chcunningham added a commit that referenced this pull request Apr 21, 2021
For VideoDecoderConfig, the coded size attributes are no longer
required. They only serve as a hint for the UA to create an approriate
underlying decoder (e.g. hardware accelerated for higher resolutions)
and are not strictly required. Fixes #94.

For VideoEncoderConfig, cropWidth and cropHeight are renamed to simply
be width and height. The crop prefix was added in #113 as I realized
that we were describing the "crop" size of the encoded VideoFrames. But
I now think this risks giving the impression that the encoder is going
to crop frames. Being intuitive is more important than being pedantic.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Encoders should emit a decoder config describing the encoded stream Clean up crop/display size in VideoEncoderConfig

1 participant