[Icecast] Live streaming from Mac OS X
Dwipal Desai
mail at dwipal.com
Fri Dec 31 21:02:03 UTC 2004
I am trying to stream live audio from a Mac OS X ibook to a linux
machine running mplayer2 using instructions
http://www.macosxhints.com/article.php?
story=20020704134818926&query=live+itunes+streaming
I managed to compile everything (Icecast 2.2.0, libshout2, etc).
To compile icecast, i had to use "fakepoll.h" header file from
sealiesoftware.com/fakepoll.h to get around with the poll.h errors on
Mac OS X.
The command i am using to send stream to icecast server is:
esdrec | lame -b 128 - - | ./example
(Am example.c as it reads from stdin.)
The icecast server starts fine, libshout example file connects to the
server, but it seems that the server is dropping the stream somewhere.
I am basically not able to play the stream.
Dumping the output of lame to a file and playing it back again is
working, so there is something with icecast.
Any suggestions on how to fix this ?
Below is the icecast error_log file:
[2004-12-30 18:02:00] INFO main/main Icecast 2.2.0 server started
[2004-12-30 18:02:00] WARN main/main YP server handling has been
disabled
[2004-12-30 18:02:00] INFO stats/_stats_thread stats thread started
[2004-12-30 18:02:00] INFO fserve/fserv_thread_function file serving
thread started
[2004-12-30 18:02:01] DBUG slave/_slave_thread checking master stream
list
[2004-12-30 18:02:13] INFO connection/_handle_source_request Source
logging in at mountpoint "/radio.mp3"
[2004-12-30 18:02:13] DBUG connection/connection_complete_source
sources count is 0
[2004-12-30 18:02:13] DBUG connection/connection_complete_source
source is ready to start
[2004-12-30 18:02:13] DBUG source/source_init Source creation complete
[2004-12-30 18:02:13] DBUG stats/modify_node_event update node
connections (1)
[2004-12-30 18:02:13] DBUG stats/modify_node_event update node
source_client_connections (1)
[2004-12-30 18:02:13] DBUG stats/process_source_event new source stat
/radio.mp3
[2004-12-30 18:02:13] DBUG stats/process_source_event new node public
(0)
[2004-12-30 18:02:13] DBUG stats/process_source_event new node
listenurl (http://192.168.2.10:8000/radio.mp3)
[2004-12-30 18:02:13] DBUG stats/modify_node_event update node sources
(1)
[2004-12-30 18:02:13] DBUG stats/modify_node_event update node
source_total_connections (1)
[2004-12-30 18:02:13] DBUG stats/process_source_event new node
listeners (0)
[2004-12-30 18:02:13] DBUG stats/process_source_event new node
server_name (no name)
[2004-12-30 18:02:22] DBUG connection/_handle_get_request Source found
for client
[2004-12-30 18:02:22] DBUG source/source_main Client added
[2004-12-30 18:02:22] INFO source/source_main listener count on
/radio.mp3 now 1
[2004-12-30 18:02:22] DBUG stats/modify_node_event update node
connections (2)
[2004-12-30 18:02:22] DBUG stats/modify_node_event update node
client_connections (1)
[2004-12-30 18:02:22] DBUG stats/modify_node_event update node clients
(1)
[2004-12-30 18:02:22] DBUG stats/modify_node_event update node
listeners (1)
[2004-12-30 18:02:24] DBUG source/get_next_buffer last 1104458533,
timeout 10, now 1104458544
[2004-12-30 18:02:24] WARN source/get_next_buffer Disconnecting source
due to socket timeout
[2004-12-30 18:02:24] INFO source/source_shutdown Source "/radio.mp3"
exiting
[2004-12-30 18:02:24] DBUG source/source_clear_source clearing source
"/radio.mp3"
[2004-12-30 18:02:24] DBUG format-ogg/format_ogg_free_headers
releasing header pages
[2004-12-30 18:02:24] DBUG format-ogg/free_ogg_codecs freeing codecs
[2004-12-30 18:02:24] DBUG source/source_free_source freeing source
"/radio.mp3"
[2004-12-30 18:02:24] DBUG stats/modify_node_event update node sources
(0)
[2004-12-30 18:02:24] DBUG stats/process_source_event delete source
node /radio.mp3
[2004-12-30 18:02:24] DBUG stats/modify_node_event update node clients
(0)
Thanks in advance !
Dwipal
More information about the Icecast
mailing list