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

scrcpy 2.0 does not work with Xiaomi MI 12 #3946

Closed
XTStarry opened this issue Apr 24, 2023 · 5 comments
Closed

scrcpy 2.0 does not work with Xiaomi MI 12 #3946

XTStarry opened this issue Apr 24, 2023 · 5 comments

Comments

@XTStarry
Copy link

  • [√ ] I have read the FAQ.
  • [ √] I have searched in existing issues.

Environment

  • OS: Windows 10
  • scrcpy version: 2.0
  • installation method: Windows release
  • device model:Xiaomi MI 12
  • Android version: 13

Describe the bug
When I tried to connect Xiaomi 12 (Android 13) using scrcpy, it showed the following log and did not respond. As a comparison, I also used scrpy to connect my Huawei Mate 40 Pro (Android 10) and it worked fine.
The following is the log:

D:\scrcpy-win64-v2.0>scrcpy. exe
sercpy 2.0 <https://github. com/Genymobile/scrcpy>
D:\scrcpy-win64-v2.0>sc... file pushed, 0 skipped, 79.4MB/s (52867 bytes in 0.001s)
[server]  INFO: Device: Xiaomi 2201123C (Android 13)
INFO: Renderer: direct3d
INFO: Initial texture: 1080x2400
ERROR: Could not open audio device: WASAPI can't find requested audio endpoint: xxxxxx(Because of the encoding format, this part is garbled)
ERROR: Demuxer error
WARN: Killing the server...

@rom1v
Copy link
Collaborator

rom1v commented Apr 24, 2023

See #3856 (comment)

@XTStarry
Copy link
Author

See #3856 (comment)

Thank you very much. I'll try it later.

@XTStarry
Copy link
Author

See #3856 (comment)

I tried the operation in # 3856 and replaced the binary, but it didn't work:

D:\00522582\00TOOLS\scrcpy-win64-v2.0\scrcpy-win64-v2.0>set SDL_AUDIODRIVER=directsound

D:\00522582\00TOOLS\scrcpy-win64-v2.0\scrcpy-win64-v2.0>scrcpy --audio-output-buffer=10
scrcpy 2.0 <https://github.com/Genymobile/scrcpy>
D:\00522582\00TOOLS\scrcpy-win64-v2.0\scrcpy-win64-v2.0\sc... file pushed, 0 skipped. 46.8 MB/s (52867 bytes in 0.001s)
[server] INFO: Device: Xiaomi 2201123C (Android 13)
INFO: Renderer: direct3d
INFO: Initial texture: 1080x2400
ERROR: Could not open audio device: DirectSoundCreate8: No audio device found (0x88780078)
ERROR: Demuxer error
WARN: Killing the server...

D:\00522582\00TOOLS\scrcpy-win64-v2.0\scrcpy-win64-v2.0>scrcpy --audio-output-buffer=10
scrcpy 2.0 <https://github.com/Genymobile/scrcpy>
D:\00522582\00TOOLS\scrcpy-win64-v2.0\scrcpy-win64-v2.0\sc... file pushed, 0 skipped. 54.0 MB/s (52867 bytes in 0.001s)
[server] INFO: Device: Xiaomi 2201123C (Android 13)
INFO: Renderer: direct3d
INFO: Initial texture: 1080x2400
ERROR: Could not open audio device: DirectSoundCreate8: No audio device found (0x88780078)
ERROR: Demuxer error
WARN: Killing the server...

Is there a problem with my operation?

@rom1v
Copy link
Collaborator

rom1v commented Apr 24, 2023

OK, so it seems directsound does not work either for you.

So for audio, you should wait for the next version of SDL (it will be included in the next version of scrcpy).

Meanwhile, you should disable audio (scrcpy --no-audio).

@XTStarry
Copy link
Author

XTStarry commented Apr 25, 2023

Okay, thank you for your reply.

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