From 25ec9df0cc33b1a7e965c749c7b46f314333bfe0 Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Fri, 6 Mar 2009 19:06:47 +0200 Subject: [PATCH] Whitespace cleanup. --- iptv/internetradio.sh | 14 +++++++------- iptv/iptvstream.sh | 24 ++++++++++++------------ iptv/linein.sh | 12 ++++++------ iptv/vlc2iptv | 2 +- iptv/webcam.sh | 16 ++++++++-------- 5 files changed, 34 insertions(+), 34 deletions(-) diff --git a/iptv/internetradio.sh b/iptv/internetradio.sh index 5bb9219..e53b308 100755 --- a/iptv/internetradio.sh +++ b/iptv/internetradio.sh @@ -27,7 +27,7 @@ if [ $# -ne 2 ]; then logger "$0: error: Invalid parameter count '$#' $*" - exit 1; + exit 1 fi # Channels.conf parameter @@ -49,8 +49,8 @@ rm -f "${FIFO}" mkfifo "${FIFO}" mplayer -dumpstream "${URL}" \ - -quiet -nolirc -noautosub -noconsolecontrols -novideo -nojoystick \ - -dumpfile "$FIFO" & + -quiet -nolirc -noautosub -noconsolecontrols -novideo -nojoystick \ + -dumpfile "$FIFO" & # Time to connect and fill pipe sleep 3 @@ -58,10 +58,10 @@ sleep 3 # Build audio only stream # PID 0x100/256 = Audio ffmpeg -v -1 \ - -i "${FIFO}" \ - -title "${TITLE}" \ - -f mpegts -acodec mp2 -ac 2 -ab 96k -ar 48000 \ - - | nc -u 127.0.0.1 ${PORT} + -i "${FIFO}" \ + -title "${TITLE}" \ + -f mpegts -acodec mp2 -ac 2 -ab 96k -ar 48000 \ + - | nc -u 127.0.0.1 ${PORT} rm -f "${FIFO}" } > ${LOG} 2>&1 diff --git a/iptv/iptvstream.sh b/iptv/iptvstream.sh index 27b4c38..fd8063e 100755 --- a/iptv/iptvstream.sh +++ b/iptv/iptvstream.sh @@ -22,7 +22,7 @@ if [ $# -ne 2 ]; then logger "$0: error: Invalid parameter count '$#' $*" - exit 1; + exit 1 fi # Channels.conf parameter @@ -41,24 +41,24 @@ ABITRATE=320 # then controlled by the extra parameter passed by IPTV plugin to the script case ${PARAMETER} in 1) - URL="" - WIDTH=720 - HEIGHT=576 - ;; + URL="" + WIDTH=720 + HEIGHT=576 + ;; 2) - URL="" - ;; + URL="" + ;; 3) - URL="" - ;; + URL="" + ;; *) - URL="" # Default URL - ;; + URL="" # Default URL + ;; esac if [ -z "${URL}" ]; then logger "$0: error: URL not defined!" - exit 1; + exit 1 fi # Create transcoding options diff --git a/iptv/linein.sh b/iptv/linein.sh index c6944b5..268540d 100755 --- a/iptv/linein.sh +++ b/iptv/linein.sh @@ -27,7 +27,7 @@ if [ $# -ne 2 ]; then logger "$0: error: Invalid parameter count '$#' $*" - exit 1; + exit 1 fi # Channels.conf parameter @@ -46,9 +46,9 @@ LOG=/dev/null # PID 0x100/256 = Audio arecord -q -D hw:0,0 -f dat | \ ffmpeg -v -1 \ - -f wav \ - -i - \ - -title "${TITLE}" \ - -f mpegts -acodec mp2 -ac 2 -ab 128k -ar 48000 \ - - | nc -nu 127.0.0.1 ${PORT} + -f wav \ + -i - \ + -title "${TITLE}" \ + -f mpegts -acodec mp2 -ac 2 -ab 128k -ar 48000 \ + - | nc -nu 127.0.0.1 ${PORT} } > ${LOG} 2>&1 diff --git a/iptv/vlc2iptv b/iptv/vlc2iptv index c7040c4..598e46d 100755 --- a/iptv/vlc2iptv +++ b/iptv/vlc2iptv @@ -37,7 +37,7 @@ AUDIO_BITRATE=320 exit_with_error() { logger "vlc2iptv: error: $*" - exit 1; + exit 1 } read_arguments() diff --git a/iptv/webcam.sh b/iptv/webcam.sh index c900b47..49cfd9e 100755 --- a/iptv/webcam.sh +++ b/iptv/webcam.sh @@ -27,7 +27,7 @@ if [ $# -ne 2 ]; then logger "$0: error: Invalid parameter count '$#' $*" - exit 1; + exit 1 fi # Channels.conf parameter @@ -50,8 +50,8 @@ rm -f "${FIFO}" mkfifo "${FIFO}" mplayer -dumpstream "${URL}" \ - -quiet -nolirc -noautosub -noconsolecontrols -novideo -nojoystick \ - -dumpfile "${FIFO}" & + -quiet -nolirc -noautosub -noconsolecontrols -novideo -nojoystick \ + -dumpfile "${FIFO}" & # Time to connect and fill pipe sleep 3 @@ -59,11 +59,11 @@ sleep 3 # Build stream from audiodump with cycle image as video # PID 0x100/256 = Video 0x101/257 = Audio ffmpeg -v -1 \ - -i "${FIFO}" -r 0.5 -loop_input -i '${IMAGE}' \ - -title "${TITLE}" \ - -f mpegts -intra -r 24 -vcodec mpeg2video -b 500k -s 352x288 \ - -acodec mp2 -ac 2 -ab 96k -ar 48000 \ - - | nc -u 127.0.0.1 ${PORT} + -i "${FIFO}" -r 0.5 -loop_input -i '${IMAGE}' \ + -title "${TITLE}" \ + -f mpegts -intra -r 24 -vcodec mpeg2video -b 500k -s 352x288 \ + -acodec mp2 -ac 2 -ab 96k -ar 48000 \ + - | nc -u 127.0.0.1 ${PORT} rm -f "${FIFO}" } > ${LOG} 2>&1