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

Adaptive Bitrate while Streaming affects Recording to File Quality? #1694

Open
kenle opened this issue Dec 31, 2024 · 1 comment
Open

Adaptive Bitrate while Streaming affects Recording to File Quality? #1694

kenle opened this issue Dec 31, 2024 · 1 comment

Comments

@kenle
Copy link

kenle commented Dec 31, 2024

Hi @pedroSG94 ,

It seems that when the bitrate is changed during streaming it affects the file recording as well?

For example:

bitrateAdapter = new BitrateAdapter(new BitrateAdapter.Listener() {

          @Override
          public void onBitrateAdapted(int bitrate) {
                genericStream.setVideoBitrateOnFly(bitrate);
          }
}

Just wanted to confirm if that's true because it appears that way.

If yes, is it difficult to have separate bitrates?

Thanks,

  • Ken
@pedroSG94
Copy link
Owner

Hello,

Sorry for late response

Yes, that affect to record too because both use the same VideoEncoder class. Recently I added a feature to allow record and stream with differents resolutions. If you use it the library create a VideoEncoder for each case and that method only will affect to stream.
You only need update your prepareVideo method to use this parameters:
recordWidth: Int, recordHeight: Int

Remember that you must use a different resolution than streaming but with the same aspect ratio. I have plan to update it to allow use the same resolution but it is not available for now

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

2 participants