The method I used in this project is out of date. Please consider using naive-android-ssr for better video decoding experience.
A naive client of Scrcpy in Python. Currently it can only decode video stream from the server.
This client was inspired by py-scrcpy.
- Android Debug Bridge
- ffmpeg shared libraries
- opencv-pythons (for GUI)
-
Install OpenCV for Python. Naive Scrcpy Client use OpenCV for GUI. You can replace it with PIL or anything else easily.
pip install opencv-python
-
Copy/link recent ffmpeg shared libraries to ./lib, the required files were listed below. Make sure the version of libs matches to the architecture of your Python (e.g. x86->32bit).
- Windows:
avcodec-58.dll avformat-58.dll avutil-56.dll swresample-3.dll
- Linux:
libavcodec.so libavformat.so libavutil.so libswresample.so
-
Get ADB ready on your PC and leave USB Debug Mode open on your phone.
-
Let's rock!
python run_client.py
-
Check config in run_client.py for more information.
- (Recommended) New issue
- Email: lostxine@gmail.com