-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
What is the best option for scrcpy to get screenshot of device every 200ms or 500ms? #3345
Comments
Thank you very much for the information and the hint, --fps option would reduce the file pretty much. |
--fps you meant is --max-fps? I somehow seeing that --max-fps=1 or 2 still seeing output of 7~10 fps with --print-fps option. EDIT: I am seeing 19.92 fps with --max-fps 1 , is there a way to limit it somehow?
|
Yes, sorry,
Indeed, that's surprising. But in fact, it's due to You could disable this option by overriding the MediaCodec option:
You will not get more than 2 fps (sometimes 3 due to how it's measured by intervals on the client side, but never more).
The framerate is variable, and typically badly calculated by ffmpeg when it lists the file properties. |
Thank you very much, that worked! Also, I've hacked into decoder.c and figured a quick and dirty way to dump screenshots directly there. |
adb exec-out screencap
took 1.5s on my environment so it is not the optionThe text was updated successfully, but these errors were encountered: