]> git.donarmstrong.com Git - bin.git/blob - watch_tv
add common subscriber
[bin.git] / watch_tv
1 #!/bin/sh
2
3 ZOOM=3
4
5 if [ "$1" == "bloomberg" ]; then
6     FEED="-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/"
7     ZOOM=2
8 elif [ "$1" == "cnn" ]; then
9     FEED="-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"
10     ZOOM=2
11 elif [ "$1" == "cspan3" ]; then
12     FEED="-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/"
13 elif [ "$1" == "cspan2" ]; then
14     FEED="-V -v -r rtmpt://cp82347.live.edgefcs.net:1935/live?ovpfv=2.1.4 --tcUrl rtmp://cp82347.live.edgefcs.net:1935/live?ovpfv=2.1.4 --app live?ovpfv=2.1.4 --flashVer LNX.11,2,202,238 --playpath CSPAN2@14846 --swfVfy http://www.c-span.org/cspanVideoHD.swf --pageUrl http://www.c-span.org/"
15     ZOOM="3 -af volume=-200"
16 #    FEED="-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/"
17 else
18 #     FEED="-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/"
19 #     FEED="-v -r rtmp://fms.c-span.org:1935/fastplay?ovpv=2.1.4 -y CSPAN1@14845 -W http://www.c-span.org/cspanVideoHD.swf -p http://www.c-span.org/Live-Video/C-SPAN/"
20     FEED="-V -v -r rtmpt://cp82346.live.edgefcs.net:1935/live?ovpfv=2.1.4 --tcUrl rtmp://cp82346.live.edgefcs.net:1935/live?ovpfv=2.1.4 --app live?ovpfv=2.1.4 --flashVer LNX.11,2,202,238 --playpath CSPAN1@14845 --swfVfy http://www.c-span.org/cspanVideoHD.swf --pageUrl http://www.c-span.org/"
21 fi;
22
23 rtmpdump $FEED | mplayer -xy $ZOOM -