lostxine / naive-scrcpy-client Goto Github PK
View Code? Open in Web Editor NEWA naive client of Scrcpy in Python.
License: MIT License
A naive client of Scrcpy in Python.
License: MIT License
Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner [self.run](http://self.run/)() File "/usr/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/home/XXX/handlers/NaiveScrcpyClient.py", line 105, in _run_decoder lib_avcodec = ctypes.CDLL(avcodec_lib) File "/usr/lib/python3.8/ctypes/__init__.py", line 373, in __init__ self._handle = _dlopen(self._name, mode) OSError: libwebp.so.6: cannot open shared object file: No such file or directory
I am just a novice in college.I am not good at C. so many codes in Scrcpy can't well undersood.This project is very help for me. But i know it can only decode video stream from the server right now. I want to know if you will continue to improve the project, and more detailed development documentation is helpful.I will continue to pay attention to the project. Thank you for your selfless dedication, thanks
In [229]: !C:/QGB/Anaconda3/python.exe run_client.py
Upload JAR...
61550
Run JAR
Connected!
Device Name: Nexus 6P
WxH: 360x640
Exception in thread Thread-3:
Traceback (most recent call last):
File "C:\QGB\Anaconda3\lib\threading.py", line 926, in _bootstrap_inner
self.run()
File "C:\QGB\Anaconda3\lib\threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "C:\test\github\naive-scrcpy-client\NaiveScrcpyClient.py", line 78, in _run_decoder
lib_avcodec = ctypes.CDLL(avcodec_lib)
File "C:\QGB\Anaconda3\lib\ctypes\__init__.py", line 364, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] 找不到指定的模块。
In [230]: ls C:\test\github\naive-scrcpy-client\lib
驱动器 C 中的卷是 C的复件
卷的序列号是 C09B-BA8F
C:\test\github\naive-scrcpy-client\lib 的目录
2023/10/04 00:55 <DIR> .
2023/10/04 00:55 <DIR> ..
2023/04/26 22:39 93,583,189 avcodec-58.dll
2023/04/26 22:39 33,654,718 avformat-58.dll
2023/04/26 22:39 4,249,209 avutil-56.dll
2023/10/04 00:52 19,346 scrcpy-server.jar
2023/04/26 22:39 855,580 swresample-3.dll
5 个文件 132,362,042 字节
2 个目录 20,204,953,600 可用字节
我的运行后报这个错误,咋解决呢
Found h264 decoder
Could not open video stream
ERROR: Exception on thread Thread[main,5,main]
android.media.MediaCodec$CodecException: Error 0xfffffc0e
at android.media.MediaCodec.native_configure(Native Method)
at android.media.MediaCodec.configure(MediaCodec.java:2127)
at android.media.MediaCodec.configure(MediaCodec.java:2043)
at com.genymobile.scrcpy.ScreenEncoder.configure(ScreenEncoder.java:158)
at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:68)
at com.genymobile.scrcpy.Server.scrcpy(Server.java:28)
at com.genymobile.scrcpy.Server.main(Server.java:110)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:399)
请问作者,这几个so在哪儿
Exception in thread Thread-3 (_run_decoder):
Traceback (most recent call last):
File "C:\Users\xiaoy\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner
self.run()
File "C:\Users\xiaoy\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run
self._target(*self._args, **self.kwargs)
File "C:\Users\xiaoy\Desktop\video_to_pc\naive-scrcpy-client-master\NaiveScrcpyClient.py", line 81, in run_decoder
lib_avformat.avdevice_register_all()
File "C:\Users\xiaoy\AppData\Local\Programs\Python\Python310\lib\ctypes_init.py", line 387, in getattr
func = self.getitem(name)
File "C:\Users\xiaoy\AppData\Local\Programs\Python\Python310\lib\ctypes_init.py", line 392, in getitem
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'avdevice_register_all' not found
请问是否和ffmpeg版本有关系?
Is it related to the ffmpeg version?
多谢~!
thanks!~
First of all. Excellent work the code works like a charm.
But after few mins of running, the image quality is being degraded. The resolution of the device is 1920x720.
but when i connected to a different device (resolution 1440x720) everything seems to working fine and image quality is perfect.
Do i need to change something or am i missing any.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.