Comments (6)
Is there a way to set it to the correct resolution?
Use a resolution multiple of 8. It always rounds down to a multiple of 8 because it is a requirement of many encoders.
from scrcpy.
But then I would still not be able to go into fullscreen since the my display's resolution is 1366x768 and it looks really bad with any other resolution. If I change the encoder would that fix it?
Thank you a lot for replying so fast!
from scrcpy.
Try removing all roundings (& ~7
):
scrcpy/server/src/main/java/com/genymobile/scrcpy/ScreenInfo.java
Lines 116 to 128 in 206809a
from scrcpy.
It did work! tysm!
Why not add the changes to main? Would be too dangerous? Or maybe an option to disable the rounding?
Anyway, thank you a lot.
from scrcpy.
Why not add the changes to main?
I think that many encoders fail with non-multiples of 8 (at least that was the case a few years ago).
Or maybe an option to disable the rounding?
Yes, an option --size-rounding=
(or with a better name?) would be useful:
- only accepts powers of two
- the default would be 8
- to avoid any rounding, use
--size-rounding=1
Do you want to work on it?
from scrcpy.
Sure, I will try.
You can mark this issue as closed if you want.
from scrcpy.
Related Issues (20)
- Please, help
- Openmic in-game while Mirroring + Audio
- Audio outputting on phone instead of PC HOT 1
- Demuxer 'video' error and "Given calling package android does not match caller's uid 2000" HOT 2
- Scrcpy v2.4 dengan Android 14, layar hp tampil tapi tidak bisa dikontrol lewat pc HOT 1
- Strange Audio Issue HOT 5
- In-Game Microphone
- Missing call of CloseHandle() in process.c (after successful CreateProcessW()) HOT 2
- --no-audio, error when exit terminal HOT 4
- segmentation fault + ffmpeg parameter error + memory leaks HOT 24
- Recover data from a no touch + no video VIVO v2110
- is it possible to overwrite the bank app casting block when using scrcpy? HOT 1
- option unrecognized HOT 1
- R36S - Arkos - RK3326 - RGB20S - RG351MP HOT 1
- Smooth Mouse Movement Between Multiple Displays Using scrcpy --mouse=uhid
- scrcpy dont mirror motorola edge 30 neo HOT 1
- mouse and keyboard HOT 2
- Screen video fails on Nokia 5.3 running Android 12
- view camera and screen at same time HOT 2
- Bluetooth otg mode
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scrcpy.