Git Product home page Git Product logo

naive-scrcpy-client's People

Contributors

lostxine avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

naive-scrcpy-client's Issues

OSError: libwebp.so.6 on Ubuntu 22

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 search in github for a day,

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

Win10 x64 == OSError: [WinError 126] 找不到指定的模块。

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 可用字节

Could not open video stream

我的运行后报这个错误,咋解决呢
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)

我遇到错误:AttributeError: function 'avdevice_register_all' not found

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!~

Image Quality degrades after few minutes

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.