HOW-TO Play Live TV/Internet Video in XBMC (including some sample streams!) - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: PVR & Live TV Support (https://forum.kodi.tv/forumdisplay.php?fid=167) +--- Thread: HOW-TO Play Live TV/Internet Video in XBMC (including some sample streams!) (/showthread.php?tid=93280) |
HOW-TO Play Live TV/Internet Video in XBMC (including some sample streams!) - TravellingGuy - 2011-02-05 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
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
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 - steppedup - 2011-02-06 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? - steppedup - 2011-02-06 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 - - steppedup - 2011-02-06 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 Use the specified SOCKS proxy
app string Name of target app on server
tcUrl string URL to played stream
pageUrl string URL of played media's web page
swfUrl string URL to player SWF file
flashver string Flash version string (default WIN 10,0,32,18)
conn AMF Append arbitrary AMF data to Connect message
playpath string Path to target media on server
playlist boolean Set playlist before play command
live boolean Stream is live, no seeking possible
subscribe string Stream to subscribe to
token string Key for SecureToken response
swfVfy boolean Perform SWF Verification
swfAge integer Number of days to use cached SWF hash
start integer Stream start position in milliseconds
stop integer Stream stop position in milliseconds
buffer integer Buffer time in milliseconds
timeout integer Session timeout in seconds
Rtmp from FMS - pedro84 - 2011-02-16 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. - bodhi - 2011-02-20 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/apps/CNNLive/2.1.5.7/assets/swfs/LivePlayer.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/apps/CNNLive/2.1.5.7/assets/swfs/LivePlayer.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/apps/CNNLive/2.1.5.7/assets/swfs/LivePlayer.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/apps/CNNLive/2.1.5.7/assets/swfs/LivePlayer.swf -p http://www.cnn.com/video/flashLive/live.html?stream=4 -y cnn_stream4_low@2797 | mplayer - - ezcashman - 2011-02-22 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? - TravellingGuy - 2011-02-22 bodhi Wrote:Anybody has tried these live feeds posted on reddit? I saw those ones on Reddit, but I couldn't get them to work, even with mplayer. - TravellingGuy - 2011-02-22 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. 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. :-) - ezcashman - 2011-02-23 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/fbk1l/perfect_live_streaming_tv_al_jazeera_english_on/.compact?sort=hot The XBMC compatible address I was able to get from this: Code: ##Bloomberg TV 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. - Rastan - 2011-02-23 TravellingGuy Wrote:Specific Examples 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? Codes for Press TV, Al-Alam, RT English, RT Arabic, France 24 Arabic - nokian - 2011-02-25 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 http://www.euronews.net/news/streaming-live - uncertainty - 2011-03-15 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 - jhsrennie - 2011-03-15 Have you considered setting up a repository on Github or Sourceforge to maintain the .strm files? JR - uncertainty - 2011-03-15 danfred Wrote:NHK World Thanks for the info, Ill give that a try when home from work.. Update: rule works great for NHK in Japan, thankx....My heart goes out to the people of Japan atm with what you are enduring. Everyone I know in the US are praying for them... |