Comments (4)
One pair of black bars is added by your phone to match the phone aspect ratio. Scrcpy mirrors the whole phone screen (including these bars), but the result does not match your computer screen, so it adds black bars.
To avoid the problem, one solution could be to crop mirroring with --crop=…
, unfortunately this is broken since Android 14: #4011.
The other solution is to change your physical device screen resolution to match the aspect ratio of your computer display (adb shell wm size …
).
from scrcpy.
Is the cropping being done on the phone with that method? Why can't the video be cropped by my PC?
Also this doesn't happen with every app. I'm playing Space Marshals and it happens with 1 but not 2 or 3. I haven't found any other app that does it so far.
from scrcpy.
Is the cropping being done on the phone with that method?
Are there any black bars on your phone?
Please run scrcpy
but keep the window windowed (not maximized). How is the content? Please post a screenshot.
Also, please record a few seconds on the app you're mirring with scrcpy --record=file.mp4
, and post the result.
from scrcpy.
Yes I measured it out by showing the pointer location setting in developer options. A width of 120 pixels are used for a black bar to mask the camera being under the display, it stays with the camera even when I flip the phone. My phone screen is 2400 x 1080
The screenshot shows it on the other side. And shrinking the window causes the black bar to scale down with the rest of the display.
https://youtu.be/rEEeb68QsuQ?si=VCz42n0hNLhxDPzm&t=31
from scrcpy.
Related Issues (20)
- Add a virtual navigation bar 添加虚拟导航栏 HOT 3
- Cant control my phone HOT 3
- Wrong phones opening when using a combined bat file HOT 11
- No one could answer so I closed this
- Botão home do mouse= Mouse home button HOT 1
- Not all cameras are showing up on the Samsung Galaxy S24 Ultra HOT 2
- 笔记本合盖时,连接后无法显示画面,全黑。但可以滑动,相当于盲操作。 HOT 1
- [QUESTION] how do I find running server control messages port number? HOT 3
- Insert from clipboard via App context menu not working. Only via Hotkey CTRL+V HOT 1
- Display mirroring doesn't work for Onyx Boox device HOT 2
- cant connect using scrcpy on my android device, need serious help with this one, tried EVERYTHING HOT 4
- Is it possible to turn android device to webcam using camera mirroring and v4l2loopback? HOT 2
- Scrcpy doesn't work for audio forwarding in a TTY terminal HOT 2
- controlling HOT 2
- How for Forward Audio (Input & Output and every Audio) from Phone to PC (Ubuntu) HOT 2
- iPhone support HOT 2
- 2 fingers tap & move: distinguish between zoom and scrolling HOT 16
- ALT key and Windows key Issue HOT 7
- can not using DisplayManager API . it using SurfaceControl API. Exception is null receiver. HOT 10
- No work Redmi note 12 HOT 1
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.