diff options
author | Florian Pritz <bluewind@xinu.at> | 2013-05-11 13:27:07 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2013-05-11 13:27:07 +0200 |
commit | 60cb01f9a81c311f914aed4a23e8e5b35e965918 (patch) | |
tree | 8b9109a8f1bcf37506755e0e77b83b0a026cda57 /convert2ogg | |
parent | a9ba01279e6f3c64b082f4de6e7d95cd1b5f7dab (diff) | |
download | bin-60cb01f9a81c311f914aed4a23e8e5b35e965918.tar.gz bin-60cb01f9a81c311f914aed4a23e8e5b35e965918.tar.xz |
soem more cleanup
Signed-off-by: Florian Pritz <bluewind@xinu.at>
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 |