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

Lagging everywhere in galaxy A70 #1353

Closed
Weldon-Percy opened this issue May 4, 2020 · 16 comments
Closed

Lagging everywhere in galaxy A70 #1353

Weldon-Percy opened this issue May 4, 2020 · 16 comments

Comments

@Weldon-Percy
Copy link

Weldon-Percy commented May 4, 2020

Hello there developer. 1st thank you for the amazing product, 2nd I'm experiencing hellish lagging everywhere with my galaxy A70. It's screen is broken (not sure if that's the issue), and the frame rate is maximum 11-12 fps. tried reducing resolution, bit rate, recorded screen, but to no avail. I hope you have any idea, as every other phone is smooth except that one, plus it used to work flawlessly in smart view (before breaking the screen), so not sure what's the issue.

@rom1v
Copy link
Collaborator

rom1v commented May 4, 2020

Might be related to the broken screen: #1285.

How does screenrecord behave?

adb shell screenrecord /sdcard/file.mp4
adb pull /sdcard/file.mp4

?

@Weldon-Percy
Copy link
Author

Weldon-Percy commented May 4, 2020

well, scrcpy didn't really respond to your command "adb shell screenrecord /sdcard/file.mp4", it just kept the window empty as it was without actually recording. I tried this command from the code section of the software "scrcpy --record file.mp4", and it was recording, but the lag persists. About the section of the broken phone, restarting my phone and lowering resolution/bitrate didn't help at all. I'm afraid that all it is because of the screen, because I just discovered your software inorder NOT to repair the screen, really expensive.

@rom1v
Copy link
Collaborator

rom1v commented May 4, 2020

well, scrcpy didn't really respond to your command "adb shell screenrecord /sdcard/file.mp4", it just kept the window empty as it was without actually recording

This is not related to scrcpy, it's totally independant.

Open a terminal, and execute adb shell screenrecord /sdcard/file.mp4.

@Weldon-Percy
Copy link
Author

oh I see the regular cmd, but it says "access denied" and I don't know why :(

@Weldon-Percy
Copy link
Author

do you have any idea on how to bypass that and let the command happen?

@rom1v
Copy link
Collaborator

rom1v commented May 4, 2020

@Weldon-Percy
Copy link
Author

still access is denied

@rom1v
Copy link
Collaborator

rom1v commented May 4, 2020

Then I don't know. I've never encounter that issue. Browse more stackoverflow threads 😉

@Weldon-Percy
Copy link
Author

srsly... I had high hopes when I discovered your software, guess I'm the only one here who gets left out unsolved..

@Weldon-Percy
Copy link
Author

At least tell me why access is denied. I am the admin and I didn't do anything to block such access. What other things can I do to go around it? is recording from scrcpy the same as recording from cmd? Please at least I want to know the real issue.. I'm not an expert with codes but you are, so I'm in a real need for your ideas.

@Weldon-Percy
Copy link
Author

Okay thank you for solving the access problem. now I can type in the command but nothing happens, no response. What's the matter now?

@rom1v
Copy link
Collaborator

rom1v commented May 4, 2020

At least tell me why access is denied.

I don't know. This is a problem not related to scrcpy, I don't know everything. screenrecord is a native program used to record your screen in a file on the device, available on Android devices. If it does not work on your device for some reason, then you need to find why.

is recording from scrcpy the same as recording from cmd?

No, scrcpy is a separate program, it captures the screen and encode using MediaCodec, transmit the video stream to the computer which muxes and saves it into a file.

You encounter lag issues, so to determine why, I asked you to test with an alternative (the easiest is screenrecord). If screenrecord also lags, then the problem is on your device. If screenrecord does not work for some reason, and I don't have the answer, then search on stackoverflow or somewhere.

@rom1v
Copy link
Collaborator

rom1v commented May 4, 2020

Okay thank you for solving the access problem. now I can type in the command but nothing happens, no response. What's the matter now?

Ctrl+C to interrupt, then adb pull /sdcard/file.mp4 to retrieve the file on your computer, and play it.

@Weldon-Percy
Copy link
Author

Weldon-Percy commented May 4, 2020

ohhh wait so that records the screen without mirroring it.. I thought I needed to wait for the mirror popup to actually start the recording.. yeahh now I see the issue, it's not from scrcpy, it's from the phone. I'm really sorry for that attitude, but I was really panicking about the lag (still kinda, but at least I know it's not from the software), and I didn't understand what was going on. Do you have any idea why would the phone become laggy if the screen is broken? Does multiple falling affect performance? I'm grateful that you helped me narrow the issue

@Weldon-Percy
Copy link
Author

does the screen being unresponsive cause lagging?

@rom1v
Copy link
Collaborator

rom1v commented May 4, 2020

Do you have any idea why would the phone become laggy if the screen is broken?

No, but when hardware is broken, it can impact the software :)

it's not from scrcpy, it's from the phone.

OK, I'm closing this issue, then. Good luck.

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

No branches or pull requests

2 participants