Monday, November 19, 2007

Playing MMS content using mplayer in Linux behind proxy

It took me a month of fiddling to figure this out. Finally succeeded with
thanks to: How to play ASX using Mplayer
Ubuntu Gutsy
MPlayer

Here is what I did
1. created /etc/mplayer_proxy.sh and chmod +x
/usr/bin/mplayer http_proxy://proxyHost:proxyPort/$*

2. created /etc/mplayer.radios with following content
alias 774='/etc/mplayer_proxy.sh mms://media3.abc.net.au/774melbourne'
alias mmm='/etc/mplayer_proxy.sh mms://66.70.119.243/ads/slate_intro04_200.wmv'
alias surya='/etc/mplayer_proxy.sh mms://87.106.139.40/surya_tv_streaming_only_on_keralabeats'
alias hitfm='/etc/mplayer_proxy.sh mms://wm-live.abacast.com/arabian_radio-hitfm-24'
alias classicfm='/etc/mplayer_proxy.sh mms://media3.abc.net.au/classicfm'
alias foxfm='/etc/mplayer_proxy.sh mms://66.70.119.243:81/FoxFM'
alias news='/etc/mplayer_proxy.sh mms://media3.abc.net.au/news-radio'
alias jjj='/etc/mplayer_proxy.sh mms://media3.abc.net.au/triplej'
alias vegafm='/etc/mplayer_proxy.sh mms://202.58.32.105/Vega915'
alias livemal='/etc/mplayer_proxy.sh http://bluedog.wavestreamer.com:5108/'

3. source /etc/mplayer.radios from /etc/bash.bashrc

I am well fed with these !!