Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
108.84k stars 10.47k forks source link

scrcpy 2.6.1 does not mirror screen #5205

Open freebrowser1 opened 4 weeks ago

freebrowser1 commented 4 weeks ago

Environment

Describe the bug

When starting scrcpy, no window opens so I cannot see the screen of the phone. This happens since 2.61.

% scrcpy -s nothingphone.local --no-audio -K --verbosity=debug 
scrcpy 2.6.1 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO:     --> (tcpip)  nothingphone.local:5555            device  A142
DEBUG: Device serial: nothingphone.local:5555
DEBUG: Using server: /usr/local/Cellar/scrcpy/2.6.1/share/scrcpy/scrcpy-server
/usr/local/Cellar/scrcpy/2.6.1/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 58.3 MB/s (71112 bytes in 0.001s)
[server] INFO: Device: [Nothing] Nothing A142 (Android 14)
DEBUG: Server connected
DEBUG: Starting controller thread
DEBUG: Starting receiver thread
[server] DEBUG: Using video encoder: 'c2.mtk.avc.encoder'
DEBUG: Using icon: /usr/local/Cellar/scrcpy/2.6.1/share/icons/hicolor/256x256/apps/scrcpy.png
INFO: Renderer: metal
DEBUG: Trilinear filtering disabled (not an OpenGL renderer)
DEBUG: Demuxer 'video': starting thread
INFO: Texture: 2408x1080
[server] DEBUG: Display: using DisplayManager API
^CDEBUG: Server disconnected
DEBUG: Server terminated
DEBUG: Receiver stopped
WARN: Device disconnected
DEBUG: quit...
DEBUG: Controller stopped
DEBUG: Demuxer 'video': end of frames
klaaspc:~/scratch %

EDIT: Using --video-codec=h264 --video-encoder='c2.android.avc.encoder' did show the screen after a bit playing with options, but still the default video renderer does not work anymore.

rom1v commented 4 weeks ago

Does it work without options with a previous version? (you will need to compile manually to test)

freebrowser1 commented 4 weeks ago

Yes on 2.5 it did work, but after about 4 hours continuously on, the windows was still visible, but frozen (#5139). After restarting scrcpy it worked again.

katonagl commented 4 days ago

I have the same problem with an Onyx Boox Note Air 3C. What options have you changed to make it work again?

rom1v commented 4 days ago

@katonagl https://github.com/Genymobile/scrcpy/issues/5182#issuecomment-2295389574