-
-
Notifications
You must be signed in to change notification settings - Fork 11k
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
Unable to start scrcpy, WASAPI can't find requested audio endpoint: Element not found. #3876
Comments
Update, I have found the root cause for this, |
That may not be the cause for this:
(which is a client error) |
Opss, you are correct, i have tried but now i got another error message |
You could try with yet another driver: https://wiki.libsdl.org/SDL2/FAQUsingSDL#win32_1 The WASAPI issue will be fixed in the future version of SDL (which will be included in a future version of scrcpy). |
I have experienced the same this morning against the latest release of [scrcpy v2.0]. OS: Windows 10 Pro - 21H2 Describe the bug Error output: Thanks team |
Then read #3856 (comment) |
Sorted. Thank you :) |
I have same problem at my office pc (Windows 10 pro 32 bits under domain) could not open audio device: wasapi can't find requested audio endpoint: no se ha encontrado el elemento. error: demuxer error At home pc is all ok Phone is Samsung A03 |
Which scrcpy version? Try the latest, currently v2.1.1 (which includes the latest SDL) |
I guess use same. Downloaded at office pc the 32 bit version less than 1 hour ago, from its github page |
Does it work if you use directsound instead of wasapi? #3856 (comment) |
with |
What is the console output? |
D:\scrcpy-win32-v2.1.1>scrcpy D:\scrcpy-win32-v2.1.1> |
With |
And with |
D:\scrcpy-win32-v2.1.1>set SDL_AUDIODRIVER=directsound D:\scrcpy-win32-v2.1.1>scrcpy (no open and continue directly to error) |
As error say, it try to find audio device, but as I said at my first post, it is not installed at this pc and seem disabled at bios |
Of course: https://github.com/Genymobile/scrcpy/blob/master/doc/audio.md#no-audio |
Ok. As I suposed, this was the problem Starting without audio now work ok |
There is a mechanism to disable audio if it could not be captured on the device (for all devices < Android 11 or with Android 11 when the screen is locked on start). But if audio playback fails on the computer, this is a fatal error (otherwise, audio would be captured and sent by the device, but the client would ignore it because it could not play audio). In that case, it must be disabled explicitly. |
fix解决我使用的是一加手机和win7系统,我解决了这个问题。如果你们遇到类似的问题,你可以试试我的方法。 I'm using a OnePlus phone and Windows 7, and I fixed the problem. If you have similar problems, you can try my method. start cmd启动命令如下:scrcpy.exe --render-driver=software --no-audio log日志:D:\软件\scrcpy-win64-v2.2\scrcpy-win64-v2.2>scrcpy.exe --render-driver=software --no-audio --turn-screen-off |
My computer does not have speakers. When I plug in 3.5mm headphones, the program no longer crashes. I suspect that the code is not compatible with this situation and directly throws an error, causing the program to interrupt. I hope it can be changed to a warning to be compatible with this situation. @rom1v |
Is it possible to not make this error fatal, such that we can continue to use the scrcpy even if audio hardware is disabled in windows? |
Not automatically: #4800 (comment) |
Environment
Describe the bug
Unable to start scrcpy, it seem like the screen did pop up for half second then close.
On errors, please provide the output of the console (and
adb logcat
if relevant).logcat.txt
The text was updated successfully, but these errors were encountered: