On 1 Oct 2005, peterb@vancampen.org wrote:
Is there any way to do this with what comes with SUSE 9.3?
As long as you have mpg123 installed, here is a quick and dirty batch
conversion script:
,----[ mp3_to_ogg.sh ]
| #!/bin/sh
| #
| # Author: Charles Philip Chan
| #
| # Usage: mp3_to_ogg.sh
| #
| until [ -z "$1" ]; do
| echo "$1" > name.temp
| mpg123 -w temp.wav "$1"
| oggenc -q6 -o "`cut -d. -f1 name.temp`".ogg temp.wav
| rm temp.wav
| rm name.temp
| shift
| done
`----
You can change the quality as you please. The best way to do it is to
put all the mp3 you want to convert in one directory and issue the
command:
mp3_to_ogg.sh *.mp3
Also file renaming will only be correct when there is one period in the
filename.
I have to warn you though, there will be quality lost when converting
lossy to lossy.
Charles
--
die_if_kernel("Kernel gets FloatingPenguinUnit disabled trap", regs);
linux-2.2.16/arch/sparc/kernel/traps.c