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 

Seems to be working but can't connect to stream

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
Neorth



Joined: 11 Nov 2008
Posts: 4

PostPosted: Wed Nov 12, 2008 12:06 am    Post subject: Seems to be working but can't connect to stream Reply with quote

Hi! This is my first time trying to get a Icecast server going so I guess problem is what I should get Wink

I'm using Icecast2 v2 (win32 GUI version) with foobar/edcastv3 as source. I'm using the OggVorbis encoder and the mountpoint is named /stream.ogg
I have managed to setup the server so that everything seems to be working but when I try to connect to the stream it won't connect.

http://myip:8000/status.xsl is no problem reaching.

Here's what's happening in error.log:

When server is started:
Code:
[2008-11-12  00:19:49] INFO main/main.c Icecast 2.3.2 server started
[2008-11-12  00:19:49] INFO connection/connection.c No SSL capability
[2008-11-12  00:19:49] WARN stats/stats.c seen non-UTF8 data, probably incorrect metadata (server_start, Wed, 12 Nov 2008 00:19:49 Västeuropa, normaltid)
[2008-11-12  00:19:49] INFO stats/stats.c stats thread started
[2008-11-12  00:19:49] INFO fserve/fserve.c file serving thread started
[2008-11-12  00:19:49] INFO yp/yp.c YP update thread started

When source is connected:
Code:
[2008-11-12  00:20:06] INFO connection/connection.c Source logging in at mountpoint "/stream.ogg"
[2008-11-12  00:20:06] WARN stats/stats.c seen non-UTF8 data, probably incorrect metadata (stream_start, Wed, 12 Nov 2008 00:20:06 Västeuropa, normaltid)
[2008-11-12  00:20:06] INFO format-vorbis/format_vorbis.c seen initial vorbis header
[2008-11-12  00:20:06] INFO source/source.c listener count on /stream.ogg now 0
[2008-11-12  00:20:06] INFO format-vorbis/format_vorbis.c seen initial vorbis header

When http://myip:8000/status.xsl is accessed from listening machine:
Code:
[2008-11-12  00:20:43] INFO fserve/fserve.c checking for file /style.css (./web/style.css)
[2008-11-12  00:20:43] INFO fserve/fserve.c checking for file /corner_topleft.jpg (./web/corner_topleft.jpg)
[2008-11-12  00:20:43] INFO fserve/fserve.c checking for file /corner_bottomleft.jpg (./web/corner_bottomleft.jpg)
[2008-11-12  00:20:44] INFO fserve/fserve.c checking for file /icecast.png (./web/icecast.png)
[2008-11-12  00:20:44] INFO fserve/fserve.c checking for file /corner_topright.jpg (./web/corner_topright.jpg)
[2008-11-12  00:20:44] INFO fserve/fserve.c checking for file /corner_bottomright.jpg (./web/corner_bottomright.jpg)
[2008-11-12  00:20:44] INFO fserve/fserve.c checking for file /tunein.png (./web/tunein.png)

When I try to open http://myip:8000/stream.ogg.m3u:
Code:
[2008-11-12  00:21:06] INFO fserve/fserve.c checking for file /stream.ogg.m3u (./web/stream.ogg.m3u)

And when I'm opening the m3u with the player nothing happens.
It seems like that file isn't found on the server.

What am I doing wrong?
Thanks!
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Nov 12, 2008 2:05 am    Post subject: Reply with quote

The request for /stream.ogg.m3u does connect and you should get a playlist returned from that. The message you saw was checking if a playlist exists as a file, if not, icecast will generate an m3u for you. After the browser/player sees the playlist, the player should try to request the stream. The only time I've see that be a problem is when the <hostname> setting is incorrect when a port 80 URL is requested.

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



Joined: 11 Nov 2008
Posts: 4

PostPosted: Wed Nov 12, 2008 9:22 am    Post subject: Reply with quote

Thanks for the answer Karl.
A playlist is generated and the player tries to connect to stream.ogg but that's where it fails.
About the hostname..
I'm sitting behind a router that is setup to forward all connections to port 8000 to the machine running the server (192.168.1.5). I have set the hostname value to localhost, is that correct?
I have also tried using another port (57500) but same thing happens.

The stream.ogg is found when I go to http://myip:8000/stream.ogg and it gives my this information:
Mount Point /stream.ogg
M3UXSPF
Stream Title: This is my server name
Stream Description: This is my server description
Content Type: application/ogg
Bitrate: Quality 4
Current Listeners: 0
Peak Listeners: 0
Stream Genre: Rock
Stream URL: http://www.oddsock.org
Current Song: Shout Out Louds - Oh, Sweetheart

YP is turned off in edcast so I don't know why these stream values are shown but that's probably not causing any problems.

Any other ideas?
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Nov 12, 2008 2:56 pm    Post subject: Reply with quote

without checking the content of the playlist ,no. If the playlist comes back and says an invalid url like http://localhost:80/stream.ogg and you're not on localhost then it won't play.

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



Joined: 11 Nov 2008
Posts: 4

PostPosted: Wed Nov 12, 2008 9:42 pm    Post subject: Reply with quote

Hi again Karl!
The created playlist had the correct info (http://myip:8000/stream.ogg) but..

After ages of tries I finally found the problem! Smile
If I rename the mountpoint to anything else than stream it works! Same thing with all players on the listening side.

Any ideas why naming the mountpoint stream.ogg ain't working?

/Neorth
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Nov 12, 2008 10:55 pm    Post subject: Reply with quote

Maybe the stream content s not Ogg? The content type matches so should be but usually the reason why Ogg typically fails to play is because no ogg extension is given. In either case, the extension would not effect the log files showing a client connecting.

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



Joined: 11 Nov 2008
Posts: 4

PostPosted: Thu Nov 13, 2008 2:38 pm    Post subject: Reply with quote

You should declare me noob of the week. Smile
I took a look in the config file again and spent some extra time at the alias line.. I realized I didn't erad that line bofore. Just the "source" word and thought it was supposed to be stream.ogg. So basicly when I browsed to http://myip:8000/stream.ogg it sent me to "dest" (status.xsl).
Thanks, and sorry for spending your time Karl Rolling Eyes

/Neorth
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 -> Icecast Server 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