rom1v / sndcpy

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

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

Open hndq opened 4 years ago

hndq commented 4 years ago

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 commented 4 years ago

Is sndcpy.apk in your current directory?

How did you run it?

hndq commented 4 years ago

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

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

rom1v commented 4 years ago

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

hndq commented 4 years ago

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

hndq commented 4 years ago

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 commented 4 years ago
cd /Users/tanishhandique/Downloads/sndcpy-v1.0
./sndcpy
hndq commented 4 years ago

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

rom1v commented 4 years ago

(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 commented 4 years ago

(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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

rom1v commented 4 years ago

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 commented 4 years ago
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 commented 4 years ago
./sndcpy: line 29: /path/to/your/vlc/executable: No such file or directory

You must adapt the path to your vlc executable :wink:

hndq commented 4 years ago
./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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

pranshhu commented 4 years ago

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

rom1v commented 4 years ago

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

pranshhu commented 4 years ago

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

pranshhu commented 4 years ago

Nvm, thanks for your help

roushan0102 commented 4 years ago

!/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 commented 3 years ago

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)