Genymobile / Genymobile/scrcpy
Python API for live video feed of phone screen
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 150k
- Forks
- 13.8k
- Avg merge
- 4d 13h
- Merged PRs (30d)
- 2
Description
- I have checked that a similar feature request does not already exist.
Is your feature request related to a problem? Please describe.
It is not. I am developing a project where I need a live feed of the phone screen. I tried repeatedly taking screenshots with adb but that is slow. I can't record the screen because I need the video feed live.
Describe the solution you'd like
A Python API which will allow me to programmatically access the live feed of the phone screen. Probably setup so that there is a thread in the background receiving the screen data and storing it into a variable. Thus, when I call a method, it will return to me the latest value in that variable with no latency. The return type could be a Pillow image object or (preferably) a NumPy array with the pixel values.
Describe alternatives you've considered
I have considered starting scrcpy on my computer and periodically taking screenshots of the window but this is slow and the latency is too great for my use case.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named in the issue. Start by reviewing scrcpy's existing interfaces and the requested live-feed behavior; done means a defined, usable Python interface that returns current phone-screen frames with the requested low latency.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, c, python
- Domain
- api, mobile-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100