On Monday 17 February 2003 21:18, Deva Seetharam wrote:> Hello All, > > while icecast is streaming a mp3 source, how is the song title info > maintained? > > that is, does the source send the song title? does icecast log the songs > that have been played? >This (for almost-compatibility with shoutcast - true compatibility is difficult or impossible, since the shoutcast "HTTP" implementation looks very little like HTTP) uses a GET request to: http://server:port/admin/metadata?mode=updinfo&mount=/yourmountpoint&song=songtitle Obviously, proper url-escaping of mountpoint (possibly - but most mountpoints are ok), and songtitle (almost always) is neccesary. This metadata is sent on to the client using the nasty shoutcast metadata protocol (it's horrid, but it's the only one widely supported by clients), so things like what character set the title it in seem to be completely undefined. icecast will send it on regardless, so if your source sends it in a character set the client is expecting, it'll work. This gets logged at debug level - you can change that if you actually need it logged specifically - see handle_metadata_request in src/connection.c. Mike <p><p>--- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
i see that icecast retains song titles only when running in full debug mode (with DEBUG_FULL defined in icecast.h). is this observation correct? how can i find out when a new song is being streamed by a source? can i determine this accurately by examining song title (souce.info.streamtitle)? or, is there a more reliable method? <p>pls. let me know. thanks, deva <p>On Mon, 17 Feb 2003, Michael Smith wrote:> On Monday 17 February 2003 21:18, Deva Seetharam wrote: > > Hello All, > > > > while icecast is streaming a mp3 source, how is the song title info > > maintained? > > > > that is, does the source send the song title? does icecast log the songs > > that have been played? > > > > This (for almost-compatibility with shoutcast - true compatibility is > difficult or impossible, since the shoutcast "HTTP" implementation looks very > little like HTTP) uses a GET request to: > > http://server:port/admin/metadata?mode=updinfo&mount=/yourmountpoint&song=songtitle > > Obviously, proper url-escaping of mountpoint (possibly - but most mountpoints > are ok), and songtitle (almost always) is neccesary. > > This metadata is sent on to the client using the nasty shoutcast metadata > protocol (it's horrid, but it's the only one widely supported by clients), so > things like what character set the title it in seem to be completely > undefined. icecast will send it on regardless, so if your source sends it in > a character set the client is expecting, it'll work. > > This gets logged at debug level - you can change that if you actually need it > logged specifically - see handle_metadata_request in src/connection.c. > > Mike > > > > --- >8 ---- > List archives: http://www.xiph.org/archives/ > icecast project homepage: http://www.icecast.org/ > To unsubscribe from this list, send a message to 'icecast-request@xiph.org' > containing only the word 'unsubscribe' in the body. No subject is needed. > Unsubscribe messages sent to the list will be ignored/filtered. >--- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
On Tuesday 18 February 2003 19:37, Deva Seetharam wrote:> i see that icecast retains song titles only when running in full debug > mode (with DEBUG_FULL defined in icecast.h). is this observation correct?Ah. You must be talking about icecast 1.x. I was talking about icecast2. What I said is not at all accurate for icecast 1.x, you should ignore it.> > how can i find out when a new song is being streamed by a source? > can i determine this accurately by examining song title > (souce.info.streamtitle)? or, is there a more reliable method? >For mp3 streaming, there is generally no way to accurately determine this with either icecast 1.x or icecast 2 (since they both do mp3 metadata using the same technique as shoutcast, which is poorly designed and insufficient for accurate determination of track boundaries). For vorbis streaming, track boundaries are clearly defined, and this information is extracted by icecast2. Mike --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.