rom1v / sndcpy

Android audio forwarding (scrcpy, but for audio)
MIT License
3.28k stars 301 forks source link

main stream error: connection error: Connection refused #157

Open peterge1998 opened 3 years ago

peterge1998 commented 3 years ago

Fedora 34, latest version. APK is installed and i tapped "start now" before enter.

➜  sndcpy-v1.0 ./sndcpy
Waiting for device...
Performing Streamed Install
Success
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.rom1v.sndcpy/.MainActivity }
Press Enter once audio capture is authorized on the device to start playing...

VLC media player 3.0.16 Vetinari (revision 3.0.13-8-g41878ff4f2)
[00005565d820fc00] dummy interface: using the dummy interface module...
[00007fe9780015d0] main stream error: connection error: Connection refused
^C[00005565d81c43c0] main playlist: end of playlist, exiting
Cofeiini commented 2 years ago

I got this too, but according to the readme it's supposed to happen and doesn't affect the program. I can confirm this myself, but I also managed to avoid that message by running VLC before launching sndcpy when attempting to diagnose this by logging to a file.

There is another caveat to "capturing" the audio from your device: Some apps prevent recording, meaning that things like Spotify will give you silence. I managed to get audio from few games and it's working relatively well with few random latency issues causing jittering.