Update Audio Streaming

master
Elliott Liggett 2020-09-16 18:48:39 +00:00
rodzic 038cfd09ac
commit 1f02b480c7
1 zmienionych plików z 2 dodań i 0 usunięć

@ -18,6 +18,7 @@ Now turn on your IC-7300, and run these commands to determine the correct audio
`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:
`card 1: CODEC [USB Audio CODEC], device 0: USB Audio [USB Audio]
Subdevices: 0/1
Subdevice #0: subdevice #0`
@ -30,6 +31,7 @@ Now create a shell script to run ffmpeg. This is needed because the command is r
# 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
`
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.
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.