summaryrefslogtreecommitdiffstats
path: root/convert2ogg
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-05-11 13:27:07 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-05-11 13:27:07 +0200
commit60cb01f9a81c311f914aed4a23e8e5b35e965918 (patch)
tree8b9109a8f1bcf37506755e0e77b83b0a026cda57 /convert2ogg
parenta9ba01279e6f3c64b082f4de6e7d95cd1b5f7dab (diff)
downloadbin-60cb01f9a81c311f914aed4a23e8e5b35e965918.tar.gz
bin-60cb01f9a81c311f914aed4a23e8e5b35e965918.tar.xz
soem more cleanup
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'convert2ogg')
-rwxr-xr-xconvert2ogg27
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