sndcpy
sndcpy copied to clipboard
No sound on the computer
CMD seems to be nomal: 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... Playing audio...
But when I play audio on the phone, my computer didn't receive it. I mean, the computer didn't play the sound on the phone.
And the app "sndcpy" on my phone displays "Waiting for connect".
I don't know if it is correct.
Remove -Idummy
here to see if there is a problem with VLC:
https://github.com/rom1v/sndcpy/blob/f0995ca4d0002ef288c74c70d4c0eb48354449d5/sndcpy.bat#L25
Having the same problem, tried removing the -Idummy flag and VLC is indeed opening, it's connecting to a stream, CTRL+M isn't showing any errors or messages, but there is no audio. Have tried multiple apps, all nothing.
Have tried multiple apps, all nothing.
Did you try youtube and VLC for Android? They are known to forward audio correctly.
Have tried multiple apps, all nothing.
Did you try youtube and VLC for Android? They are known to forward audio correctly.
Nothing from either YouTube or VLC unfortunately. Everything seems to be running on Android properly as far as I can tell, I've got a Mi Mix 2 (chiron) on Lineage OS 17.1 which is an Android 10 rom. Any kind of detailed log I could gather to help troubleshoot this either on the PC or Android side of things?
P.S. for what it's worth, srccpy is working perfectly fine via USB, it's just the sndcpy part I'm struggling with
P.P.S. for the sake of science, I tried the ffplay suggestion another user had in a different thread and modified the batch file to use that instead. It LOOKS like it's doing stuff and configured properly, but I'm also not that experienced with ffplay and not a dev, more of a "power user" that is decent enough at troubleshooting and testing variables. I included a screenshot of the command prompt window I was using for this to see if it helps anything. I still wasn't actually hearing anything on my PC and I did of course make sure I was using the default audio device and that other applications were capable of outputting audio. I could hear audio from the phone speaker, but nothing coming through the PC. I'm wondering if there is simply some bug or limitation on my phone that is preventing the audio
I am getting sound from other streaming apps except from VLC when i try to play from local audio/video, tried to remove -Idummy flag still same, using from device Realme 3 Pro... logs from terminal and i see no errors either
Waiting for device... 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.9.2 Vetinari (revision 3.0.9.2-0-gd4c1aefe4d) [00005640132028b0] dummy interface: using the dummy interface module...
VLC seems playing, but no sound on the computer
VLC seems playing, but no sound on the computer
Are u able to hear from YT and other streaming apps?
i met the same as janlely ,
Just updated my device from a Xiaomi Mi Mix 2 to a Pixel 4a. Mi Mix 2 was on LineageOS 17 (android 10), Pixel 4a is on official android 11. Audio works with pixel 4a, with my same FFmpeg configuration, still doesn't work on my Mi Mix 2. It could be a limitation of the hardware or a software bug, not sure. @rom1v , if there is a way I can run a detailed log for you if you'd like to compare, let me know, I'd be happy to help.
@Tyr808 Thank you for your help.
However, sndcpy just uses the Playback capture API provided by the system.
The fact that it works on some devices or for some apps but not on others is an implementation issue of this API (by the device system), so there's nothing sndcpy could fix.
- I guess it works for Android 11 and forward. I had the same challenges using Android 10 and previous versions.
- Taking out the -Idummy in the .bat file helped too.
- Ensure you are using the correct installation files: especially WINDOWS users, the adb is necessary!
- In Android studio, it's easier to have only one device at a time running!
Just updated my device from a Xiaomi Mi Mix 2 to a Pixel 4a. Mi Mix 2 was on LineageOS 17 (android 10), Pixel 4a is on official android 11. Audio works with pixel 4a, with my same FFmpeg configuration, still doesn't work on my Mi Mix 2. It could be a limitation of the hardware or a software bug, not sure. @rom1v , if there is a way I can run a detailed log for you if you'd like to compare, let me know, I'd be happy to help.
@Tyr808 do you have the link to the modified batch file with ffplay?
removing -Idummy and CHANGING VLC path to it's x86 folder ("C:\Program Files (x86)\VideoLAN\VLC\vlc.exe", and yes the default Program Files folder opened it as well, but not with sndcpy) did it for me.
And still Android Pie (9.0) here.
And still Android Pie (9.0) here.
Don't even try.
The Android device requires at least Android 10.
https://github.com/rom1v/sndcpy#requirements
And still Android Pie (9.0) here.
Don't even try.
The Android device requires at least Android 10.
https://github.com/rom1v/sndcpy#requirements
Indeed, I updated it.
can i ask something
what's the problem of this error? I new on this and idk how to fix it