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

Black borders displayed; CTRL+X / double clicking is ignored. #548

Closed
BrainSlugs83 opened this issue May 22, 2019 · 7 comments
Closed

Black borders displayed; CTRL+X / double clicking is ignored. #548

BrainSlugs83 opened this issue May 22, 2019 · 7 comments

Comments

@BrainSlugs83
Copy link

BrainSlugs83 commented May 22, 2019

Running the following command to launch the 64-bit build linked from readme.md on master:

:: Insert real serial below
SET SERIAL=-s 0000dead0000beef
scrcpy-noconsole %SERIAL% -m 1024 -b 4M -n -f -T

The window is rendered as full screen, always on top, but there is black bars around all four edges of what's displayed. Double clicking on any of them or pressing CTRL+X is ignored. There's no way to stretch the video to fit the screen AFAICT. -- Perhaps this is a documentation bug? Not sure.

@BrainSlugs83
Copy link
Author

BrainSlugs83 commented May 22, 2019

Nevermind... I realized the black bars on the left and right side are there on the phone (the test video's AR did not match my phone's display)... and since my phone's AR does not match my desktop's display, I end up with additional black bars at the top and bottom... -- I can fix this with cropping if I need to. Please disregard.

@Leuhan77
Copy link

Leuhan77 commented Dec 2, 2021

hello, did you manage to get the black borders out for use with the full screen?

@rom1v
Copy link
Collaborator

rom1v commented Dec 2, 2021

If the device screen and the computer screen don't have the same aspect ratio, either:

  1. you get black borders
  2. you crop one dimension so that the other dimension fits the screen
  3. you stretch the video to fit the screen

Scrcpy always preserve aspect ratio, so 3 is not possible.

You could crop bottom and top (or left and right) for the capture so that the aspect ratio is the same. Otherwise, you get black borders.

@Leuhan77
Copy link

Leuhan77 commented Dec 2, 2021

Si la pantalla del dispositivo y la pantalla de la computadora no tienen la misma relación de aspecto, ya sea:

  1. obtienes bordes negros
  2. recorta una dimensión para que la otra dimensión se ajuste a la pantalla
  3. estiras el video para que se ajuste a la pantalla

Scrcpy siempre conserva la relación de aspecto, por lo que 3 no es posible.

Puede recortar la parte inferior y superior (o la izquierda y la derecha) para la captura de modo que la relación de aspecto sea la misma. De lo contrario, vistas bordes negros.

I am mirroring the secondary screen of a j8 on my pc with scrcpy and it looks complete, can't I do that?

@Leuhan77
Copy link

Leuhan77 commented Dec 2, 2021

I try to do the same as I do on the samsung j8, which is to simulate a secondary screen of 1280x720 213 dpi, this way if I run scrcpy --display, it opens with the entire screen occupied

but when doing it on my main smartphone when executing scrcpy --display I get a black screen

@Leuhan77
Copy link

Leuhan77 commented Dec 2, 2021

Si la pantalla del dispositivo y la pantalla de la computadora no tienen la misma relación de aspecto, ya sea:

  1. obtienes bordes negros
  2. recorta una dimensión para que la otra dimensión se ajuste a la pantalla
  3. estiras el video para que se ajuste a la pantalla

Scrcpy siempre conserva la relación de aspecto, por lo que 3 no es posible.

Puede recortar la parte inferior y superior (o la izquierda y la derecha) para la captura de modo que la relación de aspecto sea la misma. De lo contrario, obtendrá bordes negros.

How can I do the second option?

@Leuhan77
Copy link

Leuhan77 commented Dec 2, 2021

my screen is 720x1600

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants