You are not logged in.

#1 2010-06-08 05:20:35

lagagnon
Member
From: an Island in the Pacific...
Registered: 2009-12-10
Posts: 1,087
Website

How determine streaming URL of Internet radio stations?

I want to play some online radio stations from the console using "cvlc". Works great for stations that have an .asx http address or an mms:// URL but for stations such as cbc.ca/radio2 and  http://www.cfax1070.com/ I cannot seem to locate a valid streaming website address - these are usually .php pages with their own players. Any ideas on how to determine valid streaming URL's from such radio stations?


Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.

Offline

#2 2010-06-08 06:01:15

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: How determine streaming URL of Internet radio stations?

In this case (a flash player) you need to do header dump to get the GET requests (but this works, for other types of embedded players, is a general solution). If you use firefox you can install livehttpheaders to have a simple interface. For this example cfax1070, the url is http://208.80.54.87/CFAXAMAAC?streamthe … 5976656534

For more power you can try tcpdump.

EDIT If you gonna use tcpdump this is the filter for GET headers

tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x47455420

And, as tcdump have a big man page you can use something like this

sudo tcpdump -vvv -A 'tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x47455420'

Last edited by kazuo (2010-06-08 06:33:20)

Offline

Board footer

Powered by FluxBB