Code Monkey home page Code Monkey logo

Comments (4)

rom1v avatar rom1v commented on September 27, 2024

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.

deoxal avatar deoxal commented on September 27, 2024

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.

rom1v avatar rom1v commented on September 27, 2024

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.

deoxal avatar deoxal commented on September 27, 2024

Screenshot 2024-08-19_17-38-39

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.