[icecast] Re: Simple streamer help

John Ackermann N8UR jra at febo.com
Mon Apr 1 21:21:51 UTC 2002



Hi Mario --

Thanks for the reply.  Actually, I have an apache server available.  My 
problem is how to get from the user selecting a song or series of songs via 
the web interface, to having the music magically start playing out of the 
user's speakers...

The part I'm having trouble wrapping my head around is getting the browser 
to play not a single file that's sitting in some static location (that much 
I have working), but instead a continuing sequence of songs (e.g., a 
playlist generated by the front-end software).  That's why I was thinking 
of streaming; my current program could pass either the mp3 bitstream, or 
the filesystem location of the song that's playing, to icecast if that 
would work.  But I don't know if that's the best answer, and in any event I 
don't know how to interface to icecast in this way.

(By the way -- this is all running inside my house, so there would at most 
be two or three streams going at any given time, and it's all on an 
ethernet, so bandwidth isn't an issue; nor is CPU since the music system is 
on a dedicated box.)

John

<p>--On Monday, April 01, 2002 2:53 PM -0600 Mario Marquez 
<mmarquez at cernet.com.mx> wrote:

>
> John
>
> "Static files (http support)
> There is support in icecast for streaming files directory from the server
> to the client. This is usually handled much more nicely by a real http
> server, but if you don't want to go through the hassle of setting up
> apache or roxen or whatever, then this might be what you're looking for.
> All files must end in .mp3, and they must all be in the file tree rooted
> at a directory specified with the static_dir variable. This directory
> corresponds to the virtual directory http://server:port/file/. So a file
> named stream.mp3 in the static_dir directory can be accessed through a
> http request (in a browser or mp3 player or whatever) with the url
> http://server:port/file/stream.mp3. "
>
> ...from ICECAST Documentation.
>
> Check my server
>
> http://anicast.com.mx:9000/file/
>
>
> BEst REgards,
>
> Mario
>
>
>
>
>
> At 03:20 p.m. 01/04/02 -0500, you wrote:
>> Following up on myself because I just realized I may be barking up the
>> wrong tree; if so I apologize for the bandwidth, but would still love it
>> if someone could point me in the right direction.
>>
>> After reading through the mailing list archives, I think that icecast
>> may  not be the solution I'm looking for, because I'm hoping to somehow
>> play  the mp3s on demand from the web browser, not via a separate
>> mp3-playing  program.  My goal is to have the user select a song or a
>> playlist from my  existing web interface, and have the brownser "render"
>> the songs (I  suppose that may require a browser plug-in of some sort?).
>> Can this be done?
>>
>> Sorry to be dense about all this; if it's not obvious already, I know
>> nothing about putting audio on the Internet.
>>
>> Thanks,
>>
>> John
>>
>> --On Monday, April 01, 2002 2:42 PM -0500 John Ackermann N8UR
>> <jra at febo.com> wrote:
>>
>>> Hi --
>>>
>>> I am trying to add limited streaming capability to an existing mp3 setup
>>> I'm running for internal use at my house.
>>>
>>> I'm using the "mp3sb" package with a php-based web front-end to pipe
>>> music to my stereo; now I want to extend that so I can use the same web
>>> interface to stream to computers in the house.  I don't want to run
>>> shout or another streaming front-end (unless it can be invisible) as I
>>> already have a user interface that provides database functions,
>>> playlists, etc. and I'm quite happy with it.  All I want to do is hack
>>> the mp3sb server script to pass the user-selected mp3 file to icecast
>>> rather than to mpg123.
>>>
>>> So, what I'm looking for is guidance on the simplest way to stream an
>>> mp3 file into an icecast server.  What do I need to feed it, and how?
>>> I'll be working with a perl script that can provide the song's title,
>>> file location, genre, etc., and I'm sure I can hack it to pass the
>>> actual mp3 bitstream to icecast if that's needed.
>>>
>>> I hope this description makes sense.  Can anyone guide me in how to
>>> accomplish this?
>>>
>>> Thanks,
>>>
>>> John Ackermann
>>> jra at febo.com
>>>
>>> ----
>>> John Ackermann    N8UR         jra at febo.com     http://www.febo.com
>>> President, TAPR                n8ur at tapr.org    http://www.tapr.org
>>
>>
>>
>> ----
>> John Ackermann    N8UR         jra at febo.com     http://www.febo.com
>> President, TAPR                n8ur at tapr.org    http://www.tapr.org
>>
>>
>> --- >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 at 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 at xiph.org' containing only the word 'unsubscribe' in the
> body.  No subject is needed. Unsubscribe messages sent to the list will
> be ignored/filtered.
>
>

<p><p>
----
John Ackermann    N8UR         jra at febo.com     http://www.febo.com
President, TAPR                n8ur at tapr.org    http://www.tapr.org

<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 at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.




More information about the Icecast mailing list