mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-10 10:08:52 +00:00
Double the default bitrate
Set the default video bitrate to 8Mbps. This greatly increase quality on fast motion, without negative side effects.
This commit is contained in:
parent
a7979e4e74
commit
e3f5d3b49b
3 changed files with 3 additions and 8 deletions
|
@ -16,7 +16,6 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
|||
|
||||
public class ScreenEncoder implements Device.RotationListener {
|
||||
|
||||
private static final int DEFAULT_BIT_RATE = 4_000_000; // bits per second
|
||||
private static final int DEFAULT_FRAME_RATE = 60; // fps
|
||||
private static final int DEFAULT_I_FRAME_INTERVAL = 10; // seconds
|
||||
|
||||
|
@ -40,10 +39,6 @@ public class ScreenEncoder implements Device.RotationListener {
|
|||
this(bitRate, DEFAULT_FRAME_RATE, DEFAULT_I_FRAME_INTERVAL);
|
||||
}
|
||||
|
||||
public ScreenEncoder() {
|
||||
this(DEFAULT_BIT_RATE, DEFAULT_FRAME_RATE, DEFAULT_I_FRAME_INTERVAL);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onRotationChanged(int rotation) {
|
||||
rotationChanged.set(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue