Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Or any other way you want to buffer a little and then play it. You'll need to kill rtmpdump when you are done. As far as full screen, press the f key when mplayer starts. Or do it how you want. This should be enogh info to get you going.
A simple TV tuner script to watch TV networks online with mplayer. I've already included some examples. Remove what you want, put your own in.
If you don't want to use X then you'll need to use mplayer with framebuffer.
Code:
#! /usr/bin/env bash
# A script to watch TV networks online with mplayer.
# Requires mplayer, rtmpdump, and a broadband internet connection.
# If you wish to use a different media player, modify the script.
# Works in X or framebuffer.
# Set mplayer to use X or framebuffer here.
# mp="mplayer -vo fbdev2 -vf scale=640:360"
mp="mplayer"
clear
# Add network ID here.
OPTIONS="Quit Bloomberg_News CNN CNN_Int CNBC NHK CSPAN1 CSPAN2 CSPAN3 ESPN
France24 DW MSNBC RT SKY Aljazeera BBC_D_Pol BBC_N_Night Cartoon_Classics
ABCKids1 ABCKids3"
echo "Select a station, Press q to stop stream, Ctrl+C if in framebuffer."
select opt in $OPTIONS; do
# Add streams here.
case $opt in
Quit)
clear
exit;;
Bloomberg_News)
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 -o - | $mp -;;
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 -o - | $mp -;;
CNN_Int)
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 -o - | $mp -;;
CNBC)
rtmpdump -v -r rtmp://a.cdn.msnbclive.eu/edge/ \
-y cnbc_live \
-W http://msnbclive.eu/player.swf \
-p http://blog.livenewschat.tv/stock-traders-chat/ -o - | $mp -;;
NHK)
rtmpdump -v -r rtmp://ams-3.srv.fivecool.net/nhkw/gwm \
-W http://www3.nhk.or.jp/nhkworld/r/movie/streamhub_player20110926.swf \
-p http://www3.nhk.or.jp/nhkworld/r/movie -o - | $mp -;;
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/ -o - | $mp -;;
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/ -o - | $mp -;;
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/ -o - | $mp -;;
ESPN)
$mp mms://a3.v20473a.c20473.g.vc.akamaistream.net/7/3/20473/v0001/espn.download.akamai.com/20473/t_assets/20070217/4657511c3b57e3dc733def3701a3d94f38e6f132.wmv;;
France24)
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 -o - | $mp -;;
DW)
$mp -playlist http://www.metafilegenerator.de/DWelle/tv-asia/wmv/tv_mb_m.asx;;
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/ -o - | $mp -;;
RT)
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 -o - | $mp -;;
SKY)
$mp mms://live1.wm.skynews.servecast.net/skynews_wmlz_live300k;;
Aljazeera)
rtmpdump -v -r rtmp://aljazeeraflashlivefs.fplive.net/aljazeeraflashlive-live/aljazeera_eng_med -o - | $mp -;;
BBC_D_Pol)
$mp mms://rmv8.bbc.net.uk/news/olmedia/n5ctrl/tvseq/od/bbc2/bb/wm/video/daily_pol_bb.wmv;;
BBC_N_Night)
$mp mms://rmv8.bbc.net.uk/news/olmedia/n5ctrl/tvseq/od/bbc2/bb/wm/video/newsnight_bb.wmv;;
Cartoon_Classics)
$mp http://72.13.93.186/cartoonclassics;;
ABCKids1)
$mp mms://media4.abc.net.au/broadbandkids/20070521_1500/story1hi.wmv;;
ABCKids3)
$mp mms://media4.abc.net.au/broadbandkids/20070521_1500/story6hi.wmv;;
esac
clear
echo "Press Enter to return to List, or 1 to quit."
done
These all work at the time of posting, in th US. If your in Europe or Asia you may need a different stream.
This is not a post on rtmpdump usage, or how to find stream info. There are plenty of forums
on the internet which cover that. Find your own network streams and put them in.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.