A naive client of Scrcpy in Python.
A naive client of Scrcpy in Python. Currently it can only decode video stream from the server.
This client was inspired by py-scrcpy.
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).
avcodec-58.dll
avformat-58.dll
avutil-56.dll
swresample-3.dll
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.