Skip to content
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

Can't Install Sndcpy [Mac OS Catalina] #14

Open
hndq opened this issue Jun 28, 2020 · 25 comments
Open

Can't Install Sndcpy [Mac OS Catalina] #14

hndq opened this issue Jun 28, 2020 · 25 comments

Comments

@hndq
Copy link

hndq commented Jun 28, 2020

Whenever I run the .sndcpy program
these errors pop up

Waiting for device...
Performing Streamed Install
adb: failed to stat sndcpy.apk: No such file or directory
Uninstalling existing version first...
Failure [DELETE_FAILED_INTERNAL_ERROR]

[Process completed]

Thank you so much for helping me out

@rom1v
Copy link
Owner

rom1v commented Jun 28, 2020

Is sndcpy.apk in your current directory?

How did you run it?

@hndq
Copy link
Author

hndq commented Jun 28, 2020

Directory as in? Its unzipped in the downloads folder this
I clicked the .sndcpy file > runs in terminal > shows Failure [DELETE_FAILED_INTERNAL_ERROR]

Is the folder required to be kept in an another location?

@rom1v
Copy link
Owner

rom1v commented Jun 28, 2020

Open a terminal into this directory, and execute ./sndcpy instead.

@hndq
Copy link
Author

hndq commented Jun 28, 2020

I searched the web but I didn't understand how to do it. Sorry, I'm really new to this

@hndq
Copy link
Author

hndq commented Jun 28, 2020

Screen Shot 2020-06-28 at 11 04 20 PM

I dragged the folder into the terminal window and then it has shown zsh: permission denied: /Users/tanishhandique/Downloads/sndcpy-v1.0

@rom1v
Copy link
Owner

rom1v commented Jun 28, 2020

cd /Users/tanishhandique/Downloads/sndcpy-v1.0
./sndcpy

@hndq
Copy link
Author

hndq commented Jun 28, 2020

Screen Shot 2020-06-29 at 12 42 41 AM
I have VLC installed

@rom1v
Copy link
Owner

rom1v commented Jun 29, 2020

(please post the content of your terminal between ``` instead of a screenshot)

vlc: command not found

Where is it installed? If you just type vlc, I guess you have the same error.

Either add its path into your PATH variable, or simplify:

# adapt the path
export VLC=/path/to/your/vlc/executable
./sndcpy

@hndq
Copy link
Author

hndq commented Jun 29, 2020

(I'm really sorry)

Yes it shows the same error
I didn't understand the "add its path into your PATH"

but I entered

export VLC=/path/to/your/vlc/executable
./sndcpy

then I get
zsh: no such file or directory: ./sndcpy

@rom1v
Copy link
Owner

rom1v commented Jun 29, 2020

No but you must execute that command from the sndcpy directory:

cd /Users/tanishhandique/Downloads/sndcpy-v1.0
export VLC=/path/to/your/vlc/executable
./sndcpy

@ccarbajo
Copy link

ccarbajo commented Jun 30, 2020

i try to run sndcpy, i already get this in console

➜  sndcpy-v1.0 (1) ./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...
----here i put ok in device (s10 plus) later console show this
VLC media player 3.0.11 Vetinari (revision 3.0.11-0-gdc0c5ced72)
[00007fe366909530] dummy interface: using the dummy interface module...
[00007fe3655681f0] main stream error: connection error: Connection refused

and nothing happens in my device i see sndcpy Audio forwarding enabled, so what can i do?
i use macbook pro 2019

@ccarbajo
Copy link

nvm i already get sound from youtube but how can hear games like cod mobile? thanks in advance

@rom1v
Copy link
Owner

rom1v commented Jul 1, 2020

nvm i already get sound from youtube but how can hear games like cod mobile?

https://github.com/rom1v/sndcpy/blob/master/README.md#apps-restrictions

@hndq
Copy link
Author

hndq commented Jul 1, 2020

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

./sndcpy: line 29: /path/to/your/vlc/executable: No such file or directory
tanishhandique@Abhijits-MacBook-Air sndcpy-v1.0 % 

Sorry I was busy with school work.

I did the following as you commanded me to do but got this instead. I guess it doesn't work on Catalina :(

@rom1v
Copy link
Owner

rom1v commented Jul 1, 2020

./sndcpy: line 29: /path/to/your/vlc/executable: No such file or directory

You must adapt the path to your vlc executable 😉

@hndq
Copy link
Author

hndq commented Jul 1, 2020

./sndcpy: line 29: /Users/tanishhandique/Applications/VLC.app: is a directory
tanishhandique@Abhijits-MacBook-Air sndcpy-v1.0 % 

I get this and I'm so confused :(

@ccarbajo
Copy link

ccarbajo commented Jul 1, 2020

I read app restrictions, but for example i see in youtube a guy using sndcpy in cod mobile and he play perfect with sound but in my case not, maybe any difference between devices?

@FraAlle
Copy link

FraAlle commented Jul 3, 2020

Hi, i have the same problem, but i made the cd /Users/tanishhandique/Downloads/sndcpy-v1.0 export VLC=/path/to/your/vlc/executable ./sndcpy but, when i do press enter on the console, give me the error. Idk what could be the problem.
Instead scrcpy works perfectly.
I'm on Mojave and i'm using an xiaomi redmi note 8 pro.

Franci@MacBook-Pro-di-Franci  ~/Downloads/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...

./sndcpy: line 29: /path/to/your/vlc/executable: No such file or directory

Thanks for the help

@rom1v
Copy link
Owner

rom1v commented Jul 3, 2020

@hndq For the path, try /Users/tanishhandique/Applications/VLC.app/Contents/MacOS/VLC or /Applications/VLC.app/Contents/MacOS/VLC

@pranshhu
Copy link

I able to run sndcpy, by exporting vlc.
But the audio output is too low on my mac

@rom1v
Copy link
Owner

rom1v commented Jul 23, 2020

Remove -Idummy in the script, so you have a VLC UI where you can adjust the volume.

@pranshhu
Copy link

Sorry I'm not good at these stuff.
Could you please tell me how I can do that.

@pranshhu
Copy link

Nvm, thanks for your help

@roushan0102
Copy link

#!/bin/bash
set -e
ADB=${ADB:-adb}
VLC=${VLC:-vlc}
SNDCPY_APK=${SNDCPY_APK:-sndcpy.apk}
SNDCPY_PORT=${SNDCPY_PORT:-28200}

serial=
if [[ $# -ge 1 ]]
then
serial="-s $1"
echo "Waiting for device $1..."
else
echo 'Waiting for device...'
fi

"$ADB" $serial wait-for-device
adb install /Users/roushankumar/Documents/software/sndcpy-v1.0/sndcpy.apk
echo 'Intall complete'

"$ADB" $serial forward tcp:$SNDCPY_PORT localabstract:sndcpy
"$ADB" $serial shell am start com.rom1v.sndcpy/.MainActivity
echo "Press Enter once audio capture is authorized on the device to start playing..."
read dummy
/Applications/VLC.app/Contents/MacOS/VLC --demux rawaud --network-caching=50 --play-and-exit tcp://localhost:"$SNDCPY_PORT"
Above script working for MacOs

@SergiyBoyko
Copy link

SergiyBoyko commented Jan 5, 2021

Try to launch command with error. Then:
Install sndcpy.apk on your smatphone, and then open it.
Enter in teminal this command: alias vlc='/Applications/VLC.app/Contents/MacOS/VLC'
and then this command: vlc -Idummy --demux rawaud --network-caching=50 --play-and-exit tcp://localhost:28200
This steps works for me (MacOs Catalina)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants