| View previous topic :: View next topic |
| Author |
Message |
ciphyre
Joined: 10 May 2009 Posts: 3 Location: Oswego, IL
|
Posted: Sun May 10, 2009 5:26 pm Post subject: Disconnect issues with Icecast/ IceS 2.0.1 on Fedora 10 |
|
|
I have done some research and see similar issues to what I am experiencing but I have yet to find an actual solution.
The problem I am experiencing occurs after any client connects to the Icecast stream. I am using mpd on a remote box and Rhythmbox music player on the localhost and both clients do the same thing. If the clients connect while a ogg is being streamed everything is golden, but at the end of the song/file both mpd and Rhythmbox disconnect and I have to reconnect both clients to continue on to the next song being streamed.
Being a newbie to icecast and ices I am not sure if I am interpreting the debug logs correctly, but from what I can gather it looks like the stream is being torn down between each song and a new one is created for the next song. I am not sure if this is a result of icecast or ices, since both have entries in the log files that make it appear there is a tear down/new stream instance happening on both sides.
If someone that is better at deciphering the logs could tell me what it looks like is happening I would appreciate it:
Icecast Log:
[2009-05-09 14:20:46] DBUG stats/modify_node_event update node total_bytes_sent (37749872)
[2009-05-09 14:20:51] DBUG stats/modify_node_event update node total_bytes_read (2048570252)
[2009-05-09 14:20:51] DBUG stats/modify_node_event update node total_bytes_sent (37750511)
[2009-05-09 14:20:53] DBUG format-vorbis/initiate_flush adding EOS packet
[2009-05-09 14:20:53] DBUG format-vorbis/get_buffer_finished flushing page
[2009-05-09 14:20:53] DBUG format-ogg/format_ogg_free_headers releasing header pages
[2009-05-09 14:20:53] DBUG format-ogg/format_ogg_free_headers releasing header pages
[2009-05-09 14:20:53] DBUG format-ogg/free_ogg_codecs freeing codecs
[2009-05-09 14:20:53] DBUG format-vorbis/vorbis_codec_free freeing vorbis codec
[2009-05-09 14:20:53] DBUG format-vorbis/initial_vorbis_page checking for vorbis codec
[2009-05-09 14:20:53] INFO format-vorbis/initial_vorbis_page seen initial vorbis header
[2009-05-09 14:20:53] DBUG format-vorbis/process_vorbis_page processing incoming header packet (1)
[2009-05-09 14:20:53] DBUG format-vorbis/process_vorbis_page processing incoming header packet (2)
[2009-05-09 14:20:53] DBUG format-vorbis/process_vorbis_page we have the header packets now
[2009-05-09 14:20:53] DBUG format-vorbis/process_vorbis_headers Adding the 3 header packets
[2009-05-09 14:20:53] DBUG format-ogg/format_ogg_attach_header attaching BOS page
[2009-05-09 14:20:53] DBUG format-ogg/format_ogg_attach_header attaching header page
[2009-05-09 14:20:53] DBUG stats/process_source_event delete node audio_bitrate
[2009-05-09 14:20:53] DBUG stats/process_source_event delete node audio_channels
[2009-05-09 14:20:53] DBUG stats/process_source_event delete node audio_samplerate
[2009-05-09 14:20:53] DBUG stats/process_source_event new node audio_samplerate (44100)
[2009-05-09 14:20:53] DBUG stats/process_source_event new node audio_channels (2)
[2009-05-09 14:20:53] DBUG stats/process_source_event new node audio_bitrate (64000)
[2009-05-09 14:20:53] DBUG stats/modify_node_event update node ice-bitrate (64)
[2009-05-09 14:20:54] DBUG stats/modify_node_event update node artist (Robin Miller)
[2009-05-09 14:20:54] DBUG stats/modify_node_event update node title (The Love That We Are)
[2009-05-09 14:20:54] DBUG stats/modify_node_event update node subtype (Vorbis)
[2009-05-09 14:20:55] DBUG client/client_send_bytes Client connection died
[2009-05-09 14:20:55] DBUG source/source_main Client removed
[2009-05-09 14:20:55] INFO source/source_main listener count on /example1.ogg now 0
[2009-05-09 14:20:55] DBUG stats/modify_node_event update node clients (1)
[2009-05-09 14:20:55] DBUG stats/modify_node_event update node listeners (0)
[2009-05-09 14:20:55] DBUG stats/modify_node_event update node listeners (0)
[2009-05-09 14:20:56] DBUG stats/modify_node_event update node total_bytes_read (2048586821)
[2009-05-09 14:20:56] DBUG stats/modify_node_event update node total_bytes_sent (37759326)
[2009-05-09 14:21:01] DBUG stats/modify_node_event update node total_bytes_read (2048616307)
[2009-05-09 14:21:01] DBUG stats/modify_node_event update node total_bytes_sent (37759326)
[2009-05-09 14:21:06] DBUG stats/modify_node_event update node total_bytes_read (2048650171)
[2009-05-09 14:21:06] DBUG stats/modify_node_event update node total_bytes_sent (37759326)
[2009-05-09 14:21:09] DBUG slave/_slave_thread checking master stream list
[2009-05-09 14:21:11] DBUG stats/modify_node_event update node total_bytes_read (2048679617)
[2009-05-09 14:21:11] DBUG stats/modify_node_event update node total_bytes_sent (37759326)
[2009-05-09 14:21:16] DBUG stats/modify_node_event update node total_bytes_read (2048713333)
[2009-05-09 14:21:16] DBUG stats/modify_node_event update node total_bytes_sent (37759326)
Ices log:
[2009-05-09 14:17:52] INFO playlist-builtin/playlist_read Currently playing "/etc/ices2/music/rename_music"
[2009-05-09 14:17:52] WARN playlist-builtin/playlist_read Corrupt or missing data in file (/etc/ices2/music/rename_music)
[2009-05-09 14:17:52] INFO playlist-builtin/playlist_read Currently playing "/etc/ices2/music/Tears Of Joy.oga"
[2009-05-09 14:17:52] DBUG encode/encode_clear Clearing encoder engine
[2009-05-09 14:17:52] DBUG reencode/reencode_page Reinitialising reencoder for new logical stream
[2009-05-09 14:17:52] INFO encode/encode_initialise Encoder initialising in VBR mode: 2 channels, 44100 Hz, nominal 64000
[2009-05-09 14:20:53] INFO playlist-builtin/playlist_read Currently playing "/etc/ices2/music/The Love That We Are.oga"
[2009-05-09 14:20:53] DBUG encode/encode_clear Clearing encoder engine
[2009-05-09 14:20:53] DBUG reencode/reencode_page Reinitialising reencoder for new logical stream
[2009-05-09 14:20:53] INFO encode/encode_initialise Encoder initialising in VBR mode: 2 channels, 44100 Hz, nominal 64000
[2009-05-09 14:25:32] INFO playlist-builtin/playlist_read Currently playing "/etc/ices2/music/The Sould of Me.oga"
[2009-05-09 14:25:32] DBUG encode/encode_clear Clearing encoder engine
[2009-05-09 14:25:32] DBUG reencode/reencode_page Reinitialising reencoder for new logical stream
[2009-05-09 14:25:32] INFO encode/encode_initialise Encoder initialising in VBR mode: 2 channels, 44100 Hz, nominal 64000
[2009-05-09 14:28:59] INFO playlist-builtin/playlist_read Currently playing "/etc/ices2/music/Thoughts.oga"
[2009-05-09 14:28:59] DBUG encode/encode_clear Clearing encoder engine
[2009-05-09 14:28:59] DBUG reencode/reencode_page Reinitialising reencoder for new logical stream
Any insight would be appreciated.
Thanks! |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun May 10, 2009 9:39 pm Post subject: |
|
|
while you have 1 warning in the ices log about a failed entry, the rest looks ok. The listening clients seems to be closing the connection, try with vlc, mplayer and ogg123.
karl. |
|
| Back to top |
|
 |
