ogg to mp3 conversion

Thomas Stivers stivers_t at tomass.dyndns.org
Thu Jun 17 13:51:27 EDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Jun 17 2004  9:16 AM, Steve Holmes wrote:
> I don't think you can... I think each of these compression schemes
> have a decode path to the common .wav format but I don't see any way
> to go directly.  Ogg doesn't know about mp3 and mp3 don't know
> anything about ogg if ya know what I mean.

The best you can do is to pipe ogg123 or oggdec to standard output and
then have lame read from standard input. This takes a bit of fiddling
because you have to use raw pcm data on the pipe and you have to give
both programs the right options to handle the raw samples. You'll have
to look at the relevent man pages for the details, but it should be
pretty easy to script.

- -- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

Thomas Stivers	e-mail: stivers_t at tomass.dyndns.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA0dof5JK61UXLur0RAvz8AJwIgdXxOwv0K2qKuyfw57x5qx+oPQCZAWpu
exAXKnvXFhac3JNEzzv65ok=
=T4S1
-----END PGP SIGNATURE-----




More information about the Speakup mailing list