Update Audio Streaming

master
Elliott Liggett 2020-09-16 18:55:21 +00:00
rodzic 14c76cd3f1
commit a337892c9a
1 zmienionych plików z 2 dodań i 2 usunięć

@ -29,10 +29,10 @@ 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
`
```
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.