Hello. I have a question. We run a number of public service audio streams. They are picking up in popularity, and it would be nice to take some credit for the bandwidth we are supplying. Lots of people directly linking to us. So I would like to attempt to do something that I've seen done with WMA streams. I would like it so when a listener connects, it plays back a 20 second audio clip announcing who pays for it, then rolls into the real audio stream. Any suggestions? I checked to see if there really was a file for the dummy playlist that is referenced in links, hoping that I could shove a pointer to the static served audio announcement first. No go there. I realize it presents all sorts of wierd issues, and if people directly link to the audio stream then it wouldn't work... but is there any way to accomplish this task? It would rock if Icecast supported inserting the audio upon connection, but I realize there are all sorts of logistics that would be a nightmare (relay hosts). -- Ethan <p><p><p>--- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Karl Heyes
2004-Aug-06 14:23 UTC
[icecast] the dummy playlist... chaining a clip to a stream.
On 2002.12.04 16:00 Ethan wrote:> So I would like to attempt to do something that I've seen done with WMA > streams. I would like it so when a listener connects, it plays back a 20 > second audio clip announcing who pays for it, then rolls into the real > audio stream. > > Any suggestions? I checked to see if there really was a file for the > dummy playlist that is referenced in links, hoping that I could shove a > pointer to the static served audio announcement first. No go there. > > I realize it presents all sorts of wierd issues, and if people directly > link to the audio stream then it wouldn't work... but is there any way to > accomplish this task?conceptually possible with icecast, but you don't want to do any encoding there, just send out a preprocessed file. It's the only place that knows of client connects and that can kick off a sample before the main stream. It wouldn't work with relays unless the relays did that as well. I not aware of anything in place for this though. karl. --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Seth de l'Isle
2004-Aug-06 14:23 UTC
[icecast] the dummy playlist... chaining a clip to a stream.
On Wed, Dec 04, 2002 at 11:00:08AM -0500, Ethan wrote:> Any suggestions? I checked to see if there really was a file for the > dummy playlist that is referenced in links, hoping that I could shove a > pointer to the static served audio announcement first. No go there.You can save the dummy play-list from off the web, edit it to your liking and serve it as a static page from a web server. As you expected you can just add a line to the top of the list specifying the url of an audio file containing the credits you want each listener to hear. If you serve the play-list from a web server make sure that the web server software knows about the mime type that goes with your play-list format. For m3u play-lists the server needs to be able to tell clients that the Mime type of files ending in .m3u is audio/x-mpegurl. It sounds like you would have administrative control of your web server, but if you don't you can generate your play-lists from a cgi script and set the HTTP header something equivalent to this: #!/bin/bash echo Content-Type: audio/x-mpegurl echo echo http://www.somedomain.net/credit.mp3 echo http://icecast.somedomain.net:8000/phatstream <p>Of course you still have to get all the linking sites to update their links. Hope this is some help. -- pgp public key http://ubertechnique.com/seth/pgp_key.txt ID: 0x60F9B67A --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
> It sounds like you would have administrative control of your web server, but > if you don't you can generate your play-lists from a cgi script and set the HTTP > header something equivalent to this:Yea I can add the mime type to the apache config. Thanks a ton!> Of course you still have to get all the linking sites to update their > links. > Hope this is some help.VERY much so! Thanks -- Ethan --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.