Mailinglist Archive: opensuse-security (232 mails)

< Previous Next >
Re: [OT] Convert ogg to mp3 in 9.3 - any suggestions?
  • From: "Charles philip Chan" <cpchan@xxxxxxxxxxxx>
  • Date: Sat, 01 Oct 2005 23:45:18 -0400
  • Message-id: <8764sgwpip.fsf@xxxxxxxxxxxxxxx>
On 1 Oct 2005, peterb@xxxxxxxxxxxxx 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 <list of mp3 files, wild cards allowed>
| #
| 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
< Previous Next >