]> code.delx.au - transcoding/blobdiff - rip-audio
Tabs to spaces
[transcoding] / rip-audio
index 4d23eabcdd9a30738fb9ed64a7a68cf13da2ae03..205c9d8f20a68305a23724a2401b4da0e61af5ba 100755 (executable)
--- a/rip-audio
+++ b/rip-audio
@@ -4,22 +4,22 @@ MPLAYER="mplayer"
 FFMPEG="ffmpeg"
 
 if [ -z "$1" ]; then
-       echo "Usage: $0 filename"
-       exit 1
+    echo "Usage: $0 filename"
+    exit 1
 fi
 
 INPUT="$1"
 
 acodec="$(
-       "$MPLAYER" -identify -vo null -ao null -frames 0 "$INPUT" |
-       grep ID_AUDIO_CODEC |
-       cut -d= -f2
+    "$MPLAYER" -identify -vo null -ao null -frames 0 "$INPUT" |
+    grep ID_AUDIO_CODEC |
+    cut -d= -f2
 )"
 if [ "$acodec" = "ffaac" ]; then
-       ext=".m4a"
+    ext=".m4a"
 else
-       echo "Unknown audio codec! $acodec"
-       exit 1
+    echo "Unknown audio codec! $acodec"
+    exit 1
 fi
 
 OUTPUT="$(basename "$INPUT" | sed 's/\.[a-zA-Z1-9]*$//')${ext}"