A playlist is a small textfile (<1kb) that contain links to the media. The most common are ASX/WMX (mostly used for WMA audio and ASF/WMV movies), M3U (the playlistformat saved by WinAmp and XMMS), PLS (used for all kinds of media, known by all players) and RAM (used by RealPlayer). Usually you get a playlist-file when you press a "click here to listen"-link and your mediaplayer comes up. Look for the URL of that playlist! Often you have to read the HTML-source and follow a bunch of JavaScripts to find it. In the cases where the player is embedded in the page and is only provided a direct link to the stream you have to submit the media-link, otherwise submit the playlist.
If the url starts with mms://, rtsp://, rtp:// or pnm:// you know it's the media-link :)


You can tell what codec, bitrate, rate etc is used by running:
$ mplayer -identify <link>
"ffwmav2" and "ffwmav1" is WMA. Most others come up as MP3, Vorbis, etc.. RealPlayer uses a lot of different codecs, just select "RealAudio" if the link is rtsp:// or pnm:// .


I will write documentation on how to find the links later this week. 95% of the time it is very easy!

Right now I'm working on the http://www.live365.com stations.. They are very tricky, they use 50+ JavaScript function()s spread out on over 20 .js-files (<script language=JavaScript src=file.js>) and you need to get and submit cookies to get the links because the media-links contain values found in cookies. If the values are wrong you get a looped MP3 that says "make sure you're logged on properly!".. but I'm getting there.. ;) I think I have found how to get all needed info with the least HTTP-accesses, I just have to write a script to get it automatically with only the stationname as parameter. :)

// Per Wigren


Mick wrote:


OK, I'm playing around with my favorite ozzy radio station and have
found there 'listen online' section.

How can I tell what rate etc its been recorded at?

Also, you say link to playlists, not the media directly?  Please explain
to those that no sweet fa about streaming media??

Cheers,
Mick

On Tue, 2003-10-14 at 06:10, Per Wigren wrote:


I have made a basic webinterface for adding new stations now.
Please check the examples at http://webradio.sourceforge.net and start adding stations! ;)


It generates files in the upcoming Freevo-format, GXine mediamarks-format, and ASX, PLS and M3U playlists. :)

Unfortunatly Sourceforge won't let me connect outside the webserver so I will have to write a "sql proxy" in PHP to be able to automatically verify the links from my workstation instead.. My first intention was to parse submitted playlists and verify URLs etc in real-time as people are submitting (with the possibility to add needed cookies, referreres, user-agents, include/exclude regexps etc) but now I will have to do it from crontab at home instead unless I can find a less restricted webhost.. :/

Submit links to playlists instead of direct media-links if possible! Then the media-links will be automatically (re-)generated from the playlist every night if they change. (when it's implemented that is :))

// Per Wigren



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel







-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to