[vorbis] Looking for a batch encoder program
Carl Joachim Berdal Haga
cjhaga at student.matnat.uio.no
Mon Feb 11 10:00:01 PST 2002
"Philip M. White" <pwhite at gigacluster.net> writes:
> At 21:57 2/10/2002, Lance Paine wrote:
> >BASH with oggenc :)
>
> Fair enough; are you expert enough in bash that you could give me
> the script for such an operation?
Completely untested. Assumes that the directories are arranged as
<artist>/<album>/<trackname>.vaw.
for file in $(find . -name '*.wav'); do
artist=$(echo "$file" | cut -d / -f 2)
album=$(echo "$file" | cut -d / -f 3)
track=$(basename "$file" .wav)
echo oggenc -q 4 -a "$artist" -l "$album" -t "$track" -o $(dirname "$file")/"$artist - $track.ogg" "$file"
done
Change to suit your directory structure and preferences. Remove
"echo" from last line to actually do anything as opposed to
printing the commands that would have been executed.
-j
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the Vorbis
mailing list