diff options
Diffstat (limited to 'convert2ogg')
-rwxr-xr-x | convert2ogg | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/convert2ogg b/convert2ogg deleted file mode 100755 index ec49617..0000000 --- a/convert2ogg +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash -#---------------------------------------------------- -# Version: 0.1.0 -# Author: Florian "Bluewind" Pritz <flo@xssn.at> -# -# Licensed under WTFPL v2 -# (see COPYING for full license text) -# -#---------------------------------------------------- -# Converts a number of files provided on the command line to OGG -#---------------------------------------------------- - -for i in "$@"; do - pushd . &> /dev/null - cd "$(dirname "$i")" - - file="$(basename "$i")" - file_ogg="$(echo ${file} | sed 's/\(.*\)\..*/\1/').ogg" - tmpfile="$(echo ${file} | sed 's/\(.*\)\..*/\1/').wav" - - mplayer -ao pcm:fast -novideo -vc null -vo null -ao pcm:file="$tmpfile" "$file" - oggenc -q 5 "$tmpfile" - - rm "$tmpfile" - - popd &> /dev/null -done |