added ogg vorbis conversion
This commit is contained in:
17
src/toogg.sh
Executable file
17
src/toogg.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#! /bin/bash
|
||||
|
||||
SRC=${1:-.}
|
||||
DST=${2:-/var/tmp/spielfilme/ogg}
|
||||
|
||||
for f in $(find "$SRC" \( -name '*.jpg' -prune \) -o -type f -print); do
|
||||
t="${f/$SRC/$DST}"
|
||||
t="${t%.*}.ogg"
|
||||
if test -s "${t}"; then
|
||||
continue;
|
||||
fi
|
||||
test -d "${t%/*}" || mkdir -p "${t%/*}"
|
||||
avconv -i "$f" -c:v libtheora -c:a libvorbis -q:v 6 -q:a 5 "$t"
|
||||
if ( ! test -s "${t}" ) && ( test -e "$t" ); then
|
||||
rm "$t"
|
||||
fi
|
||||
done
|
Reference in New Issue
Block a user