| View previous topic :: View next topic |
| Author |
Message |
sammoth
Joined: 17 Jun 2009 Posts: 2
|
Posted: Wed Jun 17, 2009 4:00 am Post subject: [Solved] Ices2 only plays 1 song |
|
|
Morning all.
I'm using ices2 to stream a simple test playlist of 4 ogg files through icecast on a debain lenny server.
It works fine for the first song (even choosing a random song asit should) but then the stream fully stops.
It is similar symptoms to this stream stop every time song change post apart from the fact that my stream ends.
I have checked the log which says that the subsequent files are skipped as the serial number is the same as the previous song. Is this a problem with how I'm encoding my oggs?
Here's my config.xml:
| Code: |
<?xml version="1.0"?>
<ices>
<!-- run in background -->
<background>1</background>
<!-- where logs, etc go. -->
<logpath>/var/log/ices</logpath>
<logfile>ices.log</logfile>
<!-- 1=error,2=warn,3=info,4=debug -->
<loglevel>4</loglevel>
<!-- set this to 1 to log to the console instead of to the file above -->
<consolelog>0</consolelog>
<!-- optional filename to write process id to -->
<!-- <pidfile>/home/ices/ices.pid</pidfile> -->
<stream>
<!-- metadata used for stream listing (not currently used) -->
<metadata>
<name>Koboldson and MJ2P</name>
<genre>Electronica</genre>
<description>A test stream featuring Koboldson and MJ2P</description>
</metadata>
<!-- input module
The module used here is the playlist module - it has
'submodules' for different types of playlist. There are
two currently implemented, 'basic', which is a simple
file-based playlist, and 'script' which invokes a command
to returns a filename to start playing. -->
<input>
<module>playlist</module>
<param name="type">basic</param>
<param name="file">/etc/ices2/playlists/playlist1.txt</param>
<!-- random play -->
<param name="random">1</param>
<!-- if the playlist get updated that start at the beginning -->
<param name="restart-after-reread">1</param>
<!-- if set to 1 , plays once through, then exits. -->
<param name="once">0</param>
</input>
<!-- Stream instance
You may have one or more instances here. This allows you to
send the same input data to one or more servers (or to different
mountpoints on the same server). Each of them can have different
parameters. This is primarily useful for a) relaying to multiple
independent servers, and b) encoding/reencoding to multiple
bitrates.
If one instance fails (for example, the associated server goes
down, etc), the others will continue to function correctly.
This example defines two instances as two mountpoints on the
same server. -->
<instance>
<!-- Server details:
You define hostname and port for the server here, along with
the source password and mountpoint. -->
<hostname>ice.mj2p.co.uk</hostname>
<port>8000</port>
<password></password>
<mount>/test.ogg</mount>
<!-- Reconnect parameters:
When something goes wrong (e.g. the server crashes, or the
network drops) and ices disconnects from the server, these
control how often it tries to reconnect, and how many times
it tries to reconnect. Delay is in seconds.
If you set reconnectattempts to -1, it will continue
indefinately. Suggest setting reconnectdelay to a large value
if you do this.
-->
<reconnectdelay>2</reconnectdelay>
<reconnectattempts>5</reconnectattempts>
<!-- maxqueuelength:
This describes how long the internal data queues may be. This
basically lets you control how much data gets buffered before
ices decides it can't send to the server fast enough, and
either shuts down or flushes the queue (dropping the data)
and continues.
For advanced users only.
-->
<maxqueuelength>80</maxqueuelength>
<!-- Live encoding/reencoding:
Currrently, the parameters given here for encoding MUST
match the input data for channels and sample rate. That
restriction will be relaxed in the future.
-->
<encode>
<nominal-bitrate>64000</nominal-bitrate> <!-- bps. e.g. 64000 for 64 kbps -->
<samplerate>44100</samplerate>
<channels>2</channels>
</encode>
</instance>
</stream>
</ices>
|
And the latest bit of logfile:
| Code: |
[2009-06-17 04:33:03] INFO ices-core/main IceS 2.0.1 started...
[2009-06-17 04:33:03] INFO signals/signal_usr1_handler Metadata update requested
[2009-06-17 04:33:03] INFO playlist-basic/playlist_basic_get_next_filename Loading playlist from file "/etc/ices2/playlists/playlist1.txt"
[2009-06-17 04:33:03] DBUG playlist-basic/shuffle Playlist has been shuffled
[2009-06-17 04:33:03] INFO playlist-builtin/playlist_read Currently playing "/home/music/oggs/nontitled.ogg"
[2009-06-17 04:33:04] INFO stream/ices_instance_stream Connected to server: ice.mj2p.co.uk:8000/test.ogg
[2009-06-17 04:33:04] DBUG reencode/reencode_page Reinitialising reencoder for new logical stream
[2009-06-17 04:33:04] INFO encode/encode_initialise Encoder initialising in VBR mode: 2 channels, 44100 Hz, nominal 64000
[2009-06-17 04:35:30] INFO playlist-builtin/playlist_read Currently playing "/home/music/oggs/stjohnsambience.ogg"
[2009-06-17 04:35:30] WARN playlist-builtin/playlist_read Skipping "/home/music/oggs/stjohnsambience.ogg" as the serial number is the same as previous
[2009-06-17 04:35:30] INFO playlist-builtin/playlist_read Currently playing "/home/music/oggs/bbc.ogg"
[2009-06-17 04:35:30] WARN playlist-builtin/playlist_read Skipping "/home/music/oggs/bbc.ogg" as the serial number is the same as previous
[2009-06-17 04:35:30] INFO playlist-builtin/playlist_read Currently playing "/home/music/oggs/birthmark2.ogg"
[2009-06-17 04:35:30] WARN playlist-builtin/playlist_read Skipping "/home/music/oggs/birthmark2.ogg" as the serial number is the same as previous
[2009-06-17 04:35:30] DBUG playlist-basic/shuffle Playlist has been shuffled
[2009-06-17 04:35:30] INFO playlist-builtin/playlist_read Currently playing "/home/music/oggs/bbc.ogg"
[2009-06-17 04:35:30] WARN playlist-builtin/playlist_read Skipping "/home/music/oggs/bbc.ogg" as the serial number is the same as previous
[2009-06-17 04:35:30] INFO playlist-builtin/playlist_read Currently playing "/home/music/oggs/birthmark2.ogg"
[2009-06-17 04:35:30] WARN playlist-builtin/playlist_read Skipping "/home/music/oggs/birthmark2.ogg" as the serial number is the same as previous
[2009-06-17 04:35:30] INFO playlist-builtin/playlist_read Currently playing "/home/music/oggs/stjohnsambience.ogg"
[2009-06-17 04:35:30] WARN playlist-builtin/playlist_read Skipping "/home/music/oggs/stjohnsambience.ogg" as the serial number is the same as previous
[2009-06-17 04:35:30] WARN playlist-builtin/playlist_read Too many consecutive errors - exiting
[2009-06-17 04:35:30] DBUG stream-shared/stream_wait_for_data Shutdown signalled: thread shutting down
[2009-06-17 04:35:30] DBUG reencode/reencode_clear Clearing reencoder
[2009-06-17 04:35:30] DBUG input/input_loop An instance died, removing it
[2009-06-17 04:35:30] DBUG input/input_flush_queue Input queue flush requested
[2009-06-17 04:35:30] INFO input/input_loop All instances removed, shutting down...
[2009-06-17 04:35:31] INFO ices-core/main Shutdown complete
|
any guidance will be greatly appreciated
edit:
Google found me this Ices2 - fails -dentical serial numbers in playlist which seems to have instructions for solving the problem.
However I used apt to install ices2 and cannot find the ices/src/im_playlist.c file to edit. Where be?
Last edited by sammoth on Tue Jul 07, 2009 5:41 pm; edited 2 times in total |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Jun 17, 2009 1:26 pm Post subject: |
|
|
we obviously cannot resolve any prebuilt packages made by other people, but the changes to the specified source file will work around the duplicate serial number. It was only really required for an earlier version of icecast which you won't be using now. The change is minor but just get the tarball, remove those couple of lines and rebuild and you should be fine.
karl. |
|
| Back to top |
|
 |
sammoth
Joined: 17 Jun 2009 Posts: 2
|
Posted: Wed Jun 17, 2009 1:31 pm Post subject: [Solved] Ices2 only plays 1 song |
|
|
Hello again.
Just wanted to say that I have solved the problem.
As I suspected it was a problem with how the .oggs were encoded.
I was using a free mp3 to .ogg converter on my windows PC and then uploading to the server.
I have now switched to using mp32ogg on my server and the streams are working just fine
edit:
What are the chances of that?
Thanks for your reply Karl, as I say the streams are working now without editting the file but I will know what to do if the problem re-occurs
Thanks again |
|
| 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
|