ICECAST // Relaying forward with ffmpeg or liquidsoap// icecast to icecast

# ffmpeg -hide_banner -loglevel panic -re -icy 1 \ -i -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 -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 […]

Audio normalization with ffmpeg // part II

with dynaudnorm: ffmpeg -y -i “$A_FILE” -af “dynaudnorm=p=${NORMALIZE_TO_DB}dB:f=500:r=0.9:g=7” -f $FORMAT -sample_fmt $SAMPLEBITS -ab $BITRATE -ar $SAMPLERATE -ac $CHANNELS -vn “$A_FILE_NORMALIZED” > /dev/null 2>&1 with loudnorm: ffmpeg -y -i “$A_FILE” -af “loudnorm=TP=${NORMALIZE_TO_DB}” -f $FORMAT -sample_fmt $SAMPLEBITS -ab $BITRATE -ar $SAMPLERATE -ac $CHANNELS -vn “$A_FILE_NORMALIZED” > /dev/null 2>&1

Gentoo + Squid + Radius Auth + sslBump + remote SquidClamav + SquidGuard // intransparent official proxy in corporate environment

What to know: Squid caches and breaks clients encryption in MITM style. After clients request he establishes conections to both server and client. To the server he impersonates a client and checks servers certificates. Dismissed Server certs will be reported to the real client. To the client he acts like a server. After a succeful […]

BASH | Shalla | Squid acl import error | blacklist import // deduplicate shalla blacklists

# SLOW function dedup () { declare -a A_IN=(“${!1}”) declare -a A_OUT=(“${!1}”) for A_IN_ELEM in “${A_IN[@]}”; do II=-1 for A_OUT_ELEM in “${A_OUT[@]}”; do II=$(( $II + 1 )) [[ “x$A_OUT_ELEM” == “x$A_IN_ELEM” ]] && continue [[ “x$A_OUT_ELEM” == “x” ]] && continue echo “$A_OUT_ELEM” | grep -w “$A_IN_ELEM” > /dev/null if [ $? -eq 0 […]