ciphyre
Joined: 10 May 2009 Posts: 3 Location: Oswego, IL
|
Posted: Sun May 10, 2009 11:19 pm Post subject: |
|
|
I will try the other clients for sanity checks, but I am sort of stuck using mpd as a client, so I am hoping to resolve this issue and still use mpd.
The reason I am stuck using mpd is because I have it installed on a modified WLAN router running OpenWRT with support for USB audio so it is functioning as a streaming audio client for a distributed audio system I am trying to create. I have the setup working with Internet radio stations like Soma.fm, the issue only occurs with my own icecast server.
If I play a long ogg file the client stays connected the entire length of the song, the client has no idea how long the stream is, so why would the client disconnect at the very end of the song and not some random point during the stream? I think this is why I have been suspecting a configuration issue with either icecast or ices, since two clients have the same issue, but maybe one of the clients you suggested will have different results.
Is there a similar sized and functionally capable media play like mpd that should work with icecast as a cllent and not have this issue? |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon May 11, 2009 3:02 am Post subject: |
|
|
I've tried Rhythmbox here and that has trouble with header updates, so send a message to those developers because they seem to have broken their chain handling. This may be the same thing affecting mpd but I cannot verify that. Another way to test is to join 2+ ogg files (eg cat *.ogg > test.ogg), try to play the resulting file.
karl. |
|
| Back to top |
|
 |
ciphyre
Joined: 10 May 2009 Posts: 3 Location: Oswego, IL
|
Posted: Wed May 13, 2009 8:48 pm Post subject: |
|
|
Looks like the issue is with the version of mpd I am using as the stream client and its support for ogg vorbis file headers. I decided to give ices0.4 a try which supports streaming of mp3 files and the issue went away.
For what I need at the moment using ices0.4, and streaming mp3 files will work. |
|
| Back to top |
|
 |
|