Update Audio Streaming

master
Elliott Liggett 2020-09-16 19:18:07 +00:00
rodzic 77cf49c8ee
commit f7d3598820
1 zmienionych plików z 4 dodań i 2 usunięć

@ -6,6 +6,8 @@ While it is possible to stream the audio with pulse, I had a lot of trouble gett
Therefore, I went with a different approach, which actually works great and provides a lot of additional utility. The approach is to use ffmpeg to create an encoded stream, and then to use an icecast2 server to make the stream easily accessible by anything that can play back an mp3 or ogg stream. There's more latency with this approach (just under two seconds in my experience, on my own network), but it is so simple.
I am hoping to figure out how to do this with pulse later, at least for making a microphone stream, which would be really something for remote operation!
**Install the packages**
First, install these packages:
@ -16,11 +18,11 @@ My machine actually walked me through the icecast2 setup process. Two things are
**Set up Icecast**
Next, edit (as root) your `/etc/icecast2/icecast.xml` file, and change the `<burst-on-connect>` to a value of 0. Otherwise you will have double the latency. Now restart icecast: `systemd restart icecast2`
Next, edit (as root) your `/etc/icecast2/icecast.xml` file, and change the `<burst-on-connect>` to a value of 0. Otherwise you will have double the latency. Now restart icecast: `systemd restart icecast2` Surprisingly, you can leave the rest of the config file alone.
**Find your audio device**
Now turn on your IC-7300, and run these commands to determine the correct audio card designation to use:
Now turn on your IC-7300, plug in the USB cord, and run these commands to determine the correct audio card designation to use:
`sudo arecord -l`
(You have to run as root unless you are logged in at the physical console. This is a consequence of modern linux audio, unfortunately, and is annoying.)