leng-yue / py-scrcpy-client

An easy to use python scrcpy client
https://leng-yue.github.io/py-scrcpy-client/
MIT License
283 stars 71 forks source link

Screen showing green artifact with log #22

Closed semarainc closed 2 years ago

semarainc commented 2 years ago

hi, i have problem when trying to run command py-scrcpy, and it shows only green image, but the control is functional. this happen in network and usb connection

Phone Info (if needed): Samsung S20 here is the screenshot image

Here is some of the log

negative number of zero coeffs at 0 0 error while decoding MB 0 0 mb_type 35 in P slice too large at 5 0 error while decoding MB 5 0 P sub_mb_type 5 out of range at 56 0 error while decoding MB 56 0 top block unavailable for requested intra mode error while decoding MB 13 0 mb_type 46 in P slice too large at 4 0 error while decoding MB 4 0 P sub_mb_type 14 out of range at 34 0 error while decoding MB 34 0 cbp too large (102) at 2 0 error while decoding MB 2 0 cbp too large (120) at 2 0 error while decoding MB 2 0 out of range intra chroma pred mode

Full Log: mylog.log

thanks

leng-yue commented 2 years ago

Seems like there is a decoding error, what's your Android version?

leng-yue commented 2 years ago

Hi, I added a decoder option. Can you try that?

semarainc commented 2 years ago

Sorry for late reply, Im on android 11

I'll try after finish working

semarainc commented 2 years ago

hi, i've tested it

image

just stuck on loading and no logs are shown, i already tested on all encoder option i already make sure that usb and wifi connection is working by testing with scrcpy command

when i press ctrl + c i only got this

Traceback (most recent call last): File "/home/telmi/.cache/pypoetry/virtualenvs/scrcpy-client-1z_dp_ia-py3.10/bin/py-scrcpy", line 5, in main() File "/home/telmi/github/py-scrcpy-client/scrcpy_ui/main.py", line 192, in main m.client.start() File "/home/telmi/github/py-scrcpy-client/scrcpy/core.py", line 188, in start self.__stream_loop() File "/home/telmi/github/py-scrcpy-client/scrcpy/core.py", line 209, in stream_loop raw_h264 = self.video_socket.recv(0x10000) KeyboardInterrupt

i hope this can help

leng-yue commented 2 years ago

Can you try the newest version, the problem should be solved.

semarainc commented 2 years ago

hi, sry for late reply yes the latest version fix the issue :D even though there is a bit lag, but that is another issue

you can close this issue :D thanks :D

leng-yue commented 2 years ago

Sounds good :)