Skip to content

Conversation

@alebastr
Copy link
Contributor

Just a minimal set of options to enable realtime encoding.

I have no idea what rate control options should be used, so I'm omitting these. Feel free to suggest a good defaults.

Just a minimal set of options to enable realtime encoding.
static const std::map<std::string, const CodecOptions&> default_codec_options = {
{"libx264", default_x264_options},
{"libx265", default_x264_options},
{"libvpx", default_libvpx_options},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't there be also a line for libvpx-vp9?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it's a substring search so libvpx also matches libvpx-vp9.
The original code did that to avoid listing codec variants like libx264rgb and I preserved the behavior.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, makes sense. Thanks for explaining.

Copy link
Owner

@ammen99 ammen99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, thanks!

@ammen99 ammen99 merged commit b2ef0bc into ammen99:master Dec 24, 2022
@alebastr alebastr deleted the libvpx-codec-options branch December 26, 2022 18:03
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.

3 participants