Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
106.43k stars 10.31k forks source link

Windows 10 - decvice connects but shows no screen #5035

Open H3RBSKI opened 1 month ago

H3RBSKI commented 1 month ago

running windows 10

using latest 2.4 scrcpy

everything worked great last night then half way through a session it disconnected, now when i re connect it tells me its connected but shows no display at all.

i tried the thirdpart scrcpy GUI and same issue however using their built in controls i can control the device i just cant see it.

any ideas?

rom1v commented 1 month ago

What is the full output in the console?

Does it work better with another encoder?

Or without audio (scrcpy --no-audio)?

H3RBSKI commented 1 month ago

C:\Users\danhe\Downloads\scrcpy-win64-v2.4\scrcpy-win64-v2.4>scrcpy --tcpip=192.168.1.182 --no-audio scrcpy 2.4 https://github.com/Genymobile/scrcpy INFO: Connecting to 192.168.1.182:5555... INFO: Connected to 192.168.1.182:5555 C:\Users\danhe\Downloads\scrcpy-win64-v2.4\scrcpy-win64-v2... file pushed, 0 skipped. 56.5 MB/s (69007 bytes in 0.001s) [server] INFO: Device: [NVIDIA] NVIDIA SHIELD Android TV (Android 11) INFO: Renderer: direct3d

tried the h26 encoder but same issue INFO: Connecting to 192.168.1.182:5555... INFO: Connected to 192.168.1.182:5555 C:\Users\danhe\Downloads\scrcpy-win64-v2.4\scrcpy-win64-v2... file pushed, 0 skipped. 71.8 MB/s (69007 bytes in 0.001s) [server] INFO: Device: [NVIDIA] NVIDIA SHIELD Android TV (Android 11) [server] ERROR: Could not create default audio encoder for opus List of audio encoders: --audio-codec=aac --audio-encoder='OMX.google.aac.encoder' --audio-codec=flac --audio-encoder='OMX.google.flac.encoder' [server] ERROR: Video encoder 'OMX.qcom.video.encoder.avc' for h264 not found List of video encoders: --video-codec=h264 --video-encoder='OMX.Nvidia.h264.encoder' --video-codec=h264 --video-encoder='OMX.google.h264.encoder' --video-codec=h265 --video-encoder='OMX.Nvidia.h265.encoder' [server] ERROR: Exception on thread Thread[audio-encoder,5,main] java.lang.IllegalArgumentException: Failed to initialize audio/opus, error 0xfffffffe at android.media.MediaCodec.native_setup(Native Method) at android.media.MediaCodec.(MediaCodec.java:2117) at android.media.MediaCodec.createEncoderByType(MediaCodec.java:2042) at com.genymobile.scrcpy.AudioEncoder.createMediaCodec(AudioEncoder.java:289) at com.genymobile.scrcpy.AudioEncoder.encode(AudioEncoder.java:181) at com.genymobile.scrcpy.AudioEncoder.lambda$start$0$com-genymobile-scrcpy-AudioEncoder(AudioEncoder.java:121) at com.genymobile.scrcpy.AudioEncoder$$ExternalSyntheticLambda1.run(Unknown Source:4) at java.lang.Thread.run(Thread.java:923) ERROR: "adb reverse --remove" returned with value 1 ERROR: Could not retrieve device information ERROR: Server connection failed

rom1v commented 1 month ago

[server] INFO: Device: [NVIDIA] NVIDIA SHIELD Android TV (Android 11) INFO: Renderer: direct3d

It seems the encoder does not produce any frame.

Could you please test scrcpy v2.0, v2.1, v2.2, v2.3… in case a change caused a regression for the NVIDIA Shield?

H3RBSKI commented 1 month ago

just tried and still same issues. it was working perfectly for a few weeks up until last night then it just d/c mid connection and now it wont display anything. device hasnt had any updates etc either