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

what is the maximum bitrate? #558

Closed
almaceleste opened this issue May 27, 2019 · 7 comments
Closed

what is the maximum bitrate? #558

almaceleste opened this issue May 27, 2019 · 7 comments
Labels

Comments

@almaceleste
Copy link

what is the maximum bitrate for scrcpy?
8 Mbps? or I can set better?

@rom1v rom1v added the question label May 27, 2019
@rom1v
Copy link
Collaborator

rom1v commented May 27, 2019

The bitrate is just forwarded to the codec:

format.setInteger(MediaFormat.KEY_BIT_RATE, bitRate);

How it is used is encoder-dependant. In practice, beyond 12 or 16, it does not change anything.

@almaceleste
Copy link
Author

how can I know my encoder dependence?

@srjbs11
Copy link

srjbs11 commented Jun 9, 2019

I want to know this too
I tried game mirroring, the bitrate drops a lot on pc screen
how can I see the mirrored screen exactly as good as (same as original bitrate) the original mobile screen?

@srjbs11
Copy link

srjbs11 commented Jun 9, 2019

so how can I check the encoder for this scrcpy and upgrade it to display same bitrate as my mobile phone screen?

@srjbs11
Copy link

srjbs11 commented Jun 9, 2019

downloaded and updated codec but still same no lag but bitrate drops so much

@rom1v
Copy link
Collaborator

rom1v commented Jun 9, 2019

how can I see the mirrored screen exactly as good as (same as original bitrate) the original mobile screen?

The screen surface is not encoded to render on the device, so you can't have the same quality without any loss. The raw content for a 1920×1080 video at 60 fps would require 1920×1080×24×60 bits per second, which is 3Gbps.

So the content is encoded in H.264 with a live hardware encoder. Since it's in live, the quality cannot be as good as possible for a given bitrate.

The bitrate is passed as-is to MediaCodec, and the way it impacts the encoding is encoder-dependant (and the max value too).

@rom1v
Copy link
Collaborator

rom1v commented Jun 9, 2019

the bitrate drops a lot on pc screen

Is the quality so bad?

Could you post a recording of several seconds?

scrcpy --record file.mkv

@rom1v rom1v closed this as completed Jun 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants