| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Mon Mar 10, 2008 9:46 am Post subject: Could not find a valid playlist file-Error |
|
|
Hi guys,
no matter what i do to get the client launched i get the following error :
Logfile opened
Could not find a valid playlist file.
Ices Exiting...
I am using Ubuntu, the ices.conf.dist file - in its playlist section - looks like this :
<?xml version="1.0"?>
<ices:Configuration xmlns:ices="http://www.icecast.org/projects/ices">
<Playlist>
<!-- This is the filename used as a playlist when using the builtin
playlist handler. -->
<File>/home/dbcon/Desktop/ices-0.4/RadioDbcon/naserlist.txt </File>
<!-- Set this to 0 if you don't want to randomize your playlist, and to
1 if you do. -->
<Randomize>1</Randomize>
<!-- One of builtin, perl, or python. -->
<Type>builtin</Type>
<!-- Module name to pass to the playlist handler if using perl or python.
If you use the builtin playlist handler then this is ignored -->
<Module>ices</Module>
<!-- Set this to the number of seconds to crossfade between tracks.
Leave out or set to zero to disable crossfading (the default).
<Crossfade>5</Crossfade>
-->
</Playlist>
Can anyone help ?
regards |
|
| Back to top |
|
 |
kozlov
Joined: 26 Sep 2006 Posts: 41 Location: Poland, Gdansk
|
Posted: Mon Mar 10, 2008 10:05 am Post subject: |
|
|
Did you put specified file (naserlist.txt) in your /home/dbcon/Desktop/ices-0.4/RadioDbcon/ folder? You can change the path in your config. Syntax of specified file should be, AFAIK, one file per line. Example:
| Code: |
/home/elnaser/music/1.mp3
/home/elnaser/music/2.mp3
/home/elnaser/music/3.mp3 |
...and so on. _________________ polska dokumentacja serwera Icecast2 / polish documentation of Icecast2 |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Mon Mar 10, 2008 10:16 am Post subject: Tried it |
|
|
hi,
here is a snapshot of my naserlist.txt file which i generated using a find command :
/media/sda5/GAME1/Sound/scenario/a1a.mp3
/media/sda5/GAME1/Sound/scenario/A1AA.mp3
/media/sda5/GAME1/Sound/scenario/a1ab.mp3
/media/sda5/GAME1/Sound/scenario/a1ac.mp3
/media/sda5/GAME1/Sound/scenario/a1ad.mp3
/media/sda5/GAME1/Sound/scenario/a1ae.mp3
/media/sda5/GAME1/Sound/scenario/a1af.mp3
/media/sda5/GAME1/Sound/scenario/a1ag.mp3
/media/sda5/GAME1/Sound/scenario/a1ah.mp3
....
so i don't see any errors .... |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Mon Mar 10, 2008 10:40 am Post subject: RE |
|
|
| it still does not work .... |
|
| Back to top |
|
 |
kozlov
Joined: 26 Sep 2006 Posts: 41 Location: Poland, Gdansk
|
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Mon Mar 10, 2008 12:16 pm Post subject: RE |
|
|
| i checked the privileges issue up. File allows rw. and by the way : I did all what i did as root |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Mar 10, 2008 3:47 pm Post subject: |
|
|
A common issue with ices 0.4 is when the -c is missed out when the user wants to specify the conf file when it's not in the /etc directory.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Mon Mar 10, 2008 4:14 pm Post subject: RE |
|
|
This is the exact command i wrote and its output :
>>>>>>>>>
root@dbcon-desktop:/# ices -c /usr/local/etc/ices.conf.dist
Logfile opened
Could not find a valid playlist file.
Ices Exiting...
>>>>>>>> |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Mar 10, 2008 5:17 pm Post subject: |
|
|
Is that a space character after .txt in the filename?
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Mon Mar 17, 2008 9:19 am Post subject: |
|
|
hi there!
i have the same error if i start ices this way:
i tried another way and have another problem:
| Code: |
# ices0 -c /etc/ices.xml
Into the land of the dreaded daemons we go... (pid: 63293) |
| Code: |
# ps -ax|grep ice
70164 ?? Ss 0:00.02 ices0 -c /etc/ices.xml
70157 p0 S 0:00.12 icecast -b -c /etc/icecast/icecast.xml |
ices0 process starts in anyway but what does it means?
p.s. sorry for my english if somebody speaks russian it would be easier.  |
|
| Back to top |
|
 |
mlino
Joined: 24 Mar 2008 Posts: 7
|
Posted: Mon Mar 24, 2008 12:33 am Post subject: |
|
|
Hi!
I'm experiencing the same problem. I try to start ices and always I got the following error.
root@ubuntu:/tmp/ices-0.4/conf# ices -c /usr/local/etc/ices-live.xml -v
XML Parser: Document of invalid type, no ices namespace found
Logfile opened
DEBUG: Sending following information to libshout:
DEBUG: Stream: 0
DEBUG: Host: 127.0.0.1:8000 (protocol: http)
DEBUG: Mount: /ices, Password: letmein
DEBUG: Name: Default stream name URL: http://www.icecast.org/
DEBUG: Genre: Default genre Desc: Default description
DEBUG: Bitrate: 128 Public: 1
DEBUG: Dump file: (null)
DEBUG: Initializing playlist handler...
DEBUG: Initializing builting playlist handler...
Could not find a valid playlist file.
Ices Exiting...
I've changed all the settings in /usr/local/etc/ices-live.xml file, but ices seams to ignore that file, since when I use -v option as show above it got parameters that are not in the config file, like mount point, password, etc.
Here is my config file.
<?xml version="1.0"?>
<ices>
<background>0</background> <!-- run in background? (unimplemented) -->
<logpath>/tmp</logpath> <!-- where logs, etc go. -->
<logfile>ices.log</logfile>
<loglevel>4</loglevel> <!-- 1=error,2=warn,3=info,4=debug -->
<stream>
<!-- metadata used for stream listing (not currently used) -->
<metadata>
<name>Example stream name</name>
<genre>Example genre</genre>
<description>A short description of your stream</description>
</metadata>
<!-- input module
This example uses the 'oss' module. It takes input from the
oss audio device (i.e. line-in), and processes it for live
encoding.
-->
<input>
<module>oss</module>
<param name="rate">22050</param> <!-- samplerate -->
<param name="channels">1</param> <!-- number of channels -->
<param name="device">/dev/dsp</param> <!-- audio device -->
<param name="metadata">1</param> <!-- Read metadata from stdin? -->
</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 a single instance doing live encoding at
low bitrate.
-->
<instance>
<!-- Server details:
You define hostname and port for the server here, along with
the source password and mountpoint.
-->
<hostname>localhost</hostname>
<port>8000</port>
<password>source</password>
<mount>/example1.ogg</mount>
<!-- Live encoding/reencoding:
channels and samplerate currently MUST match the channels
and samplerate given in the parameters to the oss input
module above.
-->
<encode>
<bitrate>64000</bitrate>
<samplerate>22050</samplerate>
<channels>1</channels>
</encode>
</instance>
</stream>
</ices>
Any help would be appreciated, since I got the Ices2 working well but I need to stream using mp3 instead ogg.
Thanks,
Marcio |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Mar 24, 2008 2:16 am Post subject: |
|
|
mlino, ices0 cannot be used with an ices2 configuration file.
karl. |
|
| Back to top |
|
 |
