xmlstarlet + icecast // return a value
curl –get -s -o – –user ‘admin:adminpass’ “http://localhost:8000/admin/stats” | xml sel -t -m ‘/icestats/source[@mount=”/myradio.mp3″]’ -v listeners -v channels -n –
curl –get -s -o – –user ‘admin:adminpass’ “http://localhost:8000/admin/stats” | xml sel -t -m ‘/icestats/source[@mount=”/myradio.mp3″]’ -v listeners -v channels -n –
You have had the correct file rights and this message already occurs in error.log? The icecast.xml is accepted without problems during regular start? Your icecast runs stable? Solution: Maybe you have chrooted and the icecast process now can not access to the icecast.xml you have had provided via command line.
# ffmpeg -hide_banner -loglevel panic -re -icy 1 \ -i http://217.160.15.191/bbradio-ch04.aac -vn -map_metadata:s:0 0:g \ -acodec copy -f adts icecast://source:MYPASS@localhost:8000/test # ffmpeg -hide_banner -loglevel panic -re -icy 1 \ -i http://217.160.15.191/bbradio-ch04.mp3 -vn -map_metadata:s:0 0:g \ -acodec copy -f mp3 icecast://source:MYPASS@localhost:8000/test # sudo -u _liquidsoap liquidsoap \ output.icecast(%fdkaac, icy_metadata=”true”, host=”DstHOST”, port=80, password=”MyPASS”, mount=”/bbradio.aac”, mksafe(input.http(“http://SrcHOST:80/bbradio-ch01.aac”))) # sudo […]
1. Install and configure Icecast listenning on 127.0.0.1 port 8000 without ssl. ;) 2. Install nginx 3. Create directory .well-known in webroot ( here: /var/www/html ) 4. Install certbot 5. Configure nginx: /etc/nginx/nginx.conf: #user www; worker_processes 4; #pid /run/nginx.pid; events { worker_connections 768; # multi_accept on; } http { ## # Basic Settings ## sendfile […]
gawk ‘BEGIN { FPAT=”([^ ]+)|(\”[^\”]+\”)|(\\[[^\\]]+\\])” } { print $9 }’
linux: curl -s http://streams.ir-media-tec.com/bbradio.aac | grep 1 > /dev/null && echo OK || echo BRICKED openbsd: curl -s http://streams.ir-media-tec.com/bbradio.aac | head -1 | grep 1 > /dev/null && echo OK || echo BRICKED
Icecast should run as user icecast2. But if he should listen on port 80, you run into trouble, cs nonprivileged users can’t use privileged ports (lower 1024). You can do the following trick: Modify the /etc/default/icecast2 file, change the user to root. Then it will start as root, open the port 80, and then switch […]
browsers interrupt playback on chained ogg files delivered by icecast cs. the serial changes (using icecasts intro feature) https://code.google.com/p/chromium/issues/detail?id=175281 https://bugzilla.mozilla.org/show_bug.cgi?id=455165 javascript workaround example https://github.com/emilis/worldradioplayer/blob/master/static/js/sound-player.js#L86
url = “http://ADDRESS:80/radio.mp3” input = mksafe(input.http(url)) set(“log.file.path”,”/var/log/liquidsoap/radio.log”) output.icecast( %vorbis(samplerate=44100, channels=2, quality=0.9), mount=”/radio.ogg”, name=”RADIO”, url=”http://YOURSITE”, description=”YOURDESC”, genre=”YOURGENRE”, host=”ADDRESS”, port=PORT, password=”PASSWORD”, input) output.icecast( # %aac(channels=2, samplerate=44100, bitrate=128, adts=true), # %aacplus(channels=2, samplerate=44100, bitrate=64), %fdkaac(channels=2, samplerate=44100, aot=”mpeg2_he_aac_v2″, transmux=”adts”, sbr_mode=false, bitrate=48), mount=”/radio.aac”, name=”RADIO”, url=”http://YOURSITE”, description=”YOURDESC”, genre=”YOURGENRE”, host=”ADDRESS”, port=PORT, password=”PASSWORD”, input) output.icecast( %mp3(samplerate=44100, internal_quality=2, bitrate=64, stereo=false), mount=”/radio-mono.mp3″, name=”RADIO”, url=”http://YOURSITE”, description=”YOURDESC”, genre=”YOURGENRE”, […]