hi all.
I want to monitor radiostations current playing track.
How can I do this? Maybe some libraries or kind of?
Any personal expirience?
Thank you for your answers.
P.S. I'm making this to run under Linux.
hi all.
I want to monitor radiostations current playing track.
How can I do this? Maybe some libraries or kind of?
Any personal expirience?
Thank you for your answers.
P.S. I'm making this to run under Linux.
So, you mean you go to BBC - Southern Counties - Homepage and listen to the live show, and you want to know what they are playing? I presume you have a powerful machine to determine the match between what is playing and the MP3's that you have on your machine.
Or do you mean that you want to determine what MP3's the radio-station you are working at is playing? Shouldn't the DJ have a play-list beforehand for copyright/royalty reasons?
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
I'm going to put on the hat of divination. I'm guess the OP is listing to some sort of streaming broadcast over the internet (perhaps as simple as MP3 over HTTP) and just wants to pull tagging out of that.
Although it would be great if he'd enlighten us a bit on what he was doing (OP: *hint hint*) -- I'm not sure when I last changed the batteries in the hat...
long time; /* know C? */
Unprecedented performance: Nothing ever ran this slow before.
Any sufficiently advanced bug is indistinguishable from a feature.
Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
The best way to accelerate an IBM is at 9.8 m/s/s.
recursion (re - cur' - zhun) n. 1. (see recursion)
ok ok, I didn't formulate my question enough, sorry about that.
the whole picture:
I have several internet radiostations I like, they're broadcasting mp3 stream over http, what I want is to get
current playing track. I know that stream has such metadata, but I don't know how to get it
I've recorded several sessions with tcpdump and thats what I found:
player sends this request:
servers response:Code:GET / HTTP/1.1 Host: 196.138.12.33:1433 User-Agent: Audacious/2.0.1 neon/0.28.4 Connection: TE, close TE: trailers Icy-MetaData: 1
and in stream there are such lines:Code:ICY 200 OK icy-notice1:<BR>This stream requires <a href="http://www.winamp.com/">Winamp</a><BR> icy-notice2:SHOUTcast Distributed Network Audio Server/Linux v1.9.8<BR> content-type:audio/mpeg icy-pub:1 icy-metaint:32768 icy-br:128
I thought about simply grabbing a piece of stream (as I found out, metadata goes eachCode:StreamTitle='Epsilon Minus - Bridgeburner';StreamUrl='http://196.138.12.33:1433';
icy-metaint bytes), but this looks pretty ugly imho.
I want to find some library or existing code which gets this data, but atm my searches are failing
So maybe somebody could enlight me on this problem?
Last edited by naquad; 06-23-2009 at 08:13 PM.
I tried connecting to 196.138.12.33:1433, didn't get anything.
Are you sure it's an mp3? The MIME type is correct (though not definitive, I think others go by that). The line you gave doesn't resemble an ID3 tag (which is what is usually associated with mp3s) -- my guess is it is part of this "ICY" protocol, which you might want to research (I know nothing about it.)
If you really want to dig about the mp3 data, then these are good:
The MP3 frame - you won't get tagging data out of a mp3 frame, but it might be good to know where they are.
ID3 format - common format for embedding tagging in mp3s.
long time; /* know C? */
Unprecedented performance: Nothing ever ran this slow before.
Any sufficiently advanced bug is indistinguishable from a feature.
Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
The best way to accelerate an IBM is at 9.8 m/s/s.
recursion (re - cur' - zhun) n. 1. (see recursion)
Hello~
For what it's worth, streaming the station through MPLAYER run from the command line displays titles and artist info on my local community radio station (at least on Ubuntu 2.6 kernel).
~Good luck
LG