-
Notifications
You must be signed in to change notification settings - Fork 56
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
the screencast is very slow ? any solutions ? #6
Comments
Same issue on my phone The lag is between 4 and 6 seconds |
Hi ghost, Darcidride Could you please tell me what device and resolution of the device you're using? While the screen is bigger and bigger, and the image captured from device is become bigger and take more time to transfer to PC. I have no way to fix it, maybe some optimization is possible, such scale down the image before transfer back to host. |
Hi, In my case :
Maybe add an option to choose between quality and performence in an axis can be a good idea. |
For me, the delay is more than 10 seconds - simply unusable.
|
Would the framerate improve after following the decompression instructions? |
Hi mchat003 Yes, Sure, 25%+~50%+ speed up after using minizip and patched screencap. |
I have 1 frame every 3 seconds (0.3 FPS).
Phone: Elephone P7000 (Android 5.0) Resolution:
This is not better with minigzip. |
Hi noraj1337 1080x1920x4=8M bytes, It's a huge data block for transfer via USB 2.0. The better way to minimize the data block is convert the output format from RGBA to RGB565 in 'screencap' command. Good luck. |
Some alternative software doing this by install a APK/Service on android device, for reduce the imaging size also for device control. |
Hi Yangh, |
the same case with me |
I have the same problem with my Huawei P20, any solution? |
Hi there The image distortion issue has been fixed in the latest commit 1333e50, which most happened on Android version >= 7.0. For slow issue, I have some solution in mind, but that depends on some user actions, a strictly depends on userdebug/eng build. Solutions:
Setup a port forwarding via ADB, then transfer data via the socket over the ADB connection, this may help a bit, current we transfer image data via 'adb shell' command for each frame. socket-based transfer may save some time to start a shell on the remote Android device.
For example, RGB565 instead of RGB888, it surely saves 1/3 time for the transfer. but we need to push a customized binary to the device before to do so. And you can guess how many architectures (X86, ARM,...), 32/64 bit, Android version we need to support? it's horrible. I tried to submit a patch (in the contribute directory in source code), but it's not upstreamed.
I implemented this option, but it doesn't help on the slow issue, compress/decompress also take time/cpu resource, so it's not a good solution.
Requires kernel driver change, and user-space daemon with more depends on the hardware. Does anyone have more options? Thanks |
the screencast is very slow ? any solutions ?
The text was updated successfully, but these errors were encountered: