Mat's Playground

music.makeOgg

Description

This script encodes all wave files in the current directory into ogg files with a quality setting of 6. That results in a VBR file with approx. 192 kbits.

Required tools

Download

Source code

Hide line numbers Expand lines
 1#!/bin/sh
 2# the next line restarts using tclsh \
 3exec tclsh "$0" "$@"
 4
 5foreach i [lsort [glob *.wav]] {
 6    puts "Encoding $i.."
 7    exec oggenc --quiet --quality 6 --resample 44100 $i
 8
 9    unset i
10}