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

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
grassmunk Offline
Senior Member
Posts: 124
Joined: Aug 2004
Reputation: 0
Post: #41
Could someone help me out with this? I just spent the last 3 hours trying to get it to work. Essentially I have site http://watchpinoytv.blogspot.com/2008/12...ve_18.html which streams a Filipino channel.

when I run
Code:
rtmpdump -v -V -r rtmp://173.193.20.156/live -y abscbn -W http://player.longtailvideo.com/player5.3.swf
I get NetConnection.Connect.Rejected

I thought I got the right parameters from the site
Code:
<param name='movie' value='http://player.longtailvideo.com/player5.3.swf'><param name='allowfullscreen' value='true'><param name='allowscriptaccess' value='always'><param name='wmode' value='transparent'><param name='flashvars' value='file=abscbn.sdp&bufferlength=2&streamer=rtmp://173.193.20.156/live&autostart=true&logo.hide=false&stretching=exactfit&logo.link=http://www.yeheytv.com&logo.position=top-left&plugins=sharing-1&sharing.link=http://watchpinoytv.blogspot.com/2008/12/abs-cbn-live_18.html&sharing.code=<iframe src="http://www.yeheytv.com/abscbn2.html" width="600" frameborder="0" height="520" scrolling="no"></iframe> '>
but no dice.
find quote
myXBMC Offline
Member
Posts: 54
Joined: Feb 2011
Reputation: 0
Post: #42
grassmunk Wrote:Could someone help me out with this? I just spent the last 3 hours trying to get it to work. Essentially I have site http://watchpinoytv.blogspot.com/2008/12...ve_18.html which streams a Filipino channel.

when I run
Code:
rtmpdump -v -V -r rtmp://173.193.20.156/live -y abscbn -W http://player.longtailvideo.com/player5.3.swf
I get NetConnection.Connect.Rejected

I thought I got the right parameters from the site
Code:
<param name='movie' value='http://player.longtailvideo.com/player5.3.swf'><param name='allowfullscreen' value='true'><param name='allowscriptaccess' value='always'><param name='wmode' value='transparent'><param name='flashvars' value='file=abscbn.sdp&bufferlength=2&streamer=rtmp://173.193.20.156/live&autostart=true&logo.hide=false&stretching=exactfit&logo.link=http://www.yeheytv.com&logo.position=top-left&plugins=sharing-1&sharing.link=http://watchpinoytv.blogspot.com/2008/12/abs-cbn-live_18.html&sharing.code=<iframe src="http://www.yeheytv.com/abscbn2.html" width="600" frameborder="0" height="520" scrolling="no"></iframe> '>
but no dice.

@grassmunk -

I ran a full dump...hope it works out for you.

Code:
<item>

<title>My Pinoy TV</title>

<link>rtmp://173.193.20.156/live app=live swfUrl="http://player.longtailvideo.com/player5.3.swf" pageUrl="http://watchpinoytv.blogspot.com/2008/12/abs-cbn-live_18.html" playpath=abscbn.sdp live=true swfVfy=true </link>

<thumbnail>http://cf.juggle-images.com/matte/white/280x280/my-pinoy-tv-logo-primary.jpg</thumbnail>

</item>
find quote
stevenbg Offline
Junior Member
Posts: 2
Joined: Mar 2011
Reputation: 0
Post: #43
I'm having a problem playing a rtmp stream and I really hope you can help me Smile

I am able to play the stream in XBMC, but it has only sound, no picture. The codec is reported as h264 and I never had a problem with it before.

The strm file content is as follows
Code:
rtmp://cdn01.evolink.net:2007/mts/ playpath=bnt.stream pageURL=http://tv.bnt.bg/ swfUrl=http://tv.bnt.bg/player.swf app=mts/ swfVfy=true live=true subscribe=bnt.stream tcUrl=rtmp://cdn01.evolink.net:2007/mts/ flashver=WIN 10,2,154,25

I can use rtmpdump to open the stream and save it to a file, which I can play in Media player classic perfectly, but won't open in XBMC at all.
Code:
rtmpdump -r "rtmp://cdn01.evolink.net:2007/mts/" -t "rtmp://cdn01.evolink.net:2007/mts/" -a "mts/" -f "WIN 10,2,154,25" -s "http://tv.bnt.bg/player.swf" -p "http://tv.bnt.bg/" -v -y "bnt.stream" -V -o bnt.flv

Also you can find the stream playing via a flash player at http://tv.bnt.bg/

I am using a nightly win32 build, the log from playing the strm file is here.

What am I doing wrong?
(This post was last modified: 2011-03-29 21:48 by stevenbg.)
find quote
colbert Offline
Senior Member
Posts: 208
Joined: Dec 2008
Reputation: 0
Post: #44
This is awesome! I have gotten nearly every feed in the thread to work except CNN and Skynews.

I'd appreciate if any of you could help me get my local channel's feed going. The site is cp24.com and I have Flashblock installed, I right-clicked on the live feed window to get the flash location and I get this:

Code:
http://watch.ctv.ca/news/Flash/player.swf?themeURL=http://watch.ctv.ca/themes/CTV/player/340x267_Black_OneClip.aspx
Even with the output commands listed I don't know how to turn that into a .strm Confused

[Image: widget]
find quote
janetbuchler Offline
Junior Member
Posts: 1
Joined: May 2011
Reputation: 0
Post: #45
hi everybody could someone help me out with this
how to embed this stream

rtmp://m1.d1.yatv.ru/live/adamski/p/5d14dbfef55e7812<playpath>AdamskiTV <swfUrl>http://player.longtailvideo.com/player.swf <pageUrl>http://adamski.tv/BB.html

thx guys
find quote
sheikh73 Offline
Member
Posts: 75
Joined: Apr 2011
Reputation: 0
Post: #46
TravellingGuy Wrote: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

how can i find playpath= parameter?
find quote
colbert Offline
Senior Member
Posts: 208
Joined: Dec 2008
Reputation: 0
Post: #47
Can someone help with the command line that would work for cp24.com? The top left is the live stream of the station.

[Image: widget]
find quote
moripi Offline
Junior Member
Posts: 11
Joined: Dec 2006
Reputation: 0
Post: #48
sheikh73 Wrote:how can i find playpath= parameter?

I did it by installing wireshark, capture traffic while you connect to the stream using a browser. Then perform a "find" on the packet capture for "playpath".
find quote
fouad796 Offline
Senior Member
Posts: 282
Joined: Jul 2011
Reputation: 0
Location: Carlisle , PA
Post: #49
anyone got justin.tv streams to play in xbmc using a .strm file ?
if yes can u give an exemple ?

thank you
find quote
muer-d Offline
Junior Member
Posts: 8
Joined: Jun 2011
Reputation: 0
Post: #50
hello
I'm was looking for streams when have found this method (http://sites.google.com/site/hoppthebroo...witzerland) to extract rtmp info from on the fly stream:
ngrep -W byline | grep -Pio '(swfurl\.{2}.*?\.{2})|(\.{2}play.*?\w.*?\.{3})|(tcUrl.*?rtmp://.*?\.{2})|(pageUrl\.{3}.*?\.{2})'
swfUrl..0http://www.yycast.com/player/player-licensed.swf..
swfUrl..0http://www.yycast.com/player/player-licensed.swf..
tcUrl.."rtmp://174.36.55.67/live/_definst_..
swfUrl..0http://www.yycast.com/player/player-licensed.swf..
tcUrl.."rtmp://174.36.55.67/live/_definst_..
..play.............nSfydRlJ6TaKy4K...
but I don't know how I do convert to a valid xml
I've tried this one:
<item>
<title>EuroSport</title>
<link>rtmp://173.193.242.216/live playpath=nSfydRlJ6TaKy4K swfUrl=http://www.yycast.com/player/player-licensed.swf live=true</link>
<thumbnail>http://www.lyngsat-logo.com/hires/bb/british_eurosport.png</thumbnail>
</item>

any tip please
thank you
find quote
Post Reply