The time now is Tue 24 Apr 2018, 05:03
All times are UTC - 4 |
Page 1 of 3 [41 Posts] |
Goto page: 1, 2, 3 Next |
Author |
Message |
sc0ttman

Joined: 16 Sep 2009 Posts: 2572 Location: UK
|
Posted: Wed 01 Aug 2012, 12:59 Post subject:
online TV ... using rtmpdump, rtmpsrv and rtmpsuck Subject description: play online video streams in mplayer or vlc |
|
rtmpdump, rtmpsrv and rtmpsuck are a set of tools used to get and convert online media streams...
You can play the streams directly through mplayer or vlc.
See VLC-GTK 2.4 for a pre-built GUI solution...
http://rtmpdump.mplayerhq.hu/
I've attached a .pet of rtmpdump to this thread.
It was compiled in wary 511... should work in recent pups.
I have a list of rtmpdump commands for various live TV channels.
If you can add more channels/stations to the list, that's great!!
You can 'pipe' rtmpdump commands straight to mplayer or vlc.
This allows you to watch live TV streams in vlc or mplayer.
Here is are some example commands, Al Jazeera and BBC World News:
Code: | # rtmpdump -v -r rtmp://aljazeeraflashlivefs.fplive.net/aljazeeraflashlive-live/aljazeera_eng_med | vlc -
# rtmpdump -v -r rtmp://a.cdn.msnbclive.eu/edge/bbcworld_vh -W http://msnbclive.eu/getswf.php?name=player.swf -p http://blog.livenewschat.tv/world-newsroom | vlc - |
You can of course, change 'vlc' for 'cvlc' or 'mplayer'.
Notice the - (dash) after the vlc command, it's important.
Just remember to finish with a dash (-) at the end...
-----------------------------------------------------
rtmpsuck - find the stream details you need for more streams
In order to find your own streams, and put them into rtmpdump commands,
you should follow the guide a few posts below...
Essentially it involves setting up IP settings,
running 'rtmpsuck' in a terminal, running your browser as a restricted user,
then finally applying the info shown by rtmpsuck into a command for rtmpdump.
-----------------------------------------------------
On another note, here is the format of my streams list:
Code: | Name of Stream|rtmpdump command |
Here is the list of the streams I have working so far:
NOTE: This is a mixed list: the streams that don't begin `rtmpdump -v -r` can be loaded simply with:
vlc $URL
(the URLs begin with mms:// or http:// or rtmp:// .. after the first | )
Code: | Live TV: Al Jazeera English|rtmpdump -v -r rtmp://aljazeeraflashlivefs.fplive.net/aljazeeraflashlive-live/aljazeera_eng_med
Live TV: BBC World News|rtmpdump -v -r rtmp://a.cdn.msnbclive.eu/edge/bbcworld_vh -W http://msnbclive.eu/getswf.php?name=player.swf -p http://blog.livenewschat.tv/world-newsroom
Live TV: Bloomberg|rtmpdump -v -r rtmp://cp116697.live.edgefcs.net:80/live/BnazlkNDpCIcD-QkfyZCQKlRiiFnVa5I_640_360_440@18679 -W http://player.ooyala.com/cacheable/c78f866930724ffedfe8cf5349712569/player_v2.swf -p http://tvpc.com
Live TV: Cartoon Classics|http://72.13.93.186/cartoonclassics
Live TV: CCTV News, in English|mms://a529.l7906022528.c79060.g.lm.akamaistream.net/D/529/79060/v0001/reflector:22528
Live TV: CNN|rtmpdump -v -r rtmp://a.cdn.msnbclive.eu/edge/cnn_live -W http://msnbclive.eu/player.swf -p http://blog.livenewschat.tv/situation-chatroom
Live TV: CNN International News|rtmpdump -v -r rtmp://a.cdn.msnbclive.eu/edge/cnni_live -W http://msnbclive.eu/getswf.php?name=player.swf -p http://blog.livenewschat.tv/international-room-chat
Live TV: CSPAN1|rtmpdump -v -r rtmp://cp82346.live.edgefcs.net:1935/live -y CSPAN1@14845 -W http://www.c-span.org/cspanVideoHD.swf -p http://www.c-span.org/Live-Video/C-SPAN/
Live TV: CSPAN2|rtmpdump -v -r rtmp://cp82347.live.edgefcs.net:1935/live -y CSPAN2@14846 -W http://www.c-span.org/cspanVideoHD.swf -p http://www.c-span.org/Live-Video/C-SPAN2/
Live TV: CSPAN3|rtmpdump -v -r rtmp://cp82348.live.edgefcs.net:1935/live -y CSPAN3@14847 -W http://www.c-span.org/cspanVideoHD.swf -p http://www.c-span.org/Live-Video/C-SPAN3/
Live TV: ESPN|mms://a3.v20473a.c20473.g.vc.akamaistream.net/7/3/20473/v0001/espn.download.akamai.com/20473/t_assets/20070217/4657511c3b57e3dc733def3701a3d94f38e6f132.wmv
Live TV: FOX Movies|rtmpdump -v -r rtmp://50.7.161.37/flash/tfxm -W http://95.211.149.228/player/player-licensed.swf -p http://www.casti.tv
Live TV: FOX News|rtmpdump -v -r rtmp://176.31.231.124/edge/vjl7szzy9ztawjn -W http://cdn.static.ilive.to/jwplayer/player_embed.swf -p http://www.ilive.to
Live TV: FOX 11|rtmpdump -v -r rtmp://198.154.96.141/live/00001.stream -W http://www.skyonetv.com/player/skyonetv.com.swf -p http://www.skyonetv.com
Live TV: France24, English|rtmpdump -v -r rtmp://stream2.france24.yacast.net/france24_live/en -a france24_live/en -W http://www.france24.com/en/sites/all/mo ⦠player.swf -p http://www.france24.com/en/aef_player_p ⦠e24_player -y f24_liveen
Live TV: France24, Francais|rtmpdump -v -r rtmp://stream2.france24.yacast.net/france24_live/fr -a france24_live/fr -W http://www.france24.com/fr/sites/all/mo ⦠player.swf -p http://www.france24.com/fr/aef_player_p ⦠e24_player -y f24_livefr
Live TV: HBO|rtmpdump -v -r rtmp://198.154.96.141/live/00011.stream -W http://www.skyonetv.com/player/skyonetv.com.swf -p http://www.skyonetv.com
Live TV: HDTV1, Czech Republic|http://stream.hdtv1.cz/
Live TV: MSNBC|rtmpdump -v -r rtmp://a.cdn.msnbclive.eu/edge -y msnbc_live -W http://msnbclive.eu/getswf.php?name=player.swf -p http://www.rentadrone.tv/msnbc-live-rockinroosters/
Live TV: NASA TV|mms://a1816.l1856941815.c18569.g.lm.akamaistream.net/D/1816/18569/v0001/reflector:41815
Live TV: O2TV, Czech Republic|http://streaming.o2active.cz/o2tvinfo_high
Live TV: Russia Today News, English|rtmpdump -v -r rtmp://fms5.visionip.tv/live -a live -W http://rt.com/s/swf/player5.4.viral.swf -p http://rt.com/on-air/ -y RT_2
Live TV: Russia Today News, Spanish|rtmpdump -v -r rtmp://rt.fms.visionip.tv/live/ -a live -W http://actualidad.rt.com/swf/player.swf -p http://actualidad.rt.com/mas/envivo/ -y RT_Spanish_2
Live TV: Russia Today News, Arabic|rtmpdump -v -r rtmp://russiatoday.fms.visionip.tv/rt/Russia_al_yaum_1000k_1 -a rt/Russia_al_yaum_1000k_1 -W http://arabic.rt.com/style/liveplayer.swf -p http://arabic.rt.com/live_high -y 1000k_1
Live TV: Sky News|mms://live1.wm.skynews.servecast.net/skynews_wmlz_live300k
Live TV: The Wildlife Channel|http://rs4wms.i2ic.com/wlc_2500
Live TV: TNT|rtmpdump -v -r rtmp://198.154.96.141/live/00008.stream -W http://www.skyonetv.com/player/skyonetv.com.swf -p http://www.skyonetv.com |
NOTE: If you're using vlc, you could test this using VLC-GTK 2.4: http://murga-linux.com/puppy/viewtopic.php?t=54753
Description |
help files
|

Download |
Filename |
rtmpdump_DOC-2.4-i486.pet |
Filesize |
5.44 KB |
Downloaded |
818 Time(s) |
Description |
files needed to compile stuff with rtmpdump
|

Download |
Filename |
rtmpdump_DEV-2.4-i486.pet |
Filesize |
59.21 KB |
Downloaded |
775 Time(s) |
Description |
this is the actual program, required
|

Download |
Filename |
rtmpdump-2.4-i486.pet |
Filesize |
77.92 KB |
Downloaded |
1022 Time(s) |
_________________ Akita Linux, VLC-GTK, Pup Search, Pup File Search
Last edited by sc0ttman on Fri 03 Aug 2012, 08:51; edited 9 times in total
|
Back to top
|
|
 |
sc0ttman

Joined: 16 Sep 2009 Posts: 2572 Location: UK
|
Posted: Wed 01 Aug 2012, 13:00 Post subject:
|
|
If you have more TV channels or streams please add them here!
Code: | Live TV: EuroSport, Spanish, French|rtmpdump -r rtmp://81.17.24.58:190/vod --playpath 50ehyqk50ehyoy --swfUrl http://31.7.62.218/player.swf --live --pageUrl http://www.dinozap.tv/redirect/
Live TV: E4, UK|rtmp://rtsp-02.g-box.tv/live/e4_8448.sdp
Live TV: Channel 5, UK|rtmp://rtsp-02.g-box.tv/live/channel5_8500.sdp |
No idea how long these kind of streams stay working though...
_________________ Akita Linux, VLC-GTK, Pup Search, Pup File Search
Last edited by sc0ttman on Wed 01 Aug 2012, 18:50; edited 2 times in total
|
Back to top
|
|
 |
keniv
Joined: 06 Oct 2009 Posts: 490 Location: Scotland
|
Posted: Wed 01 Aug 2012, 14:29 Post subject:
|
|
Hello scOttman
Works for me using 528 on old Toshiba laptop 800MHz 320MB using mplayer. Both vlc and cvlc freeze. Also cannot get urls starting http or mms to work. I get a syntax error and so think that I am not entering them correctly. Could you post an example as you did with the rtmp urls. Thanks for this pet.
Regards,
Ken.
|
Back to top
|
|
 |
sc0ttman

Joined: 16 Sep 2009 Posts: 2572 Location: UK
|
Posted: Wed 01 Aug 2012, 18:53 Post subject:
|
|
keniv wrote: | Hello scOttman
Works for me using 528 on old Toshiba laptop 800MHz 320MB using mplayer. Both vlc and cvlc freeze. Also cannot get urls starting http or mms to work. I get a syntax error and so think that I am not entering them correctly. Could you post an example as you did with the rtmp urls. Thanks for this pet.
Regards,
Ken. |
some streams simply need
vlc http://blah
vlc mms://blah
vlc rtmp://blah
the streams that use rtmpdump will need:
rtmpdump -v -r URL -p SWFPLAYER -s SWFPATH -live | cvlc -
Not sure what else ....
_________________ Akita Linux, VLC-GTK, Pup Search, Pup File Search
|
Back to top
|
|
 |
stu90

Joined: 25 Feb 2010 Posts: 1399 Location: England. Dell Inspiron 1501. Dpup
|
Posted: Thu 02 Aug 2012, 07:13 Post subject:
|
|
Hi sc0ttman
Here are a few more.
Code: |
ABC HD
rtmpdump -r "rtmp://198.154.96.141/live" -W "http://www.skystreamlive.com//player/skystreamlive.com.swf" -p "http://www.skystreamlive.com/channel.php?n=00033.stream" --live -y "00033.stream" | mplayer - &>/dev/null
NBC HD
rtmpdump -r "rtmp://198.154.96.141/live" -W "http://www.skystreamlive.com//player/skystreamlive.com.swf" -p "http://www.skystreamlive.com/channel.php?n=00006.stream" --live -y "00006.stream" | mplayer - &>/dev/null
FOX 11 HD
rtmpdump -r "rtmp://198.154.96.141/live" -W "http://www.skystreamlive.com//player/skystreamlive.com.swf" -p "http://www.skystreamlive.com/channel.php?n=00001.stream" --live -y "00001.stream" | mplayer - &>/dev/null
FX HD
rtmpdump -r "rtmp://198.154.96.141/live" -W "http://www.skystreamlive.com//player/skystreamlive.com.swf" -p "http://www.skystreamlive.com/channel.php?n=00003.stream" --live -y "00003.stream" | mplayer - &>/dev/null
Cinemax HD
rtmpdump -r "rtmp://198.154.96.141/live" -W "http://www.skystreamlive.com//player/skystreamlive.com.swf" -p "http://www.skystreamlive.com/channel.php?n=00004.stream" --live -y "00004.stream" | mplayer - &>/dev/null
TNT HD
rtmpdump -r "rtmp://198.154.96.141/live" -W "http://www.skystreamlive.com//player/skystreamlive.com.swf" -p "http://www.skystreamlive.com/channel.php?n=00008.stream" --live -y "00008.stream" | mplayer - &>/dev/null
Showtime HD
rtmpdump -r "rtmp://198.154.96.141/live" -W "http://www.skystreamlive.com//player/skystreamlive.com.swf" -p "http://www.skystreamlive.com/channel.php?n=00010.stream" --live -y "00010.stream" | mplayer - &>/dev/null
HBO HD
rtmpdump -r "rtmp://198.154.96.141/live" -W "http://www.skystreamlive.com//player/skystreamlive.com.swf" -p "http://www.skystreamlive.com/channel.php?n=00011.stream" --live -y "00011.stream" | mplayer - &>/dev/null
CBS HD
rtmpdump -r "rtmp://198.154.96.141/live" -W "http://www.skystreamlive.com//player/skystreamlive.com.swf" -p "http://www.skystreamlive.com/channel.php?n=00012.stream" --live -y "00012.stream" | mplayer - &>/dev/null
ESPN 2 HD
rtmpdump -r "rtmp://198.154.96.141/live" -W "http://www.skystreamlive.com//player/skystreamlive.com.swf" -p "http://www.skystreamlive.com/channel.php?n=00013.stream" --live -y "00013.stream" | mplayer - &>/dev/null
TRUE BLOOD
rtmpdump -r "rtmp://198.154.96.141/live" -W "http://www.veohcast.tv/player/veohcast.tv.swf" -p "http://www.veohcast.tv/videoV.php?n=00017.stream&vw=468&vh=368" --live -y "00017.stream" | mplayer - &>/dev/null
skysports1
rtmpdump -r "rtmpe://95.211.188.38/live" -W "http://www.launchlive.tv/player/player-licensed.swf" -p "http://www.launchlive.tv/embed.php?v=dsdsdsds99&vw=570&vh=400" --live -y "dsdsdsds99" | mplayer - &>/dev/null
skysports2
rtmpdump -r "rtmpe://95.211.188.38/live" -W "http://www.launchlive.tv/player/player-licensed.swf" -p "http://www.launchlive.tv/embed.php?v=regegrrthwer&vw=570&vh=400" --live -y "regegrrthwer" | mplayer - &>/dev/null
skysports3
rtmpdump -r "rtmpe://95.211.174.130/live" -W "http://www.launchlive.tv/player/player-licensed.swf" -p "http://www.launchlive.tv/embed.php?v=tsjsrjrhsdagf&vw=570&vh=400" --live -y "tsjsrjrhsdagf" | mplayer - &>/dev/null
skysports4
rtmpdump -r "rtmpe://95.211.188.38/live" -W "http://www.launchlive.tv/player/player-licensed.swf" -p "http://www.launchlive.tv/embed.php?v=tsjsrjrhsdagf&vw=570&vh=400" --live -y "tsjsrjrhsdagf" | mplayer - &>/dev/null
|
|
Back to top
|
|
 |
sc0ttman

Joined: 16 Sep 2009 Posts: 2572 Location: UK
|
Posted: Thu 02 Aug 2012, 08:24 Post subject:
|
|
stu90 wrote: | Hi sc0ttman
Here are a few more. |
awesome, thanks very much Stu!
_________________ Akita Linux, VLC-GTK, Pup Search, Pup File Search
|
Back to top
|
|
 |
keniv
Joined: 06 Oct 2009 Posts: 490 Location: Scotland
|
Posted: Thu 02 Aug 2012, 14:48 Post subject:
|
|
Hi scOttman
I did not realise it was that simple. Have also tried some of stu90s urls. Thanks for these. Sorry I do not have any to add.
Regards,
Ken.
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1447 Location: Ukraine
|
Posted: Thu 02 Aug 2012, 15:15 Post subject:
|
|
Dear scOttman & Stu,
The URLs are great and they work. Since Stu has done some nice, quick guis, perhaps he would oblige us with a little combobox gtkdialog or yad script. It would be very convenient, using mplayer.
With thanks and kind regards,
vovchik
|
Back to top
|
|
 |
sc0ttman

Joined: 16 Sep 2009 Posts: 2572 Location: UK
|
Posted: Thu 02 Aug 2012, 18:35 Post subject:
|
|
How to get live online rtmp streams in your preferred media player
Use the tool 'rtmpsuck' to get the stream info.
Use 'rtmpdump' to record or pipe the stream.
Type 'rtmpsuck --help' into a terminal to see the full help
Also 'rtmpdump --help'...
You must do the following, to be able to get and record/play online video streams:
1. You must run this command in a terminal, to setup IP settings as needed:
Code: | iptables -t nat -A OUTPUT -p tcp --dport 1935 -m owner \! --uid-owner root -j REDIRECT |
2. You must then run the following command in the terminal, and leave it open:
3. Then run a web browser as the user 'fido' or 'Spot'. You can do this in various ways... In Akita:
- Run this command in a terminal: Code: | run_as_spot defaultbrowser |
- Use the main menu.. Menu->Run as Spot (at the top)
4. In your browser, visit the webpage with the stream, and start playing the stream.
5. Then look at the output of rtmpsuck in your terminal window. You should see something like:
app: live flashVer: LNX 10,1,82,76
swfUrl: http://rt.com/s/swf/player5.4.viral.swf
tcUrl: rtmp://rt.fms.visionip.tv/live
pageUrl: http://rt.com/on-air/rt-america-air/
Playpath: RT_US_3
6. You must apply the given info into a rtmpdump command. Using the above details:
Code: | rtmpdump -r rtmp://rt.fms.visionip.tv/live \
-a live \
-y RT_US_3 \ -W http://rt.com/s/swf/player5.4.viral.swf \
-p http://rt.com/on-air/rt-america-air/ \
-f "LNX 10,1,82,76" \
-o ~/rt.flv \ |
Main rtmpdump options, explained:
tcUrl (stream) -r
app -a
playpath -y
swfUrl -W
pageUrl -p
flashVer: -f
output file -o
length (secs) -B
7. You could also 'pipe' the stream directly to your media player:
Code: | rtmpdump -v -r rtmp://rt.fms.visionip.tv/live \
-a live \
-y RT_US_3 \ -W http://rt.com/s/swf/player5.4.viral.swf \
-p http://rt.com/on-air/rt-america-air/ \
-f "LNX 10,1,82,76" | cvlc - |
IMPORTANT: Note the missing -o option, the added '-v' option,
and the ' | cvlc -' at the end of the command..
You can replace 'cvlc' with 'mplayer'
When finished, save the commands to a text file, or whatever...
The, finally, run this command to restore IP settings:
Code: | iptables -t nat -A OUTPUT -p tcp --dport 1935 -m owner \! --uid-owner root -j REDIRECT |
Done
_________________ Akita Linux, VLC-GTK, Pup Search, Pup File Search
Last edited by sc0ttman on Sat 04 Aug 2012, 10:11; edited 2 times in total
|
Back to top
|
|
 |
stu90

Joined: 25 Feb 2010 Posts: 1399 Location: England. Dell Inspiron 1501. Dpup
|
Posted: Fri 03 Aug 2012, 07:59 Post subject:
|
|
vovchik wrote: | Dear scOttman & Stu,
The URLs are great and they work. Since Stu has done some nice, quick guis, perhaps he would oblige us with a little combobox gtkdialog or yad script. It would be very convenient, using mplayer.
With thanks and kind regards,
vovchik |
Hi vovchik,
No gtkdialog or yad script - but here is a terminal script for playing the rtmpdump streams with mplayer.
I use tput for a few colours and such - maybe tput is not default on all puppies? if not let me know an i will remove tput command from the script.
cheers.
Description |
remove fake .gz extension and make script executable
|

Download |
Filename |
streamplay.gz |
Filesize |
7.01 KB |
Downloaded |
1036 Time(s) |
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1447 Location: Ukraine
|
Posted: Fri 03 Aug 2012, 11:41 Post subject:
|
|
Dear Stu,
Thanks! It works fine - and with tput. I have been looking for more URLs and will post soon. Have to test them all....
With kind regards,
vovchik
|
Back to top
|
|
 |
sc0ttman

Joined: 16 Sep 2009 Posts: 2572 Location: UK
|
Posted: Fri 03 Aug 2012, 13:24 Post subject:
|
|
Here is a basic BETA quality script I made... Stu beat me to it...
Mine should work in X and no X environments...
Uses Xdialog or dialog, depending...
Also depends on rtmpdump for many streams, and vlc/mplayer
No X environment not tested a bit, works fine I think...
You need to change line 11, to whatever player you use
is the default at the moment...
I called it Watch TV, but there are loads of radio channels in there too
Description |
no X |
Filesize |
8.98 KB |
Viewed |
13325 Time(s) |

|
Description |
in X environment |
Filesize |
13.93 KB |
Viewed |
12976 Time(s) |

|
Description |
remove fake .gz extensions and make executable
|

Download |
Filename |
watch_tv.gz |
Filesize |
12.56 KB |
Downloaded |
918 Time(s) |
_________________ Akita Linux, VLC-GTK, Pup Search, Pup File Search
Last edited by sc0ttman on Sat 04 Aug 2012, 08:20; edited 2 times in total
|
Back to top
|
|
 |
keniv
Joined: 06 Oct 2009 Posts: 490 Location: Scotland
|
Posted: Fri 03 Aug 2012, 14:29 Post subject:
|
|
Hi All
Have tried both stu90 and scOtmans scripts. Both very good.
scOtman
Would it be possible to leave the dialogue box in place when a channel is selected? This would mean that if you wish to change channel you could do so without restarting the script.
Regards,
Ken.
|
Back to top
|
|
 |
sc0ttman

Joined: 16 Sep 2009 Posts: 2572 Location: UK
|
Posted: Fri 03 Aug 2012, 15:31 Post subject:
|
|
keniv wrote: | Would it be possible to leave the dialogue box in place when a channel is selected? This would mean that if you wish to change channel you could do so without restarting the script. |
Yes, just add this before the last line:
Code: | [ -s $DISPLAY ] && clear || $0 & |
so the file finishes like this:
Code: | [ -s $DISPLAY ] && clear || $0 &
exit 0 |
That added code will clear the screen before exit if in non X env,
and if in an X env, it will re-load the GUI after a stream is chosen, ...
_________________ Akita Linux, VLC-GTK, Pup Search, Pup File Search
|
Back to top
|
|
 |
keniv
Joined: 06 Oct 2009 Posts: 490 Location: Scotland
|
Posted: Fri 03 Aug 2012, 19:03 Post subject:
|
|
Thanks scOttman. I included your extra code and it works well. Have also tried using mplayer but have found it does not play some of the radio stations. The BBC stations seem to be a problem in this respect. I also have a problem shutting radio stations off when using cvlc. I cannot find a key that lets me "quit". Have tried cvlc -H in a terminal but this did not provide the info I need. I know esc or q work for mplayer. Anybody know what to use in cvlc?
Regards,
Ken.
|
Back to top
|
|
 |
|
Page 1 of 3 [41 Posts] |
Goto page: 1, 2, 3 Next |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|