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
Hi Geoff! Thanks for ur reply Is there a way to tell icecast that the stream is mp3 ? Mac OS X has another way of live streaming using Quicktime Broadcaster, however, i am not able to make it work with MPlayer2. It works file with a quicktime client. There seems to be some issues with the SDP files that Quicktime creates for playing the audio and mplayer. Nicecast is kindof exactly what i want, but its not a freeware and i want to try the open source stuff first. Basically, what i have is XBMC running, and want to send the local audio from iBook to xbmc, which is connected to the home theater. I would eventually like to use FLAC for compressing the audio, so there is no loss of quality. ICES is not getting compiled on OSX, am getting error: (I have installed the icecast/libshout libraries, havent tried really hard to debug ices yet). Making all in playlist if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DICES_MODULEDIR=\"/usr/local/etc/modules\" -I../../src -I/sw/include/libxml2 -I/sw/include -g -pipe -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE -g -O2 -Wall -I/usr/local/include -MT playlist.o -MD -MP -MF ".deps/playlist.Tpo" -c -o playlist.o playlist.c; \ then mv -f ".deps/playlist.Tpo" ".deps/playlist.Po"; else rm -f ".deps/playlist.Tpo"; exit 1; fi In file included from ../../src/definitions.h:88, from playlist.c:22: ../../src/icestypes.h:38: error: parse error before "shout_t" ../../src/icestypes.h:38: warning: no semicolon at end of struct or union ../../src/icestypes.h:63: error: parse error before '}' token ../../src/icestypes.h:63: warning: type defaults to `int' in declaration of `ices_stream_t' ../../src/icestypes.h:63: warning: data definition has no type or storage class ../../src/icestypes.h:126: error: parse error before "ices_stream_t" ../../src/icestypes.h:126: warning: no semicolon at end of struct or union ../../src/icestypes.h:129: error: parse error before '}' token ../../src/icestypes.h:129: warning: type defaults to `int' in declaration of `ices_config_t' ../../src/icestypes.h:129: warning: data definition has no type or storage class In file included from ../../src/definitions.h:90, from playlist.c:22: Thanks ! Dwipal On Dec 31, 2004, at 5:05 PM, Geoff Shang wrote: Hi: Not sure if I'm reading this correctly, but it looks to me that Icecast is thinking it's an ogg stream which might be part of your problem. This is a fairly clunky way of streaming, surely there's something more conventional that can be used on OS X nowadays? That article is 2.5 years old. I'd have thought you'd be able to compile Ices or Darkice under OS X. Or you could try Nicecast (I've not used it but it seems to be what you might want) - http://www.rogueamoeba.com/nicecast/ Best of luck. Geoff. -- Geoff Shang <geoff@hitsandpieces.net> Phone: +61-418-96-5590 MSN: geoff@acbradio.org Make sure your E-mail can be read by everyone! http://www.betips.net/etc/evilmail.html Please avoid sending me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html _______________________________________________ Icecast mailing list Icecast@xiph.org http://lists.xiph.org/mailman/listinfo/icecast
Hi: Not sure if I'm reading this correctly, but it looks to me that Icecast is thinking it's an ogg stream which might be part of your problem. This is a fairly clunky way of streaming, surely there's something more conventional that can be used on OS X nowadays? That article is 2.5 years old. I'd have thought you'd be able to compile Ices or Darkice under OS X. Or you could try Nicecast (I've not used it but it seems to be what you might want) - http://www.rogueamoeba.com/nicecast/ Best of luck. Geoff. -- Geoff Shang <geoff at hitsandpieces.net> Phone: +61-418-96-5590 MSN: geoff at acbradio.org Make sure your E-mail can be read by everyone! http://www.betips.net/etc/evilmail.html Please avoid sending me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html
Hi Geoff! Thanks for ur reply Is there a way to tell icecast that the stream is mp3 ? Mac OS X has another way of live streaming using Quicktime Broadcaster, however, i am not able to make it work with MPlayer2. It works file with a quicktime client. There seems to be some issues with the SDP files that Quicktime creates for playing the audio and mplayer. Nicecast is kindof exactly what i want, but its not a freeware and i want to try the open source stuff first. Basically, what i have is XBMC running, and want to send the local audio from iBook to xbmc, which is connected to the home theater. I would eventually like to use FLAC for compressing the audio, so there is no loss of quality. ICES is not getting compiled on OSX, am getting error: (I have installed the icecast/libshout libraries, havent tried really hard to debug ices yet). Making all in playlist if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DICES_MODULEDIR=\"/usr/local/etc/modules\" -I../../src -I/sw/include/libxml2 -I/sw/include -g -pipe -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE -g -O2 -Wall -I/usr/local/include -MT playlist.o -MD -MP -MF ".deps/playlist.Tpo" -c -o playlist.o playlist.c; \ then mv -f ".deps/playlist.Tpo" ".deps/playlist.Po"; else rm -f ".deps/playlist.Tpo"; exit 1; fi In file included from ../../src/definitions.h:88, from playlist.c:22: ../../src/icestypes.h:38: error: parse error before "shout_t" ../../src/icestypes.h:38: warning: no semicolon at end of struct or union ../../src/icestypes.h:63: error: parse error before '}' token ../../src/icestypes.h:63: warning: type defaults to `int' in declaration of `ices_stream_t' ../../src/icestypes.h:63: warning: data definition has no type or storage class ../../src/icestypes.h:126: error: parse error before "ices_stream_t" ../../src/icestypes.h:126: warning: no semicolon at end of struct or union ../../src/icestypes.h:129: error: parse error before '}' token ../../src/icestypes.h:129: warning: type defaults to `int' in declaration of `ices_config_t' ../../src/icestypes.h:129: warning: data definition has no type or storage class In file included from ../../src/definitions.h:90, from playlist.c:22: Thanks ! Dwipal On Dec 31, 2004, at 5:05 PM, Geoff Shang wrote: Hi: Not sure if I'm reading this correctly, but it looks to me that Icecast is thinking it's an ogg stream which might be part of your problem. This is a fairly clunky way of streaming, surely there's something more conventional that can be used on OS X nowadays? That article is 2.5 years old. I'd have thought you'd be able to compile Ices or Darkice under OS X. Or you could try Nicecast (I've not used it but it seems to be what you might want) - http://www.rogueamoeba.com/nicecast/ Best of luck. Geoff. -- Geoff Shang <geoff@hitsandpieces.net> Phone: +61-418-96-5590 MSN: geoff@acbradio.org Make sure your E-mail can be read by everyone! http://www.betips.net/etc/evilmail.html Please avoid sending me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html _______________________________________________ Icecast mailing list Icecast@xiph.org http://lists.xiph.org/mailman/listinfo/icecast