HOW-TO Play Live TV/Internet Video in XBMC (including some sample streams!)

  Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
TravellingGuy Offline
Junior Member
Posts: 28
Joined: Nov 2010
Reputation: 2
Post: #1
This idea started in another thread, someone asking how to stream the live Al Jazeera feed right into XBMC ( http://forum.xbmc.org/showthread.php?tid=92671 ). Someone then posted an rtmpdump command that downloaded/piped the stream into mplayer. I then spent an hour trying to make the rtmp stream in XBMC, and had success.

I then found a few more streams, and achieved success in getting them playing in XBMC, so decided to share with you. Hopefully you can also share any live streaming URL's you're using with us.

The Generic Procedure
  1. Find the stream URL (see below for some links/help on this)
  2. Create a text file called "whatever.strm" and paste the stream URL (with any extra parameters) into the file (see below for some sample URLs)
  3. Save the file somewhere where XBMC can see it.
  4. In XBMC, go to Videos, make sure you are not in Library mode and browse to where your whatever.strm file is.
  5. Select your stream.
  6. Enjoy live streaming.


Specific Examples
Here are some specific examples. These are the URL's (with paramaters) you'll want to put in your .strm file.
NASA TV:
Code:
http://playlist.yahoo.com/makeplaylist.dll?id=1368163

ISS Live Feed:
Code:
mms://a1709.l1856953708.c18569.g.lm.akamaistream.net/D/1709/18569/v0001/reflector:53708

Al Jazeera English:
Code:
rtmp://livestfslivefs.fplive.net/livestfslive-live/ playpath=aljazeera_en_veryhigh?videoId=747084146001&lineUpId=&pubId=665003303001&playerId=751182905001&affiliateId= pageURL=http://english.aljazeera.net/watch_now/ app=aljazeeraflashlive-live?videoId=747084146001&lineUpId=&pubId=665003303001&playerId=751182905001&affiliateId= swfUrl=http://admin.brightcove.com/viewer/us1.24.04.08.2011-01-14072625/federatedVideoUI/BrightcovePlayer.swf swfVfy=true live=true

France 24 English:
Code:
rtmp://stream2.france24.yacast.net/france24_live/en playpath=f24_liveen app=france24_live/en pageURL=http://www.france24.com/en/aef_player_popup/france24_player swfUrl=http://www.france24.com/en/sites/all/modules/maison/aef_player/flash/player.swf live=true

RT.com English (I'm assuming RT stands for Russia Today or something similar?):
Code:
rtmp://fms5.visionip.tv/live app=live swfUrl=http://rt.com/s/swf/player5.4.viral.swf pageURL=http://rt.com/on-air/ playpath=RT_3 live=true

HOW-TO Find More Feeds
  1. Search the internet - http://www.reddit.com/r/linux/comments/f...t?sort=hot has a list of more than a dozen, mostly news channels in various languages. See below for instructions on how to turn an rtmpdump command line into something XBMC recognizes.
  2. Use various tools to extract stream URLs. I don't know anything about how to do this, so I just search the internets instead. If someone has a great HOW-TO on doing this, please post!


HOW-TO Turn that rtmpdump commandline you found into something XBMC recognizes
Ok, so you've found a great rtmpdump (as in the Reddit link above) that pipes the live stream into mplayer for viewing. That's great, but we're using XBMC. Here is how the rtmpdump command line options correspond to the parameters XBMC expects.

Let's take Al Jazeera as an example:
Code:
rtmpdump -v -r rtmp://livestfslivefs.fplive.net/livestfslive-live/ -y "aljazeera_en_veryhigh?videoId=747084146001&lineUpId=&pubId=665003303001&playerId=751182905001&affiliateId=" -W "http://admin.brightcove.com/viewer/us1.24.04.08.2011-01-14072625/federatedVideoUI/BrightcovePlayer.swf -p "http://english.aljazeera.net/watch_now/ -a "aljazeeraflashlive-live?videoId=747084146001&lineUpId=&pubId=665003303001&playerId=751182905001&affiliateId="

The -r argument is the actual rtmp stream url. You'll copy/paste only this URL into your .strm file first.

The -y argument corresponds to the playpath= parameter XBMC wants.

The -W argument corresponds to the swfUrl= parameter XBMC wants.

The -p argument corresponds to the pageURL= parameter XBMC wants.

The -a argument corresponds to the app= parameter XBMC wants.

The -v argument corresponds to the live=true parameter XBMC wants. If it's a live stream, make sure to include live=true, or it won't work.

And, I don't know if/when/what circumstances it's needed, but you might need to also include "swfVfy=true" in your .strm file.

If anyone else has any more streams to contribute, please do so! Or even links to some rtmpdump command lines, piping into mplayer (or VLC).

TravellingGuy
find quote
steppedup Offline
Senior Member
Posts: 255
Joined: Dec 2009
Reputation: 2
Post: #2
As described above (thank you!)

Drop from into a text file call it cspan1.strm, and then you can open it up in XBMC in file mode. Add it to your favorites, and then you can drop it into your home menu!

CSPAN1:
rtmp://cp82346.live.edgefcs.net:1935/live playpath=CSPAN1@14845 swfUrl="http://www.c-span.org/cspanVideoHD.swf" pageURL="http://www.c-span.org/Live-Video/C-SPAN/" swfVfy=true live=true

CSPAN2:
rtmp://cp82347.live.edgefcs.net:1935/live playpath=CSPAN2@14846 swfUrl="http://www.c-span.org/cspanVideoHD.swf" pageURL="http://www.c-span.org/Live-Video/C-SPAN2/" swfVfy=true live=true

CSPAN3:
rtmp://cp82348.live.edgefcs.net:1935/live playpath=CSPAN3@14847 swfUrl="http://www.c-span.org/cspanVideoHD.swf" pageURL="http://www.c-span.org/Live-Video/C-SPAN3/" swfVfy=true live=true

CNN Live Stream 2 (arabic):
rtmp://cp44679.live.edgefcs.net/live playpath=cnn_stream2_low@2787 swfUrl="http://i.cdn.turner.com/cnn/.element/apps/CNNLive/2.1.5.7/assets/swfs/LivePlayer.swf" pageURL="http://www.cnn.com/video/flashLive/live.html?stream=2" swfVfy=true live=true

Tried getting CNN Live Stream 1 - all I was getting was a black screen - someone else want to take a whack at it?

[Image: widget]
[Image: avatarforxbmc.jpg]
[Image: widget]
(This post was last modified: 2011-02-06 01:32 by steppedup.)
find quote
steppedup Offline
Senior Member
Posts: 255
Joined: Dec 2009
Reputation: 2
Post: #3
The following, in addition to Travelling Guy's explanation, was my Rosetta stone:

-w <=> swfUrl=
-p <=> pageURL=
-y <=> playpath=
-a <=> app=

XBMC Version:
rtmp://livestfslivefs.fplive.net/livestfslive-live/
playpath=aljazeera_en_veryhigh?videoId=747084146001&lineUpId=&pubId=665003303001&playerId=751182905001&affiliateId=
pageURL=http://english.aljazeera.net/watch_now/
app=aljazeeraflashlive-live?videoId=747084146001&lineUpId=&pubId=665003303001&playerId=751182905001&affiliateId= swfUrl=http://admin.brightcove.com/viewer/us1.24.04.08.2011-01-14072625/federatedVideoUI/BrightcovePlayer.swf

swfVfy=true live=true
--------------------------------------------

Original from Reddit
rtmpdump -v -r
rtmp://livestfslivefs.fplive.net/livestfslive-live/

-y "aljazeera_en_veryhigh?videoId=747084146001&lineUpId=&pubId=665003303001&playerId=751182905001&affiliateId="
-W "http://admin.brightcove.com/viewer/us1.24.04.08.2011-01-14072625/federatedVideoUI/BrightcovePlayer.swf
-p "http://english.aljazeera.net/watch_now/
-a "aljazeeraflashlive-live?videoId=747084146001&lineUpId=&pubId=665003303001&playerId=751182905001&affiliateId="
| mplayer -
(This post was last modified: 2011-02-06 01:12 by steppedup.)
find quote
steppedup Offline
Senior Member
Posts: 255
Joined: Dec 2009
Reputation: 2
Post: #4
Valid RTMP options in XBMC (pulled from debug log):

In bold, the parameter by name. Followed by the type, then the definition.

So, immediately below - socks is the parameter, which takes a string type. It defines the specified SOCKS proxy.

socks string [INDENT]Use the specified SOCKS proxy[/INDENT]
app string [INDENT]Name of target app on server[/INDENT]
tcUrl string [INDENT]URL to played stream[/INDENT]
pageUrl string [INDENT]URL of played media's web page[/INDENT]
swfUrl string [INDENT]URL to player SWF file[/INDENT]
flashver string [INDENT]Flash version string (default WIN 10,0,32,18)[/INDENT]
conn AMF [INDENT] Append arbitrary AMF data to Connect message[/INDENT]
playpath string [INDENT] Path to target media on server[/INDENT]
playlist boolean [INDENT] Set playlist before play command[/INDENT]
live boolean [INDENT]Stream is live, no seeking possible[/INDENT]
subscribe string [INDENT] Stream to subscribe to[/INDENT]
token string [INDENT]Key for SecureToken response[/INDENT]
swfVfy boolean [INDENT] Perform SWF Verification[/INDENT]
swfAge integer [INDENT] Number of days to use cached SWF hash[/INDENT]
start integer [INDENT]Stream start position in milliseconds[/INDENT]
stop integer [INDENT]Stream stop position in milliseconds[/INDENT]
buffer integer [INDENT]Buffer time in milliseconds[/INDENT]
timeout integer [INDENT]Session timeout in seconds[/INDENT]
(This post was last modified: 2011-02-06 01:49 by steppedup.)
find quote
pedro84 Offline
Junior Member
Posts: 8
Joined: Feb 2011
Reputation: 0
Post: #5
Hello guys, I'm trying to watch a live stream that I'm creating from FMLE (flash media live encoder) to FMS (flash media server) on XBMC.
So I created a .strm file with the following parameter "rtmp://186.204.21.137/live/pedro"
But it does not work.
is that possible? how can I play RTMP on XBMC?
thank you in advance.
find quote
bodhi Offline
Fan
Posts: 432
Joined: Sep 2010
Reputation: 1
Post: #6
Anybody has tried these live feeds posted on reddit?



cnn live stream 1 (Al Masriya yesterday, Nile TV today)

rtmpdump -v -r rtmp://cp44679.live.edgefcs.net/live -y cnn_stream1_low@2785 -a live -W http://i.cdn.turner.com/cnn/.element/app...Player.swf -p http://www.cnn.com/video/flashLive/live.html?stream=1 | mplayer -

cnn live stream 2

rtmpdump -v -r rtmp://cp44679.live.edgefcs.net/live -y cnn_stream2_low@2787 -a live -W http://i.cdn.turner.com/cnn/.element/app...Player.swf -p http://www.cnn.com/video/flashLive/live.html?stream=2 | mplayer -

cnn live stream 3

rtmpdump -v -r rtmp://cp44679.live.edgefcs.net/live -a live -W http://i.cdn.turner.com/cnn/.element/app...Player.swf -p http://www.cnn.com/video/flashLive/live.html?stream=3 -y cnn_stream3_low@2796 | mplayer -

cnn live stream 4 (al Masriya today)

rtmpdump -v -r rtmp://cp44679.live.edgefcs.net/live -a live -W http://i.cdn.turner.com/cnn/.element/app...Player.swf -p http://www.cnn.com/video/flashLive/live.html?stream=4 -y cnn_stream4_low@2797 | mplayer -
find quote
ezcashman Offline
Junior Member
Posts: 2
Joined: Feb 2011
Reputation: 0
Post: #7
I'm trying to convert an rtmpdump into code (strm file) that XBMC can understand, however I'm still very puzzled on the actual conversion process. TravellingGuy's earlier post was helpful, but I still am having trouble understanding the conversion process.

I have found 2 rtmpdump streams for Al Jazeera Arabic on another website (first one very high quality & the second medium to high quality). See code below.

Code:
rtmpdump -v -r rtmp://livestfslivefs.fplive.net/livestfslive-live/ -y "aljazeera_ar_veryhigh" -a "aljazeeraflashlive-live" -o -| mplayer -

Code:
rtmpdump -v -r rtmp://livestfslivefs.fplive.net/livestfslive-live/ -y  "aljazeera_ar_high" -a "aljazeeraflashlive-live" -o -| mplayer -

Can someone please convert these into code that XBMC can understand, but more importantly explain how the actual conversion is done?
find quote
TravellingGuy Offline
Junior Member
Posts: 28
Joined: Nov 2010
Reputation: 2
Post: #8
bodhi Wrote:Anybody has tried these live feeds posted on reddit?



cnn live stream 1 (Al Masriya yesterday, Nile TV today)

rtmpdump -v -r rtmp://cp44679.live.edgefcs.net/live -y cnn_stream1_low@2785 -a live -W http://i.cdn.turner.com/cnn/.element/app...Player.swf -p http://www.cnn.com/video/flashLive/live.html?stream=1 | mplayer -

cnn live stream 2

rtmpdump -v -r rtmp://cp44679.live.edgefcs.net/live -y cnn_stream2_low@2787 -a live -W http://i.cdn.turner.com/cnn/.element/app...Player.swf -p http://www.cnn.com/video/flashLive/live.html?stream=2 | mplayer -

cnn live stream 3

rtmpdump -v -r rtmp://cp44679.live.edgefcs.net/live -a live -W http://i.cdn.turner.com/cnn/.element/app...Player.swf -p http://www.cnn.com/video/flashLive/live.html?stream=3 -y cnn_stream3_low@2796 | mplayer -

cnn live stream 4 (al Masriya today)

rtmpdump -v -r rtmp://cp44679.live.edgefcs.net/live -a live -W http://i.cdn.turner.com/cnn/.element/app...Player.swf -p http://www.cnn.com/video/flashLive/live.html?stream=4 -y cnn_stream4_low@2797 | mplayer -

I saw those ones on Reddit, but I couldn't get them to work, even with mplayer.
find quote
TravellingGuy Offline
Junior Member
Posts: 28
Joined: Nov 2010
Reputation: 2
Post: #9
ezcashman Wrote:I'm trying to convert an rtmpdump into code (strm file) that XBMC can understand, however I'm still very puzzled on the actual conversion process. TravellingGuy's earlier post was helpful, but I still am having trouble understanding the conversion process.

I have found 2 rtmpdump streams for Al Jazeera Arabic on another website (first one very high quality & the second medium to high quality). See code below.

Code:
rtmpdump -v -r rtmp://livestfslivefs.fplive.net/livestfslive-live/ -y "aljazeera_ar_veryhigh" -a "aljazeeraflashlive-live" -o -| mplayer -

Code:
rtmpdump -v -r rtmp://livestfslivefs.fplive.net/livestfslive-live/ -y  "aljazeera_ar_high" -a "aljazeeraflashlive-live" -o -| mplayer -

Can someone please convert these into code that XBMC can understand, but more importantly explain how the actual conversion is done?

Hey ezcashman.

Put this into a whatever.strm file and then select it in XBMC:
Code:
rtmp://livestfslivefs.fplive.net/livestfslive-live/ playpath=aljazeera_ar_veryhigh app=aljazeeraflashlive-live live=true

The explanation of the actual conversion was shown above, in my original post. Take a look at what I've done here with the veryhigh feed, and it should make sense. :-)
find quote
ezcashman Offline
Junior Member
Posts: 2
Joined: Feb 2011
Reputation: 0
Post: #10
Thanks for your assistance TravellingGuy. I reviewed previous posts and looked over how you did the conversions and I was able to figure it out.

I was able to convert another one I was interested in, Bloomberg TV USA to an XBMC address. I saw the code posted on reddit
http://www.reddit.com/r/linux/comments/f...t?sort=hot

The XBMC compatible address I was able to get from this:
Code:
##Bloomberg TV
alias btv="rtmpdump -v -r rtmpt://cp87869.live.edgefcs.net:1935/live \
-a live \
-y us_300@21006 \
-W http://cdn.gotraffic.net/v/20110210_153738//flash/BloombergMediaPlayer.swf \
-p http://www.bloomberg.com/tv/ \
| vlc -"
was this:
Code:
rtmpt://cp87869.live.edgefcs.net:1935/live/ playpath=us_300@21006 pageURL=http://www.bloomberg.com/tv/ app=live swfUrl=http://cdn.gotraffic.net/v/20110210_153738//flash/BloombergMediaPlayer.swf swfVfy=true live=true

Something I should point out, although the Bloomberg TV stream does work, it sometimes locks up and/or just stops playing. I'm not sure if I made a minor error or not in the conversion process, but maybe someone else can see something that I may have missed.
(This post was last modified: 2011-02-23 07:14 by ezcashman.)
find quote
Rastan Offline
Fan
Posts: 358
Joined: Jun 2006
Reputation: 2
Location: Over there... To the left, right.. Thats it!
Post: #11
TravellingGuy Wrote:Specific Examples
Here are some specific examples. These are the URL's (with paramaters) you'll want to put in your .strm file.

RT.com English (I'm assuming RT stands for Russia Today or something similar?):
Code:
rtmp://fms5.visionip.tv/live app=live swfUrl=http://rt.com/s/swf/player5.4.viral.swf pageURL=http://rt.com/on-air/ playpath=RT_3 live=true

Thanks for the tips and links. Aljazeera and ISS work fine but the RT News doesnt seem to work. Am I supposed to alter the code or does it work as it is?

[Image: all-thin-banner.jpg]
find quote
nokian Offline
Member
Posts: 78
Joined: Dec 2009
Reputation: 0
Post: #12
These are the News channels that I was able to get to work on XBMC. It's quite a collection now!

Press TV
Code:
rtmp://presstv.fc.llnwd.net/presstv/PressTV swfUrl=http://www.presstv.ir/live/llnw/LLNWPlayer.swf playpath=PressTV app=PressTV live=true

Al-Alam
Code:
rtmp://184.107.48.217/live swfUrl=http://www.alalam-news.com/sites/www.alalam-news.com/modules/alalam_flowplayer/flowplayer.commercial-3.2.2.swf playpath=alalam1 app=live live=true

RT English
Code:
rtmp://fms5.visionip.tv/live app=live swfUrl=http://rt.com/s/swf/player5.4.viral.swf pageURL=http://rt.com/on-air/ playpath=RT_3 live=true

RT Arabic
Code:
rtmp://russiatoday.fms.visionip.tv/rt/Russia_al_yaum_1000k_1 app=rt/Russia_al_yaum_1000k_1 swfUrl=http://arabic.rt.com/style/liveplayer.swf pageURL=http://arabic.rt.com/live_high playpath=1000k_1 live=true

France 24 Arabic
Code:
rtmp://stream2.france24.yacast.net:80/france24_live/frda playpath=f24_livefrda app=france24_live/frda pageURL=http://www.france24.com/fr/aef_player_popup/france24_player swfUrl=http://www.france24.com/fr/sites/all/modules/maison/aef_player/flash/player.swf live=true

If someone can get the code for Euronews that would be great. I cannot seem to get the RTMP URL Sad

http://www.euronews.net/news/streaming-live
find quote
uncertainty Offline
Fan
Posts: 499
Joined: Jun 2009
Reputation: 0
Location: Jersey
Post: #13
Has anyone had any luck getting the cnn live feeds to work?

Also another great url atm to get working in XBMC would be NHK World broadcast which is covering the Japan tragedy.

http://www3.nhk.or.jp/nhkworld/r/movie/ is the link for the flash.

thanks
(This post was last modified: 2011-03-15 07:32 by uncertainty.)
find quote
jhsrennie Offline
Team-XBMC Developer
Posts: 7,237
Joined: Nov 2008
Reputation: 119
Location: Chester, UK
Post: #14
Have you considered setting up a repository on Github or Sourceforge to maintain the .strm files?

JR
find quote
danfred Offline
Junior Member
Posts: 5
Joined: Mar 2011
Reputation: 0
Post: #15
NHK World
Code:
rtmp://175.41.168.21:1935/2e2cd playpath=nhkworldhd.sdp swfUrl="http://www3.nhk.or.jp/nhkworld/r/movie/fivecool_player.0.3.6.2.swf" pageUrl="http://www3.nhk.or.jp/nhkworld/r/movie/" swfVfy=true live=true

BBC World
Code:
rtmp://media2.lsops.net/live/ playpath=bbcworld1_en_high.sdp swfUrl="http://www.livestation.com/flash/player/5.4/player.swf" pageUrl="http://www.livestation.com/channels/10-bbc-world-news-english" swfVfy=true live=true

Euronews
Code:
rtmp://media2.lsops.net/live/ playpath=euronews_en_high.sdp swfUrl="http://www.livestation.com/flash/player/5.4/player.swf" pageUrl="http://www.livestation.com/channels/1-euronews-english" swfVfy=true live=true

United Nations TV
Code:
rtmp://media2.lsops.net/untv/ playpath=CHANNEL-7@13082 swfUrl="http://www.livestation.com/flash/player/5.4/player.swf" pageUrl="http://www.livestation.com/channels/79-united-nations-tv-english" swfVfy=true live=true

Bloomberg
Code:
rtmp://cp87869.live.edgefcs.net:1935/live/ playpath=us_300@21006 pageURL=http://www.bloomberg.com/tv/ app=live swfUrl=http://cdn.gotraffic.net/v/20110210_153738//flash/BloombergMediaPlayer.swf swfVfy=true live=true

Sky News
Code:
mms://live1.wm.skynews.servecast.net/skynews_wmlz_live300k

DW-TV Europe
Code:
mms://c13010-ls.w.core.cdn.streamfarm.net/dwworldlive-live/13010dwtveu350

DW-TV Asia
Code:
mms://c13010-ls.w.core.cdn.streamfarm.net/dwworldlive-live/13010dwtvasiaplus350

France 24 English
Code:
mms://stream1.france24.yacast.net/f24_liveen

CCTV
Code:
http://www.wcetv.com/asx/LIB/LIB100247_v5.asx
(This post was last modified: 2011-03-15 18:28 by danfred.)
find quote
Post Reply