I cannot add a comment because I don't have reputation 50.
This question is 2 years old, but I landed here by searching for the same as you did.
You didn't told us by which user you are running ffmpeg command and what is certain error when you try to stream your audio device. Depending on this, there could be few answers.
I can tell you that I am on Archlinux desktop PC and I am able to do what you wanted.
As described here, check the names and/or numbers of your audio device. Below is my output:
[stiw47@archmedia ~]$ pactl list short sources
54 VirtualIn.monitor PipeWire float32le 2ch 48000Hz RUNNING
62 TestVirtual.monitor PipeWire float32le 2ch 48000Hz RUNNING
70 VirtualOut PipeWire float32le 2ch 48000Hz IDLE
431 File PipeWire float32le 2ch 48000Hz SUSPENDED
455 alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor PipeWire s32le 2ch 48000Hz RUNNING
1145 VirtualIn.monitor PipeWire float32le 2ch 48000Hz SUSPENDED
1154 VirtualOut_sink.monitor PipeWire float32le 2ch 48000Hz SUSPENDED
1161 VirtualOut PipeWire float32le 2ch 48000Hz SUSPENDED
Then, use either number or device name in your ffmpeg command:
ffmpeg -y -f pulse -i 455 -f u16le -acodec pcm_s16le -ac 2 -ar 44100 /home/stiw47/docker-compose-music/ledfx/audio/stream
This working like a charm for my case, and thanks for your ffmpeg command.
TL;DR
First time, my docker-compose-music
folder was in /root
directory, so i got either:
/root/docker-compose-music/ledfx/audio/stream: Permission denied
-
if I'm running ffmpeg as regular user
OR
455: No such process
- if I'm running ffmpeg as root
Since I moved /root/docker-compose-music
to /home/stiw47/docker-compose-music
, everything is working like a charm, I'm running ffmpeg command as user stiw47
If you update your question, most probably I can give precise answer, but I think this will be also useful for other people.
module-pipe-source
with no luck.pulseaudio-module-bluetooth
.pulseaudio-module-bluetooth
accomplishes the same thingrpi-audio-reciever
usesbluealsa
for. The key is also sending the audio to LedFx