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 

Stream stops, when new song begins
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Listener Clients
View previous topic :: View next topic  
Author Message
chricken



Joined: 02 Nov 2007
Posts: 6

PostPosted: Fri Nov 02, 2007 5:43 am    Post subject: Stream stops, when new song begins Reply with quote

Hello,
I am new in Icecast2 - installed it yesterday.
Well it works but I have a strange problem listening to my OGG-stream.
I have the server installed locally on a Ubuntu Linux 7.10 and want to listen to it locally for now.
But when I connect to it with Rythmbox the connection breaks, when a new song begins. In Totem the same.
XMMS seems to work, even when the new song begins.
But i'd like to listen to it in Rythmbox - any idea, what I can try?

Thanks and best regards
Chricken
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Nov 02, 2007 5:47 pm    Post subject: Reply with quote

some players have been know to have problems when new headers are sent, this could be because they are buggy or it could be because the second track has different settings and the player cannot handle the change. eg k44.1khz to 22khz.

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



Joined: 29 Nov 2007
Posts: 8
Location: Charlotte, NC

PostPosted: Thu Nov 29, 2007 1:43 pm    Post subject: Reply with quote

I also have this problem.

I read and followed this awesome tutorial:

http://www.howtoforge.com/linux_webradio_with_icecast2_ices2_p2

And everything works great. One small problem. When listening, a song plays, and when it ends, the stream goes silent. I'm still connected, but no music. I have to disconnect and reconnect (stop/play) in order to get the music back.

In the ices2 log, I get this:

Code:
[2007-11-28  16:22:48] INFO playlist-builtin/playlist_read Currently playing "/home/david/Desktop/music/Soundtracks/Beverly_Hills_Cop/03. Junior - Do_You_Really__Want_My_Love__.ogg"
[2007-11-28  16:22:48] DBUG encode/encode_clear Clearing encoder engine
[2007-11-28  16:22:48] DBUG reencode/reencode_page Reinitialising reencoder for new logical stream
[2007-11-28  16:22:48] INFO encode/encode_initialise Encoder initialising in VBR mode: 2 channels, 44100 Hz, nominal 64000
[2007-11-28  16:26:32] INFO playlist-builtin/playlist_read Currently playing "/home/david/Desktop/music/Pop/Dance_Naked/05. John_Mellencamp - L.U.V..ogg"
[2007-11-28  16:26:32] DBUG encode/encode_clear Clearing encoder engine
[2007-11-28  16:26:32] DBUG reencode/reencode_page Reinitialising reencoder for new logical stream
[2007-11-28  16:26:32] INFO encode/encode_initialise Encoder initialising in VBR mode: 2 channels, 44100 Hz, nominal 64000
[2007-11-28  16:29:33] INFO playlist-builtin/playlist_read Currently playing "/home/david/Desktop/music/Soundtracks/Beverly_Hills_Cop_III/10. The_Supremes - Come_See_About_Me.ogg"
[2007-11-28  16:29:33] DBUG encode/encode_clear Clearing encoder engine
[2007-11-28  16:29:33] DBUG reencode/reencode_page Reinitialising reencoder for new logical stream
[2007-11-28  16:29:33] INFO encode/encode_initialise Encoder initialising in VBR mode: 2 channels, 44100 Hz, nominal 64000


icecast2 and ices2 are running on a Packard Bell Pentium III 350 with 320 MB of RAM. OS is Ubuntu 8.04 Hardy Heron (development version)

I was quite pleased with how easy it was so set this up which makes this small problem somewhat frustrating.

Any help will be greatly appreciated. Eternally grateful, firstborn children, all that...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Nov 29, 2007 3:07 pm    Post subject: Reply with quote

For an ogg stream you don't have a .ogg extension so be aware of some players that will use an mp3 codec for decoding the stream.

using ogg123 here on your stream seems to work over track changes but there seems to be some odd settings in the stream

Bitrate hints: upper=4294967295 nominal=64000 lower=4294967295 window=0

Check whether you have managed mode set in the encoder settings

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



Joined: 29 Nov 2007
Posts: 8
Location: Charlotte, NC

PostPosted: Thu Nov 29, 2007 3:17 pm    Post subject: Reply with quote

>For an ogg stream you don't have a .ogg extension

Yes I was concerned about this but I can't figure out how to change it.

Likewise with the encoder settings.. where do i change to managed mode?
Is there a tutorial/documentation somewhere that I should be reading?

Here is my configuration xml:

Code:

david@warthog:/etc/ices2$ cat ices-playlist.xml
<?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>Radio Lancer | The BONE</name>
            <genre>Various Variety</genre>
            <description>The bomber station that thinks it's a fighter station</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/playlist.txt</param>
            <!-- random play -->
            <param name="random">1</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>localhost</hostname>
            <port>8000</port>
            <password>*********</password>
            <mount>/listen</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>
[/code]
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Nov 29, 2007 3:44 pm    Post subject: Reply with quote

Thinking about it more, those odd values could be down to my system in which case you may not be in managed mode. As for the mountpoint name, just change the line in your ices xml

<mount>/listen</mount>

to refer to say /listen.ogg. icecast and ices don't really care about the name, it's just that some player do. As for the stream stopping effect, it's obviously not the icecast or ices as they seem to continue without issue so it's probably down to the player you were using, which is?

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



Joined: 29 Nov 2007
Posts: 8
Location: Charlotte, NC

PostPosted: Thu Nov 29, 2007 7:56 pm    Post subject: Reply with quote

Thanks for helping me.

I've tried Rhythmbox, "Movie Player" in Ubuntu, and Winamp. I get the same behavior from all of them. I did try ogg123, and that seems to work fine.

