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

Capture Real-time Video Frames #711

Closed
benchat opened this issue Aug 10, 2019 · 2 comments
Closed

Capture Real-time Video Frames #711

benchat opened this issue Aug 10, 2019 · 2 comments

Comments

@benchat
Copy link

benchat commented Aug 10, 2019

Nice Work!
I would like to capture and consume/manipulate the video streams/frames during the capture and display of the android device on my Windows PC. How can I achieve this using scrcpy.exe?

@rom1v
Copy link
Collaborator

rom1v commented Aug 10, 2019

Currently, scrcpy is a standalone app (not a lib), so it does not expose an easy way to retrieve the frames programmatically.

Since it's open source, you can just fork and edit to do what we want on new frame:

case EVENT_NEW_FRAME:

Or you could also just use the scrcpy server and reproduce the steps the clients does (but the protocol is "internal" and changes across scrcpy versions). See #129, #613 and #673.

@benchat
Copy link
Author

benchat commented Sep 11, 2019

This https://github.com/Allong12/py-scrcpy sorted me out.

@benchat benchat closed this as completed Sep 11, 2019
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