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

why #5674

Open
qwertysdfgh opened this issue Dec 16, 2024 · 14 comments
Open

why #5674

qwertysdfgh opened this issue Dec 16, 2024 · 14 comments

Comments

@qwertysdfgh
Copy link

IMG20241215201252

@rom1v
Copy link
Collaborator

rom1v commented Dec 16, 2024

Because:

scrcpy 1.24

ultra-old.

@qwertysdfgh
Copy link
Author

How to solve it, I am a noob, can you give me more help?

@rom1v
Copy link
Collaborator

rom1v commented Dec 16, 2024

Remove the package from your package manager (probably sudo apt remove scrcpy) and install the latest version: https://github.com/Genymobile/scrcpy/blob/master/doc/linux.md

@Genymobile Genymobile deleted a comment from qwertysdfgh Dec 16, 2024
@Genymobile Genymobile deleted a comment from qwertysdfgh Dec 16, 2024
@rom1v
Copy link
Collaborator

rom1v commented Dec 16, 2024

You failed to upload the screenshot, you must wait it is correctly uploaded before validating the comment.

Btw, also explain the actions you performed. "still not working" is not very helping.

@qwertysdfgh
Copy link
Author

I followed your method and uninstalled and installed the latest 3.1 version
Uploading Screenshot_2024-12-17-00-14-09-18_99c04817c0de5652397fc8b56c3b3817.jpg…

@rom1v
Copy link
Collaborator

rom1v commented Dec 16, 2024

I followed your method and uninstalled and installed the latest 3.1 version

Several methods are listed. What did you do? Did you downloaded and extracted the static binary? Did you installed from the install script?

Your upload has still failed. Copy paste the text (or upload a screenshot successfully).

@qwertysdfgh
Copy link
Author

qwertysdfgh commented Dec 16, 2024

I don’t know why I can’t upload screenshots, here is the prompt message

qqq@raspberrypi:~S scrcpy
scrcpy 3.1 <https://github.com/Genymobile/scrcpy> 
daemon not running; starting now at tcp:5037 
daemon started successfully
INFO: ADB device found:
INFO:	-->	(usb) 2d016c5	device PHK110	
/usr/local/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 3.6 MB/s (90640 bytes in 0.024s)
[server] INFO: Device:[OnePlus] onePlus PHK110(Android 14) 【 INFO: Renderer: opengl
INFO: OpenGL version: 2.1 Mesa 23.2.1-1~bpo12+rpt3
WARN: Trilinear filtering disabled (OpenGL 3.0+ or ES 2.0+ required)

@qwertysdfgh
Copy link
Author

I installed from the install script

@rom1v
Copy link
Collaborator

rom1v commented Dec 16, 2024

OK, and no window is opening? If so, the Android device probably does not produce any frame.

Try with another encoder: https://github.com/Genymobile/scrcpy/blob/master/doc/video.md#encoder

@rom1v
Copy link
Collaborator

rom1v commented Dec 16, 2024

Oh, in your first screenshot, it says:

INFO: Initial texture: 1240x2768
ERROR: Could not create texture: Texture dimensions are limited to 2048x2048

It's weird that you don't get these messages on the last version (or is it missing in the copy-paste)?

Anyway, your client cannot support more than 2048 pixels, so limit the video size to 2048 (or less):

scrcpy -m2048

@qwertysdfgh
Copy link
Author

Great, I entered "scrcpy m2048" and the screen showed up successfully, thank you

@qwertysdfgh
Copy link
Author

But the delay is very serious, is there any solution?

@rom1v
Copy link
Collaborator

rom1v commented Dec 16, 2024

Your raspi is maybe not performant enough to decode the video stream.

Try reducing the resolution even more (and limit the frame rate).

scrcpy -m1024 --max-fps=30

@qwertysdfgh
Copy link
Author

Thank you, things are getting better

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

2 participants