TCPKILL | Scripting mode – batch mode

TKILL_ID_SEM=”/tmp/tcpkill.$(date +%s).$RANDOM” test -f $TKILL_ID_SEM && rm -f $TKILL_ID_SEM tcpkill -9 host $DEAD_HOST > $TKILL_ID_SEM 2>/dev/null & KILL_PID=$! CNT=0; CNTLIMIT=60 while [ $CNT -lt $CNTLIMIT ]; do # echo $TKILL_ID_SEM sleep 1 test -f $TKILL_ID_SEM && rm -f $TKILL_ID_SEM && kill -9 $KILL_PID && exit CNT = $[ $CNT + 1 ] # echo $CNT […]

Low latency audio transmitting with vlc and ffmpeg

SENDER: ffmpeg -d -vol $VOLUME -f alsa -i $HWID -vn -vol $T_VOLUME -strict experimental -acodec $T_CODEC -ac $T_CHANNELS -ar $T_RATE -ab $T_BANDWIDTH -f rtp udp://${T_IP}:${T_PORT} RECEIVER: vlc -d –rc-fake-tty -I dummy -I oldrc –config $VLCCONFIGDIR/$BID.rc –rc-host $TELNET_IP:$TELNET_PORT –aout alsa –alsa-audio-device $HWID rtp://@:$RTP_PORT > /dev/null 2>&1 &