LostXine / naive-scrcpy-client

A naive client of Scrcpy in Python.
MIT License
74 stars 23 forks source link

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

Open xiaoyvxian opened 8 months ago

xiaoyvxian commented 8 months ago

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