| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Sun Feb 17, 2008 10:35 am Post subject: xmms only starts playing stream when i kill ices2? |
|
|
Hi there
I've just tried to set up an icecast stream, but i'm encountering problems.
I'm using debian lenny, icecast2 and ices2, and I'm trying to stream an ogg-playlist to myself (on the same machine).
ices2 seems to connect ok with the server, server is up and doing, but I can't get anything on xmms. Only after I kill ices2, the stream opens in xmms and starts playing for a while... ??? What's the point I'm missing?
Edit:
OK, I've tried it with vlc (just didn't come to my mind to try that), and I get the stream. But it's interrupted quite often, how come? I think that streaming from localhost shout be fast? Is it because of encoding speed then? Any ideas?
Further info: It seems to work only when I type the exact address into vlc, but still it's constantly interrupted. I just called a friend and it worked there (only if typed into vlc) withOUT interruption. What might be the problem here?
Hi, new info again: It now works with xmms, too. I'm using my ISPs dynamic IP adress and entered the url directly into xmms. Doesn't work if i call the url on opera and pass it on to xmms, though...
icecast.xml:
| Code: |
<icecast>
<limits>
<clients>100</clients>
<sources>2</sources>
<threadpool>5</threadpool>
<queue-size>524288</queue-size>
<client-timeout>30</client-timeout>
<header-timeout>15</header-timeout>
<source-timeout>10</source-timeout>
<burst-on-connect>1</burst-on-connect>
<burst-size>65535</burst-size>
</limits>
<authentication>
<source-password>.....</source-password>
<relay-password>hackme</relay-password>
<!-- Admin logs in with the username given below -->
<admin-user>admin</admin-user>
<admin-password>.....</admin-password>
</authentication>
<!-- Uncomment this if you want directory listings -->
<!--
<directory>
<yp-url-timeout>15</yp-url-timeout>
<yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
</directory>
-->
<!-- This is the hostname other people will use to connect to your server.
It affects mainly the urls generated by Icecast for playlists and yp
listings. -->
<hostname>localhost</hostname>
<!-- You can use these two if you only want a single listener -->
<!--<port>8000</port> -->
<!--<bind-address>127.0.0.1</bind-address>-->
<!-- You may have multiple <listener> elements -->
<listen-socket>
<port>8000</port>
<!-- <bind-address>127.0.0.1</bind-address> -->
</listen-socket>
<!--
<listen-socket>
<port>8001</port>
</listen-socket>
-->
<!--<master-server>127.0.0.1</master-server>-->
<!--<master-server-port>8001</master-server-port>-->
<!--<master-update-interval>120</master-update-interval>-->
<!--<master-password>hackme</master-password>-->
<!-- setting this makes all relays on-demand unless overridden, this is
useful for master relays which do not have <relay> definitions here.
The default is 0 -->
<!--<relays-on-demand>1</relays-on-demand>-->
<!--
<relay>
<server>127.0.0.1</server>
<port>8001</port>
<mount>/example.ogg</mount>
<local-mount>/different.ogg</local-mount>
<on-demand>0</on-demand>
<relay-shoutcast-metadata>0</relay-shoutcast-metadata>
</relay>
-->
<!-- Only define a <mount> section if you want to use advanced options,
like alternative usernames or passwords
<mount>
<mount-name>/example-complex.ogg</mount-name>
<username>othersource</username>
<password>hackmemore</password>
<max-listeners>1</max-listeners>
<dump-file>/tmp/dump-example1.ogg</dump-file>
<burst-size>65536</burst-size>
<fallback-mount>/example2.ogg</fallback-mount>
<fallback-override>1</fallback-override>
<fallback-when-full>1</fallback-when-full>
<intro>/example_intro.ogg</intro>
<hidden>1</hidden>
<no-yp>1</no-yp>
<authentication type="htpasswd">
<option name="filename" value="myauth"/>
<option name="allow_duplicate_users" value="0"/>
</authentication>
<on-connect>/home/icecast/bin/stream-start</on-connect>
<on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
</mount>
<mount>
<mount-name>/auth_example.ogg</mount-name>
<authentication type="url">
<option name="mount_add" value="http://myauthserver.net/notify_mount.php"/>
<option name="mount_remove" value="http://myauthserver.net/notify_mount.php"/>
<option name="listener_add" value="http://myauthserver.net/notify_listener.php"/>
<option name="listener_remove" value="http://myauthserver.net/notify_listener.php"/>
</authentication>
</mount>
-->
<fileserve>1</fileserve>
<!-- set the mountpoint for a shoutcast source to use, the default if not
specified is /stream but you can change it here if an alternative is
wanted or an extension is required
<shoutcast-mount>/live.nsv</shoutcast-mount>
-->
<paths>
<!-- basedir is only used if chroot is enabled -->
<basedir>/usr/share/icecast2</basedir>
<!-- Note that if <chroot> is turned on below, these paths must both
be relative to the new root, not the original root -->
<logdir>/home/keuch/icecast2</logdir>
<webroot>/usr/share/icecast2/web</webroot>
<adminroot>/usr/share/icecast2/admin</adminroot>
<!-- <pidfile>/usr/share/icecast2/icecast.pid</pidfile> -->
<!--
<alias source="/foo" dest="/bar"/>
-->
<alias source="/" dest="/status.xsl"/>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<!-- <playlistlog>playlist.log</playlistlog> -->
<loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
<logsize>10000</logsize> <!-- Max size of a logfile -->
<!-- <logarchive>1</logarchive> -->
</logging>
<security>
<chroot>0</chroot>
<!--
<changeowner>
<user>nobody</user>
<group>nogroup</group>
</changeowner>
-->
</security>
</icecast> |
my ices.xml:
| Code: |
<?xml version="1.0"?>
<ices>
<background>0</background>
<logpath>/home/keuch/</logpath>
<logfile>ices.log</logfile>
<loglevel>4</loglevel>
<!-- 1=error,2=warn,3=info,4=debug -->
<consolelog>0</consolelog>
<stream>
<metadata>
<name>Testcast</name>
<genre>Testtunes</genre>
<description>none</description>
</metadata>
<input>
<module>playlist</module>
<param name="type">basic</param>
<param name="file">/home/keuch/radio.m3u</param>
<param name="random">0</param>
<param name="restart-after-reread">0</param>
<param name="once">0</param>
</input>
<instance>
<hostname>localhost</hostname>
<port>8000</port>
<password>.....</password>
<mount>/tester.ogg</mount>
<reconnectdelay>2</reconnectdelay>
<reconnectattempts>5</reconnectattempts>
<maxqueuelength>80</maxqueuelength>
<downmix>1</downmix>
<encode>
<nominal-bitrate>64000</nominal-bitrate>
<samplerate>44100</samplerate>
<channels>1</channels>
</encode>
</instance>
</stream>
</ices>
|
And here's an example of one try, from my ices.log
| Code: |
[2008-02-17 11:07:15] INFO ices-core/main IceS 2.0.1 started...
[2008-02-17 11:07:15] INFO signals/signal_usr1_handler Metadata update requested
[2008-02-17 11:07:15] INFO playlist-basic/playlist_basic_get_next_filename Loading playlist from file "/home/keuch/radio.m3u"
[2008-02-17 11:07:15] INFO playlist-builtin/playlist_read Currently playing "/ikarus/muk/to come/beats per inch/fragmente stef/hoi.ogg"
[2008-02-17 11:07:15] INFO stream/ices_instance_stream Connected to server: localhost:8000/tester.ogg
[2008-02-17 11:07:15] DBUG reencode/reencode_page Reinitialising reencoder for new logical stream
[2008-02-17 11:07:15] INFO encode/encode_initialise Encoder initialising in VBR mode: 1 channels, 44100 Hz, nominal 64000
[2008-02-17 11:09:46] INFO playlist-builtin/playlist_read Currently playing "/ikarus/muk/to come/beats per inch/tres#.ogg"
[2008-02-17 11:09:46] DBUG encode/encode_clear Clearing encoder engine
[2008-02-17 11:09:46] DBUG reencode/reencode_page Reinitialising reencoder for new logical stream
[2008-02-17 11:09:46] INFO encode/encode_initialise Encoder initialising in VBR mode: 1 channels, 44100 Hz, nominal 64000
[2008-02-17 11:09:46] INFO audio/downmix_initialise Enabling stereo->mono downmixing
[2008-02-17 11:10:30] INFO signals/signal_int_handler Shutdown requested...
[2008-02-17 11:10:30] DBUG stream-shared/stream_wait_for_data Shutdown signalled: thread shutting down
[2008-02-17 11:10:30] DBUG reencode/reencode_clear Clearing reencoder
[2008-02-17 11:10:30] DBUG input/input_loop An instance died, removing it
[2008-02-17 11:10:30] DBUG input/input_flush_queue Input queue flush requested
[2008-02-17 11:10:30] INFO input/input_loop All instances removed, shutting down...
[2008-02-17 11:10:31] INFO ices-core/main Shutdown complete |
Thanks for any help  |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Feb 17, 2008 6:41 pm Post subject: |
|
|
Unusual, maybe it's an issue between the player and the sound driver. What device are those players using? default, hw:0,0 /dev/dsp, esd, pulseaudio etc
karl. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group subRebel style by ktauber
|