Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

icecast + mountpoints

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Source Clients
View previous topic :: View next topic  
Author Message
parapara
Guest





PostPosted: Tue Feb 28, 2006 1:39 pm    Post subject: icecast + mountpoints Reply with quote

I set icecast server right with muse (not with ices) and I have problems. Look at this:

Quote:

eleanor# muse -C /home/icecast/ice/playlist.pls -o -e mp3 -b 128 -q 9.0 -c 2 --server xxxx.server.org -m music.mp3 -p xxxxx
[*] MuSE version 0.9 [ http://muse.dyne.org ]
. by Denis Rojo aka jaromil http://rastasoft.org
. --
. CLI: queue /home/icecast/ice/playlist.pls on channel 0
[*] CLI: created channel 0
[W] is not a readable file
[*] Lame MP3 encoder version 3.96.1 initialized
[*] CLI: created Mp3 encoder
. CLI: bitrate set to 128Kbit/s
. CLI: quality set to 9.0
. CLI: encoding 2 channel(s)
[*] CLI: created streamer to xxxx.server.org 8000
. CLI: stream mountpoint music.mp3
. CLI: stream password set
[W] no soundcard found
. line-in and speaker out deactivated
[*] using commandline interface (non interactive)
[*] Lame MP3 encoder SET Q9 128Kbit/s 44100Hz stereo
[*] Contacting icecast2 server xxxx.server.org on port 8000
[*] started streaming on http://xxxx.server.org:8000/music.mp3
[W] Channel::play() : no song loaded
[*] loaded /home/icecast/ice/muza/Heath Ledger - I Love You Baby - 10 Things I Hate About You Soundtrack.mp3
[*] Mp3 22050Hz stereo file 64Kb/s
[W] Lame MP3 encoder encoder is stuck, pipe is full
[W] Lame MP3 encoder encoder is stuck, pipe is full
[W] Lame MP3 encoder encoder is stuck, pipe is full
[W] Lame MP3 encoder encoder is stuck, pipe is full


So what's wrong?
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Feb 28, 2006 3:52 pm    Post subject: Reply with quote

no idea, try talking to the muse developers after all they wrote it

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
parapara
Guest





PostPosted: Tue Feb 28, 2006 4:27 pm    Post subject: Reply with quote

Can I use different program instead of muse?

I can't use ices because it only streams .ogg and I want to stream .mp3?
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Feb 28, 2006 5:01 pm    Post subject: Reply with quote

ices 0.4 should suffice for you,

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
parapara
Guest





PostPosted: Tue Feb 28, 2006 11:20 pm    Post subject: Reply with quote

Hello, there is something weird going on. Look at this:

Quote:
eleanorunicorne# ices
IceS 2.0.1
(c) Copyright 2001-2004 The IceS Development Team <team@icecast.org>
Michael Smith <msmith@icecast.org>
Karl Heyes <karl@xiph.org>
and others

Usage: "ices config.xml"
eleanorunicorne# ices /home/icecast/ice/ices-playlist.xml
eleanorunicorne# killall ices
No matching processes were found
eleanorunicorne#


I started ices right, but a second later there is no ices proccess to kill. So the ices didn't even get started at the first place. WHat's the problem?
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Mar 01, 2006 2:42 am    Post subject: Reply with quote

The usual approach is to look at the log file you have specified in the xml file.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Guest






PostPosted: Wed Mar 01, 2006 9:41 am    Post subject: Reply with quote

Here:
Quote:
eleanorunicorne# cat /home/icecast/ice/ices-playlist.xml
<?xml version="1.0"?>
<ices>
<!-- run in background -->
<background>1</background>
<!-- where logs, etc go. -->
<logpath>/home/icecast/ice/log</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>Example stream name</name>
<genre>Example genre</genre>
<description>A short description of your stream</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">/home/icecast/ice/playlist.txt</param>
<!-- random play -->
<param name="random">0</param>
<!-- if the playlist get updated that start at the beginning -->
<param name="restart-after-reread">0</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>exxxx.org</hostname>
<port>8000</port>
<password>passwd</password>
<mount>/music.mp3</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>


My home directory for ices server is /home/icecast/ice/.

So, do you notice something weird?
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Mar 01, 2006 12:41 pm    Post subject: Reply with quote

nothing stands out in the config file, although for some reason you have a <mount>/music.mp3</mount> which tells me either it's a typo or that you haven't read any information about ices 2. Check the log.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Guest






PostPosted: Wed Mar 01, 2006 1:15 pm    Post subject: Reply with quote

I changed ogg into mp3 because you said I can stream mp3's with ices?
So what seem to be the problem?


Now I've changed into music.ogg and I also so this:

Code:
find /home/icecast/ice/muza -iname "*.mp3" > /home/icecast/ice/playlist.txt

Ices config file has this in it:
Quote:
<param name="file">/home/icecast/ice/playlist.txt</param>
<mount>/music.ogg</mount>


And my playlist.txt:
Quote:
eleanorunicorne# cat playlist.txt
/home/icecast/ice/muza/Heath Ledger - I Love You Baby - 10 Things I Hate About You Soundtrack.mp3
/home/icecast/ice/muza/Indigo Girls & Sarah McLachlan & Jewel & Meredith Brooks - Big Yellow Taxi (Lilith Fair live Joni Mitchell cover).mp3
/home/icecast/ice/muza/gloria gaynor - i'ts raining man.mp3
/home/icecast/ice/muza/Gloria Gaynor - I Will Survive.mp3
/home/icecast/ice/muza/Green Day - Good Riddance [Time Of Your Life].mp3
eleanorunicorne#



So now there is a mountpoint listed in mountpoints on the server, but I still get an error which says: 404 the file could not be found!


I don't understand that part, how in config file could be .ogg and then I'm able to play .mp3 files?

So can you help me?
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Mar 01, 2006 2:13 pm    Post subject: Reply with quote

When I said
Quote:
ices 0.4 should suffice for you

I meant ices 0.4, not ices 2.0.1. Check http://www.icecast.org/ices.php

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Guest






PostPosted: Wed Mar 01, 2006 11:41 pm    Post subject: Reply with quote

Hi, I did that and it worked -- no error but still doesn't work.

This is my configuration file for ices:
Quote:
<?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/icecast/ice/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>1</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>xxxxx.org</Hostname>
<!-- Port of the same -->
<Port>8000</Port>
<!-- Encoder password on the icecast server -->
<Password>passwd</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>/music</Mountpoint>
<!-- The name of the dumpfile on the server for your stream. DO NOT set
this unless you know what you're doing.
<Dumpfile>music.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>


Must I set this:
Quote:
<Mountpoint>/music</Mountpoint>

or this:
Quote:
<Mountpoint>/music.mp3</Mountpoint>


because I have a problem. When I click to play sound from server my xmms program opens and says it is connected succesfully and that it it waiting for reply. But I waited for about 2 hours and there is nothing - no sound, so something is wrong if it is waiting for reply that long!

So , what to do?
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Mar 02, 2006 2:29 am    Post subject: Reply with quote

I would enable verbose and see what messages I get, maybe enable reencode if that is what I want to do.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Guest






PostPosted: Thu Mar 02, 2006 8:41 am    Post subject: Reply with quote

It is working now, actually it was working before - the problem is in my xmms program. In windows it is working fine.

So I'll have to do sth with my xmms program in order this to work!
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Mar 02, 2006 11:42 am    Post subject: Reply with quote

You mean you don't have the mp3 plugin for xmms which the distro cannot ship because of the patent ?

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Guest






PostPosted: Thu Mar 23, 2006 7:54 pm    Post subject: Reply with quote

karlH wrote:
nothing stands out in the config file, although for some reason you have a <mount>/music.mp3</mount> which tells me either it's a typo or that you haven't read any information about ices 2. Check the log.

karl.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Source Clients All times are GMT
Page 1 of 1

 
Jump to:  
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