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 and metadata for Windows Media Player

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



Joined: 16 Feb 2010
Posts: 4

PostPosted: Tue Feb 16, 2010 11:17 pm    Post subject: Icecast and metadata for Windows Media Player Reply with quote

If I'm interpreting what I'm reading and seeing correctly, it looks like Icecast returns a standard HTTP "200 OK" to a GET query, whereas Shoutcast returns an "ICY 200 OK", and it appears this may be causing Windows Media Player to not add an "ICY-MetaData:1" to its requests, and thus Icecast is not returning metadata in the stream. Does this sound correct?

If so, can anything be done about it? Does Icecast have an option to return the perhaps less "proper" but more common "ICY 200 OK" reply? I've noticed some players are fine with Icecast's HTTP 200 OK return, and they request and parse metadata just fine, but it'd be nice to get Windows Media Player to where song metadata could also be displayed from an Icecast server.

Thanks,
Galan
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Feb 16, 2010 11:59 pm    Post subject: Reply with quote

You are incorrect. the icy-metadata request header is sent before any response from icecast. afaik wmp does not request metadata at all but I don't use it so I cannot say for sure.

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



Joined: 16 Feb 2010
Posts: 4

PostPosted: Wed Feb 17, 2010 4:18 am    Post subject: Reply with quote

Ok. Flipping the question around, then ... any idea if Icecast *can* be configured to push metadata that WMP can recognize? I know WMP was displaying it from my stream back when I was using Shoutcast, but it stopped once I switched to Icecast. I just confirmed again tonight that WMP does show metadata for some streams. (But I watched the interaction between it and the server and never saw an "ICY-MetaData:1" go by, only the "StreamTitle".)

Thanks,
Galan
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 Feb 17, 2010 4:35 am    Post subject: Reply with quote

Obviously icecast cannot just push the metadata as the metadata inserts break the codec specification, so the player has to be aware of them. If wmp is requesting metadata with the header you mentioned then icecast will provide what it knows about (the status page will show that). If that data has not been provided to icecast then it would be empty and wmp would not receive those updates.

Your last statement seems at odds with what you are asking though, StreamTitle is the text within the metadata insert, icy-metadata is a request header (shortly after GET ....) and icy-metaint: is in the response headers. Only after the response header is provided will the metadata inserts occur.

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



Joined: 16 Feb 2010
Posts: 4

PostPosted: Wed Feb 17, 2010 4:13 pm    Post subject: Reply with quote

Karl,

Thanks. Yes, though I'm new to Shoutcast and Icecast, I've been deeply involved in streaming for a long time now, and I agree with your statements, and it's odd to me, too.

I forgot to search for an "icy-metaint" in the data, so I guess I'll do some more captures today and see if they're there. I agree, one would expect it to be there by all rights, but I was wondering if maybe WMP was smart enough to do pattern searching on the data, looking for a StreamTitle in the data "just in case"?

Though I'm a developer, I'm not needing to develop anything in this case, just get metadata to show up in WMP from Icecast. All my searches about this subject have turned up empty, to my surprise, which is why I decided to turn to this forum. Your willingness to help is appreciated. I'll check back in again with any additional findings I get. Smile

Thanks,
Galan
Back to top
View user's profile Send private message
jcr
Modérateur français
Modérateur français


Joined: 14 Apr 2006
Posts: 544
Location: France, Auvergne

PostPosted: Wed Feb 17, 2010 6:49 pm    Post subject: Reply with quote

Main problem with Windows Media Player is: "This player is the one which does not look at standard metadata"". It looks for what it expects, and this is mostly Windows Media Server information..

If other players such as winamp, vlc, xine, and many more, display correct information and WMP does not, right conclusion should be "WMP is broken" and not the rest of business is broken..

Il often have here in France such complains... But when I tell them to try with alternate players and everything works as intended, with 3 or more alternatives, the real thing is "blame wmp".
_________________
Epsilon Friends Radio Icecast Radio on CentovaCast admin panel. Icecast hosting
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Galan



Joined: 16 Feb 2010
Posts: 4

PostPosted: Wed Feb 17, 2010 7:32 pm    Post subject: Reply with quote

jcr,

>> ... right conclusion should be "WMP is broken" and not the rest of business is broken..

And I would agree with that - the only thing is, in this case, WMP did display metadata from Shoutcast, it's Icecast it's not displaying data from. So it's almost more like I'm saying "blame Icecast". Wink

But yes, I get your point, and it does bother me that I don't see WMP giving an ICY-MetaData field, which from what I'm reading is clearly wrong. That's what led me to wonder if it was waiting to see an "ICY 200 OK" come back before it did. But the only thing I truly have to "solve" right now is "how to get Icecast to behave like Shoutcast".

Thanks,
Galan
Back to top
View user's profile Send private message
jcr
Modérateur français
Modérateur français


Joined: 14 Apr 2006
Posts: 544
Location: France, Auvergne

PostPosted: Wed Feb 17, 2010 7:37 pm    Post subject: Reply with quote

What makes me wonder WMP is broke is "ICY 200 OK" never was a standardized reply..

What shoutcast makes and wants does not make this a "standatd"..
_________________
Epsilon Friends Radio Icecast Radio on CentovaCast admin panel. Icecast hosting
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Feb 17, 2010 8:07 pm    Post subject: Reply with quote

Why not determine first if the metadata is requested and supplied to the player. The ICY message could be worked around but there is no point in changing from a standard (http) to something non-standard if what you are wanting is not being asked for.

For all we know the problem may actually be the metadata interval size.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jcr
Modérateur français
Modérateur français


Joined: 14 Apr 2006
Posts: 544
Location: France, Auvergne

PostPosted: Wed Feb 17, 2010 8:24 pm    Post subject: Reply with quote

Hi Karl,

From what I couls trace WMP problem depends on very random factors:
1) version and patch level
2) windows version

This clearly sounds like a wmp bug.. I had to explain this ti many of my customers and listeners o various streams here Smile
_________________
Epsilon Friends Radio Icecast Radio on CentovaCast admin panel. Icecast hosting
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
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