sndcpy icon indicating copy to clipboard operation
sndcpy copied to clipboard

Press Enter once audio capture is authorized on the device to start playing... But closes when I press Enter

Open ZackPendragon opened this issue 5 years ago • 15 comments

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...

But after pressing Enter the CMD closes and nothing is playing. I'm not very fond of coding but I really like scrcpy and have been eagerly waiting for the audio version. Can you tell me what's wrong and what to do? Thank you.

ZackPendragon avatar Jun 15 '20 19:06 ZackPendragon

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... The system cannot find the path specified.

I get something similar but the above. I was reading some apps might not allow it.. The install seemed to go fine. I am not super talented in terms of digging into XML. I just want to capture my sound for streaming off the device. One other question can sndcpy and scrcpy run together? Like send both the audio and the video?

ecsita avatar Jun 23 '20 17:06 ecsita

It's just that it does not find vlc on your system.

rom1v avatar Jun 23 '20 17:06 rom1v

It's just that it does not find vlc on your system.

Is there a way to manually point or force it? I installed VLC as part of the pre reqs, I have it on phone and pc.

ecsita avatar Jun 23 '20 17:06 ecsita

What is the full path of vlc.exe?

rom1v avatar Jun 23 '20 17:06 rom1v

https://github.com/rom1v/sndcpy/blob/39bd8c74485cf6dd4f34d58b94ea4f1e8fbccacf/sndcpy.bat#L3

rom1v avatar Jun 23 '20 17:06 rom1v

Hmm modified my bat file to point to my location still getting same error.

ecsita avatar Jun 23 '20 18:06 ecsita

Could you post the exact line you put in the bat file? Are there any trailing spaces or something?

rom1v avatar Jun 23 '20 19:06 rom1v

if not defined VLC set VLC="D:\Program Files\VideoLAN\VLC\vlc.exe"

ecsita avatar Jun 23 '20 20:06 ecsita

Same was happening to me when I was double-clicking directly on sndcpy.bat.

Instead, I opened a fresh cmd and manually went into the sndcpy folder and ran the bat from there, then when I pressed Enter, it didn't close and it gave me a "Playing audio..." message, but I still can't hear anything so not what's going wrong now haha.

Anyone know which apps can and can't forward audio through sndcpy?

tpaddon avatar Jul 08 '20 00:07 tpaddon

Same here, After pressing Enter, cmd exits after showing playing audio

ashik-2001 avatar Aug 29 '20 03:08 ashik-2001

Start cmd first (Windows+r, cmd.exe), go to the sndcpy directory (cd C:\...\sndcpy) and run sndcpy from there. You'll get the error message (probably vlc cannot be found).

rom1v avatar Aug 29 '20 05:08 rom1v

Just open vlc player before script starting then script will work and don't forget to paste videolan folder in c:/program files

BANUTEJAGOUD avatar Dec 18 '20 16:12 BANUTEJAGOUD

I run command prompt as administrator and there were no more problems

chispofish avatar Feb 15 '21 23:02 chispofish

Hi! So I just struggled with this and my solution (which was quite simple to be honest) was the fact that in my VLC was installed in Program (x86) in the C drive and not in "Program". All I had to do was to move VLC into "Program" and it was all fine. The problem occurs like this since sndcpy is precoded to look for VLC inside the "Program" file and not "program (x86)"

yinxianghao avatar May 12 '21 12:05 yinxianghao

if you have 64 bit windows, go install 64 bit VLC. Before i unser 32 bit vlc and always forceclose

JaluDwija37 avatar May 19 '21 04:05 JaluDwija37