Update Audio Streaming

master
Elliott Liggett 2020-09-16 18:58:55 +00:00
rodzic aae4e2f89d
commit d583e03cb6
1 zmienionych plików z 1 dodań i 1 usunięć

@ -36,7 +36,7 @@ Now create a shell script to run ffmpeg. This is needed because the command is r
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
```
Replace letmein with your actual password, and use the IP address of your computer running icecast. If you run the sample rate (22.05 KHz) higher, you will have double the latency. Similarly, if you *decrease* the bitrate of the encoded stream (256k in this case), you can expect *more* latency. The audio quality is acceptable down to 32k, and the latency increases only a modest amount at 128k (1.7 seconds in my experience) but quickly increases to several seconds at lower bitrates. There's probably a work-around, but I can't figure it out.
Replace letmein with your actual password (if you forgot it, the password is stored in plaintext in `/etc/icecast2/icecast.xml`), and use the IP address of your computer running icecast. If you run the sample rate (22.05 KHz) higher, you will have double the latency. Similarly, if you *decrease* the bitrate of the encoded stream (256k in this case), you can expect *more* latency. The audio quality is acceptable down to 32k, and the latency increases only a modest amount at 128k (1.7 seconds in my experience) but quickly increases to several seconds at lower bitrates. There's probably a work-around, but I can't figure it out.
Next, open a streaming client on your laptop, such as VLC, iTunes, or even a web browser. In VLC, choose File, then Open URL... and paste this in: http://192.168.1.104:8000/icom. You can also specify the stream like this: http://192.168.1.104:8000/icom.m3u (that's a playlist file). You might also just want to go to the icecast page with your web browser and poke around (there isn't much there) at http://192.168.1.104:8000/. Use the password you specified in setup.