I suppose I should reveal my "real problem". I have two boxes at home, Warthog and Lancer. Warthog is the piece-of-crap and Lancer is the "good" machine. Warthog runs icecast2. My normal setup is to run SAM from a virtual machine on Lancer and encode to icecast2 on Warthog. SAM uses a crapload of CPU, so when I want to use Lancer for other things, I want to encode and serve on Warthog.

I would also prefer to stream in the same format all the time.

SAM can encode in ogg format, and when I do that, Rhythmbox, Movie Player, and Winamp exhibit the same behavior of disconnecting after each song. Maybe it's the nature of the streaming ogg format?
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Nov 29, 2007 8:56 pm    Post subject: Reply with quote

I'm surprised winamp played anything at all, that usually requires the extension before playing ogg content. I can't try Rhythmbox, xmms or audacious as you seem to be running mp3 currently. There's nothing in ogg to prevent streaming like you want and I know audacious and winamp are fine with new headers (ie song changes), haven't actually tried Rhythmbox on a ogg vorbis stream.

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



Joined: 29 Nov 2007
Posts: 8
Location: Charlotte, NC

PostPosted: Thu Nov 29, 2007 9:27 pm    Post subject: Reply with quote

Heh... sorry it's back on ices2/ogg now. Probably stay that way for a while.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Anonymous
Guest





PostPosted: Sat Feb 09, 2008 7:05 pm    Post subject: Reply with quote

I was having similar problems when using iTunes, Quicktime and Real Player on my Mac. I'm also running a Windows XP vm so I figured I'd try media player. This too failed so I went to WinAmp and everything is going fine now. I'll reply if I find anything on support for the other players.
Back to top
chricken



Joined: 02 Nov 2007
Posts: 6

PostPosted: Sat Apr 26, 2008 10:22 am    Post subject: Reply with quote

Ok, this seems to be the state so far;
untill now I've been using XMMS and everything worked fine. But in Ubuntu 8.04 there is no XMMS anymore, only XMMS2, which I haven't tested yet.
Well, so I have to use any other player, which all (Rhythmbox, Banshee, Totem, Windows MediaPlayer, ITunes) stop after each song.
Only XMMS1, VLC and Winamp (XP) work fine.

This brings us to the question: Where is the difference? What do the other players need to work?

I can't get any useful errormessage.
As source I am using the MPD, which I love Wink

This is my icecast2.xml, maybe somebody can find something.:
Code:


So, I would expect, that the data is always the same ...
<icecast>
    <limits>
        <clients>30</clients>
        <sources>3</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>0</burst-on-connect>
   <burst-size>65535</burst-size>
    </limits>

    <authentication>
   <source-password>***</source-password>
        <relay-password>***</relay-password>
        <admin-user>admin</admin-user>
        <admin-password>***</admin-password>
    </authentication>
    <hostname>v1949.ncsrv.de</hostname>
    <listen-socket>
        <port>8000</port>
    </listen-socket>
    <fileserve>1</fileserve>
    <paths>
        <basedir>/usr/share/icecast2</basedir>
        <logdir>/var/log/icecast2</logdir>
        <webroot>/usr/share/icecast2/web</webroot>
        <adminroot>/usr/share/icecast2/admin</adminroot>
        <alias source="/" dest="/status.xsl"/>
    </paths>

    <logging>
        <accesslog>access.log</accesslog>
        <errorlog>error.log</errorlog>
         <loglevel>4</loglevel>
         <logsize>3000</logsize>
    </logging>

    <security>
        <chroot>0</chroot>
    </security>
</icecast>


PS: When the problem is, that the songs have different settings, then there must be a possibility, to "re-render" the files with a defined bitrate/quality.
On the other hand, my MPD is set to:
Code:

audio_output {
        type                    "shout"
        name                    "undaexmachina"
        host                    "localhost"
        port                    "8000"
        mount                   "/stream.ogg"
        password                "***"
        quality                 "8.0"
        format                  "44100:16:1"
        user                    "source"                # optional
        description             "Unda Ex Machina" # optional
        genre                   "EBM, Powernoize, Experimental"                  # optional
        public                  "no"                    # optional
}
Back to top
View user's profile Send private message
chricken



Joined: 02 Nov 2007
Posts: 6

PostPosted: Wed May 21, 2008 3:06 pm    Post subject: Reply with quote

push to top
Back to top
View user's profile Send private message
m-dizzle



Joined: 09 Aug 2007
Posts: 18

PostPosted: Sun Jul 13, 2008 5:47 pm    Post subject: adding to this.... Reply with quote

I use Icecast too with SAM as the ogg encoder.

Winamp 5 plays stream fine with no quarrels...

Windows media player with ogg codecs installed goes silent on track change.

any more light on this issue...?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
davidshere



Joined: 29 Nov 2007
Posts: 8
Location: Charlotte, NC

PostPosted: Sun Jul 13, 2008 6:00 pm    Post subject: Re: adding to this.... Reply with quote

m-dizzle wrote:
I use Icecast too with SAM as the ogg encoder.
Windows media player with ogg codecs installed goes silent on track change.
any more light on this issue...?


Sorry... I never did find an answer to this one. I started using ogg123 to listen to the stream when I was at work instead of Rhythmbox. (What's "Windows Media Player?" Laughing )

I don't stream music to work anymore. I'm using subversion to sync up my home MP3 collection with my work one. Works very well. I also invested in a good USB thumb drive.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
vistasux



Joined: 03 Aug 2008
Posts: 1

PostPosted: Sun Aug 03, 2008 5:11 am    Post subject: Reply with quote

I have many listeners complaining about the disconnection problem at the transition between 2 tracks on my radio stream (ogg vorbis, 64kbps via Icecast)

Most of them are using VLC player...

So, anyone know a player on MAC which can read the stream without disconnection between the tracks ?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Listener Clients All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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