Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional framerate or max_framerate to VideoDecoderConfig #824

Open
taste1981 opened this issue Aug 19, 2024 · 0 comments
Open

Add optional framerate or max_framerate to VideoDecoderConfig #824

taste1981 opened this issue Aug 19, 2024 · 0 comments

Comments

@taste1981
Copy link
Contributor

taste1981 commented Aug 19, 2024

Codecs typically have level constraint related to maximum luma samples/ macroblocks per-second. As such, for isConfigSupported(VideoDecoderConfig config), if level is part of the codec string in config, the maximum possible framerate should be specified in config, which the agent will use in combination of resolution, and the level info in codec string, to decide if the decoder could safely claim support of current codec/profile/level.

The framerate is currently missing from the VideoDecoderConfig. It should be added as optional to facilitate isConfigSupported(). It is encouraged for application to specify the framerate on decoder creation as well, to avoid the agent decoding at an extremely high FPS that exhausts resources.

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

No branches or pull requests

1 participant