Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
110.71k stars 10.61k forks source link

Crash in Windows if no audio sink "can't find requested audio endpoint" #5369

Open Justin-Maxwell opened 1 week ago

Justin-Maxwell commented 1 week ago

Environment

Describe the bug

scrcpy exits shortly after launch if no audio sink on PC ?

ERROR: Could not open audio device: WASAPI can't find requested audio endpoint: Element not found. ERROR: Demuxer error

Is there a way to connect to some default sink that windows will redirect on connecting a bluetooth or other audio device?

In any event, per https://github.com/Genymobile/scrcpy/blob/master/doc/audio.md

If audio capture fails, then mirroring continues with video only (since audio is enabled by default, it is not acceptable to make scrcpy fail if it is not available)

… should probably apply equally at the renderer.

dilyanpalauzov commented 1 week ago

Have you tried with --no-audio? I just filled https://github.com/Genymobile/scrcpy/issues/5371.