I've followed a bunch of guides regarding ALSA, Pulseaudio, JACK, etc., but none have seemed to work. I'll be specific with what I'm trying to do. On a cloud-based Debian VM, I want to:
- Open a stream using
cvlc - Start an
icecast2server on the same system - Capture the audio stream from
cvlcusingdarkiceand send it to the localicecast2server
However, a cloud VM doesn't have an audio card. So I'm trying to set up a virtual device to make this work. So far, I've had no luck.
Why would I want to do this? Simple. There are several vloggers I follow who do live shows. They provide a podcast recording later on in the day, but they don't provide a live audio stream. I'd like to listen to them live when I'm out and about, but streaming YouTube is a great way to eat up your mobile data.
So, I want to:
- Set up a small cloud server
- Play their video stream with
cvlc - Capture the
cvlcaudio withdarkice - Re-broadcast the audio to a local
icecast2server
I've gotten it to work in pieces. I'm able to:
- Get
icecast2running on a cloud server - Use my laptop to play the video stream with
cvlc - Capture the stream's audio with
darkice(also on my laptop) and send it to theicecast1instance on the cloud server
However, I can't figure out how to get all the pieces working on the sound card-less cloud server. I know it can be done, and I know it requires setting up a virtual sound card. I've modprobe'd and pactl'd a lot of things, but I just can't get it to work.
Sorry to be long-winded, but I wanted to be explicit.