Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 10 - decvice connects but shows no screen #5035

Open
H3RBSKI opened this issue Jun 27, 2024 · 4 comments
Open

Windows 10 - decvice connects but shows no screen #5035

H3RBSKI opened this issue Jun 27, 2024 · 4 comments

Comments

@H3RBSKI
Copy link

H3RBSKI commented Jun 27, 2024

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
Copy link
Collaborator

rom1v commented Jun 27, 2024

What is the full output in the console?

Does it work better with another encoder?

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

@H3RBSKI
Copy link
Author

H3RBSKI commented Jun 27, 2024

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
Copy link
Collaborator

rom1v commented Jun 27, 2024

[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
Copy link
Author

H3RBSKI commented Jun 27, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants