LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-12-2014, 05:53 AM   #1
postcd
Member
 
Registered: Oct 2013
Posts: 400

Rep: Reputation: Disabled
How to get radio stream URL out of a webpage?


Hello,

please what is the easiest linux way to get an online radio stream URL out of website player like:

http://listen.play.cz/player.html?sh...latka&v=%27+ts

They may support: Flash, Silverlight, HTML5 audio.
wma, mp3, aac

my web browser dont have any flash technologies and i dont wish to use any. also source code of the website dont show anything

There a quite neat way to stream right from command line:

Code:
mplayer http://95.81.146.2/fip/all/fiphautdebit.mp3
(above mentioned is another radio, i still dont know how to discover that stream URL/IP from linux)
 
Old 02-12-2014, 06:36 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
nothing to do with networking (not Linux by all accounts). Moved to Linux - Newbie.

Personally I'd use wireshark and watch the web traffic being requested. If you don't have flash though, I'd presume it never even gets the data about what to stream.
 
Old 02-12-2014, 07:12 PM   #3
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,493

Rep: Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636
You should realize that those pages are not designed fur us geeks to extract the URL. When we do and play trough mplayer you miss all those nice advertisements. If you don't look at the advertisements you are not entitled to listen to the music. Finding the URL requires some hacking. Not all sites are equal, and many have a different way to embed the URL.

Now this station plays my top favorite exercising music, so I put in the effort to find the URL for my own benefit.

This time I right-clicked on the Play button and asked for inspect element. (This was opera, but I think the menu item is the same in Firefox). This doesn't show the page source as it is downloaded (which you see with View Source). Instead it shows exactly what is being executed by the browser engine.

In this case, it was Flash Player, playing this URL:
http://icecast5.play.cz/radio-zlatka128.mp3

It plays wonderfully in mplayer!

jlinkels
 
Old 02-12-2014, 09:14 PM   #4
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,124

Rep: Reputation: 190Reputation: 190
if the program content requires flash to play (because the file is embedded into flash), then I guess it's quite difficult to have a workaround to play the content without flash.
 
Old 02-12-2014, 09:48 PM   #5
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,493

Rep: Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636
Quote:
Originally Posted by jlinkels View Post
In this case, it was Flash Player, playing this URL:
http://icecast5.play.cz/radio-zlatka128.mp3

It plays wonderfully in mplayer!
jlinkels
Why do you think so?

jlinkels
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Crackly radio stream frieza Linux - Software 1 12-20-2012 05:09 AM
How to stream a webpage? kalleanka Programming 2 10-01-2010 05:11 AM
radio stream plugin? Manish87 Linux - Newbie 2 06-08-2010 07:38 AM
Recording radio stream foxxer Linux - Software 5 05-28-2005 03:56 PM
save radio stream SchwipSchwap Linux - Newbie 7 06-17-2004 01:24 AM


All times are GMT -5. The time now is 02:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration