1

I've got a named pipe at ~/audio/stream that I want to send a copy of all my system audio to. The other side of this pipe is being read by a docker container and played using aplay. I know the other side is working since I can use ffmpeg to play audio into the pipe. I tried using arecord to get system audio, but I got no output on the other side. I'm not sure how to capture system audio and send it to a named pipe with ffmpeg. I'd like to capture it in a 44100hz, 16 bits, 2 channels format.

How can I capture system audio and send it to this named pipe?

Byte11
  • 183
  • 1
  • 1
  • 6
  • See [Capturing ONLY desktop audio with ffmpeg](https://askubuntu.com/a/682793/) and also see the comment about `pactl list soruces`. Then do something like `ffmpeg -channels 2 -sample_rate 44100 -f pulse -i alsa_output.pci-0000_00_1f.3.analog-stereo.monitor -f wav ~/audio/stream` – llogan Mar 09 '21 at 21:00
  • @llogan I tried that, but it didn't seem to capture any audio – Byte11 Mar 12 '21 at 04:09

0 Answers0