Traduisez - Übersetzen - Traduzca - Traduza - Tradurre - Translate

VanLUG Email Archive

Re: Streaming mp3s from stdin and stdout via a cgi..

Alan Hodgson
Tue, 6 Oct 1998 10:24:32 -0700

On Tue, Oct 06, 1998 at 04:58:23AM -0700, Vincent Janelle wrote:
> I'm wondering, if I can get a mp3 encoder to encode something, the output
> being stdout over a CGI, would the mpg123 http support decode that stream?
>
> I'm thinking of like 22khz mono audio.
>
> Let me know if you know of any docs that could help. Thanks

I don't know if you can stream mp3's. You can definitely create
a multi-part HTML document on the fly with the mp3 file in the document,
but the client will have to save the whole file to disk before playing.

I believe you need to use real audio encoding or something
similar to actually stream. Corrections welcome; I would be
interested in learning how to stream mp3's if possible, or
how to convert them to RA files, for a project of my own.

- Alan