I've been running classic icecast + liveice for some time now (several years) without problems. A couple days ago, the station manager (NPR affiliate) came to me and asked if we could 'inject' a static file into the stream. Basically what he wants is for the client to first receive a static file (requesting donations of course) and then on to the live stream (*not* intermittently). I'm hoping this can be accomplished server-side with either icecast or liveice; but haven't had any luck. Here's my working liveice config... Look forward to suggestions/ideas. <p>SERVER 127.0.0.1 PORT 80 X_AUDIOCAST_LOGIN PASSWORD ***** NAME WUGA 91.7/97.9FM: Athens, GA, USA GENRE Other, NPR PUBLIC 1 DESCRIPTION 91.7/97.9FM: Athens, GA, USA DEBUG 0 VERBOSE 0 SOUNDCARD SOUND_DEVICE /dev/dspW FULL_DUPLEX NO_MIXER USE_LAME3 /usr/local/bin/lame #ENCODER_ARGS -p -c -h #ENCODER_ARGS -c -h --silent ENCODER_ARGS --silent ENCODER_STREAM_SET 1 SAMPLE_RATE 44100 BITRATE 128000 STEREO MOUNTPOINT hi URL http://wuga.org/ ENCODER_STREAM_SET 0 SAMPLE_RATE 22050 BITRATE 16000 MONO MOUNTPOINT lo URL http://wuga.org/ --------------------------------------- Robin P. Blanchard Systems Integration Specialist Georgia Center for Continuing Education fon: 706.542.2404 < > fax: 706.542.6546 --------------------------------------- --- >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.
i know with icecast2/ices , karl heyes has some example config files for mixing live/static content ( if i recall correctly ) . however, what i had done in the past is add the static file to the .pls prior to the live mount . if you generate the .pls files on demand , this would work . ALSO , i'm quite sure that both icecast1/2 support intro/outtro files , etc .. this may achieve the same effect . a:/, On Thu, 13 Nov 2003, Robin P. Blanchard wrote:> I've been running classic icecast + liveice for some time now (several years) > without problems. A couple days ago, the station manager (NPR affiliate) came > to me and asked if we could 'inject' a static file into the stream. Basically > what he wants is for the client to first receive a static file (requesting > donations of course) and then on to the live stream (*not* intermittently). > I'm hoping this can be accomplished server-side with either icecast or > liveice; but haven't had any luck. Here's my working liveice config... > Look forward to suggestions/ideas. > > > SERVER 127.0.0.1 > PORT 80 > X_AUDIOCAST_LOGIN > PASSWORD ***** > NAME WUGA 91.7/97.9FM: Athens, GA, USA > GENRE Other, NPR > PUBLIC 1 > DESCRIPTION 91.7/97.9FM: Athens, GA, USA > > DEBUG 0 > VERBOSE 0 > > SOUNDCARD > SOUND_DEVICE /dev/dspW > FULL_DUPLEX > NO_MIXER > > USE_LAME3 /usr/local/bin/lame > #ENCODER_ARGS -p -c -h > #ENCODER_ARGS -c -h --silent > ENCODER_ARGS --silent > > ENCODER_STREAM_SET 1 > SAMPLE_RATE 44100 > BITRATE 128000 > STEREO > MOUNTPOINT hi > URL http://wuga.org/ > > ENCODER_STREAM_SET 0 > SAMPLE_RATE 22050 > BITRATE 16000 > MONO > MOUNTPOINT lo > URL http://wuga.org/ > > --------------------------------------- > Robin P. Blanchard > Systems Integration Specialist > Georgia Center for Continuing Education > fon: 706.542.2404 < > fax: 706.542.6546 > --------------------------------------- > > --- >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. >--- >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.
On Thu, 2003-11-13 at 16:38, Adon Irani wrote:> i know with icecast2/ices , karl heyes has some example config files for > mixing live/static content ( if i recall correctly ) .just to clarify, the ices2 mods I have do allow for stating multiple inputs but not mixing, they are full switchover. This would work in this case as the first would be a once through playlist followed by an oss input (for example). The issue here is ices2 only sends out ogg vorbis so an mp3 stream would have to be transcoded from it. karl. <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.
If you use an .m3u file, this is trivial. Just insert the URL for the static file on a line before the one pointing to your live stream. We did the same thing at KGNU when we wanted to let everyone know about the webcaster royalty protest day, and it worked perfectly. Matt On Thu, Nov 13, 2003 at 10:57:49AM -0500, Robin P. Blanchard wrote:> I've been running classic icecast + liveice for some time now (several years) > without problems. A couple days ago, the station manager (NPR affiliate) came > to me and asked if we could 'inject' a static file into the stream...-------------- next part -------------- A non-text attachment was scrubbed... Name: part Type: application/pgp-signature Size: 190 bytes Desc: not available Url : http://lists.xiph.org/pipermail/icecast/attachments/20031113/4ef346e9/part.pgp
I've done this and it works great. But there are drawbacks. If the player client is in random track mode, the player may play the live stream first, and never the static content. I've always wanted an option to have a static file(s) presented to the client before the live stream. Having it done on the server would make sure that whatever the static content was it couldn't be skipped. The Real Player stations has intro promos and little commercials, like that. If you knew the final url you could bypass them all. I'd even like to see the static files be affected by mount point declarations in the config. Then you could use the fallback directive to eventually kick it to a live stream. <p>On Thu, 2003-11-13 at 11:48, Matt Boersma wrote:> If you use an .m3u file, this is trivial. Just insert the URL for the > static file on a line before the one pointing to your live stream. > > We did the same thing at KGNU when we wanted to let everyone know > about the webcaster royalty protest day, and it worked perfectly.<p><p> -- Keith Geffert <keith@penguingurus.com> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 190 bytes Desc: This is a digitally signed message part Url : http://lists.xiph.org/pipermail/icecast/attachments/20031113/93f52121/signature.pgp