mlino
Joined: 24 Mar 2008 Posts: 7
|
Posted: Mon Mar 24, 2008 10:55 am Post subject: |
|
|
Hi Karl,
Where can I get a basic configration for Ices0? I try to use the config file that came in ices package, but I need to stream from /dev/dsp instead using a playlist.
Do you have some exemple of config file for that? Following is the config file that came with ices-0.4 package.
<?xml version="1.0"?>
<ices:Configuration xmlns:ices="http://www.icecast.org/projects/ices">
<Playlist>
<!-- This is the filename used as a playlist when using the builtin
playlist handler. -->
<File>playlist.txt</File>
<!-- Set this to 0 if you don't want to randomize your playlist, and to
1 if you do. -->
<Randomize>1</Randomize>
<!-- One of builtin, perl, or python. -->
<Type>builtin</Type>
<!-- Module name to pass to the playlist handler if using perl or python.
If you use the builtin playlist handler then this is ignored -->
<Module>ices</Module>
<!-- Set this to the number of seconds to crossfade between tracks.
Leave out or set to zero to disable crossfading (the default).
<Crossfade>5</Crossfade>
-->
</Playlist>
<Execution>
<!-- Set this to 1 if you want ices to launch in the background as a
daemon -->
<Background>0</Background>
<!-- Set this to 1 if you want to see more verbose output from ices -->
<Verbose>0</Verbose>
<!-- This directory specifies where ices should put the logfile, cue file
and pid file (if daemonizing). Don't use /tmp if you have l33t h4x0rz
on your server. -->
<BaseDirectory>/tmp</BaseDirectory>
</Execution>
<Stream>
<Server>
<!-- Hostname or ip of the icecast server you want to connect to -->
<Hostname>localhost</Hostname>
<!-- Port of the same -->
<Port>8000</Port>
<!-- Encoder password on the icecast server -->
<Password>letmein</Password>
<!-- Header protocol to use when communicating with the server.
Shoutcast servers need "icy", icecast 1.x needs "xaudiocast", and
icecast 2.x needs "http". -->
<Protocol>http</Protocol>
</Server>
<!-- The name of the mountpoint on the icecast server -->
<Mountpoint>/ices</Mountpoint>
<!-- The name of the dumpfile on the server for your stream. DO NOT set
this unless you know what you're doing.
<Dumpfile>ices.dump</Dumpfile>
-->
<!-- The name of you stream, not the name of the song! -->
<Name>Default stream</Name>
<!-- Genre of your stream, be it rock or pop or whatever -->
<Genre>Default genre</Genre>
<!-- Longer description of your stream -->
<Description>Default description</Description>
<!-- URL to a page describing your stream -->
<URL>http://localhost/</URL>
<!-- 0 if you don't want the icecast server to publish your stream on
the yp server, 1 if you do -->
<Public>0</Public>
<!-- Stream bitrate, used to specify bitrate if reencoding, otherwise
just used for display on YP and on the server. Try to keep it
accurate -->
<Bitrate>128</Bitrate>
<!-- If this is set to 1, and ices is compiled with liblame support,
ices will reencode the stream on the fly to the stream bitrate. -->
<Reencode>0</Reencode>
<!-- Number of channels to reencode to, 1 for mono or 2 for stereo -->
<!-- Sampe rate to reencode to in Hz. Leave out for LAME's best choice
<Samplerate>44100</Samplerate>
-->
<Channels>2</Channels>
</Stream>
</ices:Configuration>
There is any reported bug related to use of "-c" option for ices0? I realy bored with this. I don't know why ices0 get some parameters, like password, server and port, if I don't have any config file in my system.
Thank you very much for your cooperation.
Marcio |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Mon Mar 24, 2008 12:49 pm Post subject: |
|
|
elnaser:
I've had problem getting Ices to access files on another mounted partition. Luckily I was just going to move them over anyway but thought that might be relevant given you are doing the same thing. |
|
| Back to top |
|
 |
mlino
Joined: 24 Mar 2008 Posts: 7
|
Posted: Mon Mar 24, 2008 2:38 pm Post subject: |
|
|
zeroeth,
I have just one hd on my server, and all files are on same partition. Do you know if ices0 looks for a config file in an predefined location?
Best,
Marcio |
|
| Back to top |
|
 |
|