[Asterisk-Users] MP3 streams for MOH: idea

Sam Bingner sam at bingner.com
Mon Sep 8 22:44:55 MST 2003


I have a working MP3 decoder in a thread, using libresample and
libmp3lame, but I'm not really happy with it yet.... Not sure about the
legalities but if anybody wants to try this work in progress just let me
know

Sam

-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com] On Behalf Of James Sharp
Sent: Saturday, September 06, 2003 4:14 PM
To: asterisk-users at lists.digium.com
Subject: Re: [Asterisk-Users] MP3 streams for MOH: idea


>
> [thread change, different topic]
>>is
> How about a little tiny program that connects to a remote host, grabs 
> the contents of an MP3 stream, and pushes it into a FIFO locally?  It 
> would be a raw TCP-to-FIFO stream, so mpg123 would be able to digest 
> it as if it was a local file.  The program would take two arguments: 
> remote hostname/IP and port, and then the file to which the output 
> would be sent.  I don't know how mpg123 handles blocking...

Is there any particular reason (rather than not having time to code one
and embed it into *) why we can't have our own in-thread connection to an
MP3 stream or file, rather than spawning off a process (fork() is
expensive as compared to pthread_create()) of mpg123 to play the
stream/file?

It seems that this spawning/hoping the process dies cleanly is a thorn in
a few people's side. _______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3243 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20030909/4e725247/smime.bin


More information about the asterisk-users mailing list