[thread change, different topic]>is there a clean way to have MOH (Music on Hold) source >its audio from say a MS-ASF streem ??? > >got a radio station that wants to have their MOH come >from their ASF based netbroadcastI have run out of time for fooling around today, but I started to think about this one but have no time (or ability) to build this little glue program. Perhaps something that uses named pipes would allow this to happen. Do you know of any tools that convert ASF to mp3? 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... Let's say you have a streaming music source in .mp3 format, on 10.0.3.1:8000 mkfifo /var/lib/asterisk/stream1.mp3 ./backtoback 10.0.3.1:8000 /var/lib/asterisk/stream1.mp3 Then... ; musiconhold.conf default => quietmp3:/var/lib/asterisk/mohmp3 JT
> > [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.
> -----Original Message----- > From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users- > admin@lists.digium.com] On Behalf Of John Todd > Sent: Saturday, September 06, 2003 8:57 PM > To: asterisk-users@lists.digium.com > Subject: [Asterisk-Users] MP3 streams for MOH: idea > > > [thread change, different topic] > >is there a clean way to have MOH (Music on Hold) source > >its audio from say a MS-ASF streem ??? > > > >got a radio station that wants to have their MOH come > >from their ASF based netbroadcast > > I have run out of time for fooling around today, but I started to > think about this one but have no time (or ability) to build this > little glue program. Perhaps something that uses named pipes would > allow this to happen. Do you know of any tools that convert ASF to > mp3? > > 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... > > Let's say you have a streaming music source in .mp3 format, on > 10.0.3.1:8000 > > mkfifo /var/lib/asterisk/stream1.mp3 > ./backtoback 10.0.3.1:8000 /var/lib/asterisk/stream1.mp3 > > > Then... > ; musiconhold.conf > default => quietmp3:/var/lib/asterisk/mohmp3You are thinking along the lines of using a shoutcast radio stream? I was thinking about trying something like that the other day, haven't had the time to sit down and implement it yet...
> allow this to happen. Do you know of any tools that convert ASF to > mp3?mplayer/mencoder understands ASF, mp3 and lots of other formats. -- http://graphics.cs.uni-sb.de/VoIP/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 232 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20030907/07ad2c09/attachment.pgp