rom1v / usbaudio

Forward audio from Android devices
MIT License
353 stars 32 forks source link

audio is not playing on linux #5

Open Ananyajain721 opened 5 years ago

Ananyajain721 commented 5 years ago

I am using ASUS zenfone max pro M2 stock Android P. It doesn't show any error

[INFO] Device: [18d1:2d05] JBAAGF081424RH5 [INFO] Audio forwarding enabled [INFO] Matching PulseAudio input source found: 2 (18d1:2d05) asus_SDM660-QRD__SN:42204D05_JBAAGF081424RH5 [INFO] Playing pulse://2 VLC media player 3.0.4 Vetinari (revision 3.0.4-0-gf615db6332) [000056178eb6c230] dummy interface: using the dummy interface module...

it starts with this. But doesn't play audio on my ubuntu. IDK why? it seems everything fine And I run without scrcpy.

gshah30 commented 5 years ago

Same issue with me.

I am using HP Desktop with Lubuntu OS. My Device: Redmi Note 6 Pro

Here is the terminal log [gshah@gshah-desk ~]$ usbaudio [INFO] Device: [18d1:2d05] 4e55f6ec [INFO] Audio forwarding enabled [INFO] Matching PulseAudio input source found: 4 (18d1:2d05) Xiaomi_SDM636-MTP__SN:E443775A_4e55f6ec [INFO] Playing pulse://4 VLC media player 3.0.7.1 Vetinari (revision 3.0.7.1-0-gf3940db4af) [000056222feb0320] dummy interface: using the dummy interface module...

but there is no sound. I am playing this without scrcpy.

There is no visible error anywhere.

manish6022 commented 4 years ago

Any solution???

rom1v commented 4 years ago

No, I don't know what the problem is.

arifinnmo commented 4 years ago

I got same issue, no Audio playing.

I tried command ffplay -vn -f pulse -i alsa_input.usb-Xiaomi_Redmi_Note_3_d238a584-01.analog-stereo

no ff player appear, but when I was unplug usb the FF player appear

cosoc commented 4 years ago

我的debain10一样,没有声音

fredomne commented 4 years ago

Same issue, Xiaomi Mi 6 connecting to Ubuntu 19.10 VM.

[INFO] Device: [18d1:4ee7] a87092db [INFO] Audio forwarding enabled [INFO] Waiting for input source... [INFO] Matching PulseAudio input source found: 13 (18d1:2d05) Xiaomi_MI_6_a87092db [INFO] Playing pulse://13 VLC media player 3.0.8 Vetinari (revision 3.0.8-0-gf350b6b5a7) [000055ccb6c516d0] dummy interface: using the dummy interface module...

Samega7Cattac commented 4 years ago

I had a similar issue, check ur pulseaudio for some muted application or device

thelazyone11 commented 4 years ago

Same issue , i play with or without scrcpy

[INFO] Device: [18d1:2d05] 0053d3e00504 [INFO] Audio forwarding enabled [INFO] Matching PulseAudio input source found: 2 (18d1:2d05) Android_Android_0053d3e00504 [INFO] Playing pulse://2 VLC media player 3.0.8 Vetinari (revision 3.0.8-0-gf350b6b5a7) [000055687fe8fbc0] dummy interface: using the dummy interface module...

AnshadV commented 4 years ago

Same issue
I am using SparkyLinux i386 with Asus zenfone max pro m1

[INFO] Device: [0b05:7775] J8AAGF127166WKH [INFO] Audio forwarding enabled [INFO] Waiting for input source... [INFO] Matching PulseAudio input source found: 2 (18d1:2d05) asus_SDM636-QRD__SN:0DB1B0AD_J8AAGF127166WKH [INFO] Playing pulse://2 VLC media player 3.0.8 Vetinari (revision 3.0.8-0-gf350b6b5a7) [0185e100] dummy interface: using the dummy interface module...

RashadBrowne commented 4 years ago

[INFO] Device: [04e8:6860] 234be4d5 [INFO] Audio forwarding enabled [INFO] Waiting for input source... [INFO] Matching PulseAudio input source found: 7 (18d1:2d05) SAMSUNG_SAMSUNG_Android_234be4d5 [INFO] Playing pulse://7 VLC media player 3.0.8 Vetinari (revision 3.0.8-0-gf350b6b5a7) [000055a60de46690] dummy interface: using the dummy interface module...

Same issue running android 9 and linux mint, in fact when im using usb audio the usb manager on my phone doesnt know what it has selected.

then when trying to use scrcpy after closing usbaudio

INFO: scrcpy 1.12.1 https://github.com/Genymobile/scrcpy adb: error: failed to get feature set: insufficient permissions for device: user in plugdev group; are your udev rules wrong? See [http://developer.android.com/tools/device.html] for more information ERROR: "adb push" returned with value 1

abhijith-ms commented 4 years ago

Same issue with me.

I am using HP Desktop with Lubuntu OS. My Device: Redmi Note 6 Pro

Here is the terminal log [gshah@gshah-desk ~]$ usbaudio [INFO] Device: [18d1:2d05] 4e55f6ec [INFO] Audio forwarding enabled [INFO] Matching PulseAudio input source found: 4 (18d1:2d05) Xiaomi_SDM636-MTP__SN:E443775A_4e55f6ec [INFO] Playing pulse://4 VLC media player 3.0.7.1 Vetinari (revision 3.0.7.1-0-gf3940db4af) [000056222feb0320] dummy interface: using the dummy interface module...

but there is no sound. I am playing this without scrcpy.

There is no visible error anywhere.

Same issue with me for Redmi Note 5 Pro. Couldn't fix. Also there's no sign of any error.

mushaibkhan commented 8 months ago

Update scrcpy:

Ensure you have the latest version of scrcpy installed. You can do this by running the following commands in the terminal:

sudo apt update
sudo apt upgrade scrcpy

Check System Audio: Make sure that your system audio is working correctly. Test the audio with other applications or media players to ensure it's not a system-wide issue.

Check scrcpy Options: When starting scrcpy, make sure you are not explicitly disabling audio. The -N option, for example, disables audio. Ensure that you are not using it unintentionally.

scrcpy

PulseAudio: Ensure that PulseAudio is properly configured. You can install PulseAudio if it's not already installed:

sudo apt install pulseaudio

Also, make sure PulseAudio is running:

pulseaudio --start

PulseAudio Volume Control: Use the PulseAudio Volume Control (pavucontrol) to check if scrcpy is listed and that its audio is not muted.

sudo apt install pavucontrol
pavucontrol

Look for scrcpy in the playback tab and ensure the audio is not muted.

Restart ADB and scrcpy: Restart the Android Debug Bridge (ADB) and scrcpy:

adb kill-server
adb start-server
scrcpy

Permissions: Ensure that your user has the necessary permissions to access audio devices. You can add your user to the "audio" group:

sudo usermod -aG audio $USER

Logout and log back in for the changes to take effect.

Note: If you are using a wired headphones then audio cant be played on your Ubuntu device