Update Audio Streaming

master
Elliott Liggett 2020-09-16 18:56:40 +00:00
rodzic a337892c9a
commit aae4e2f89d
1 zmienionych plików z 4 dodań i 2 usunięć

@ -12,10 +12,11 @@ First, install these packages:
My machine actually walked me through the icecast2 setup process. Two things are important here. First, write down the passwords. These are only needed for the admin web page. Second, when asked for a FQDN, you need to specify something -- an IP address or a real hostname -- that can be resolved and used by your clients. Do not specify 127.0.0.1, it won't work. Use your LAN IP address if you are only using it at home. If you want to use it externally, use your external IP address or a hostname (possibly via dynamic DNS).
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`
Now turn on your IC-7300, 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.)
Look for something like this:
@ -29,7 +30,8 @@ From this output, our 7300 is going to be audio device 1, subdevice 0, specified
Now create a shell script to run ffmpeg. This is needed because the command is rather long and you might want a simple way to edit the command.
```#!/bin/bash
```
#!/bin/bash
# 22.05 KHz, Latency is 1.5 s
ffmpeg -ac 1 -f alsa -i hw:1,0 -ar 22050 -acodec libmp3lame -ab 256k -ac 1 -content_type audio/mpeg -flags low_delay -fflags nobuffer -f mp3 icecast://source:letmein@192.168.1.104:8000/icom
```