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

Added ability in stream to modify video codec framerate #3930

Closed
wants to merge 3 commits into from

Conversation

shubhamfuloria
Copy link
Contributor

@shubhamfuloria shubhamfuloria commented Apr 17, 2024

Openh264 codec supports dynamic change of bitrate and framerate. This pull request contains functionality with which we can modify framerate of encoding stream after the codec is open with SetOption API of openh264.

@sauwming
Copy link
Member

Unfortunately modifying framerate is not that simple, since it not only involves the codec, but also other components such as video stream, otherwise the video stream may not know that the framerate has changed. There's also the issue with SDP negotiation which may limit the framerate that can be sent, so bypassing this may not be a good idea.

So, for major modifications such as resolution and/or fps, it may be better to send re-INVITE with REINIT_MEDIA instead.

@sauwming sauwming closed this Apr 23, 2024
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.

2 participants