A few things, mostly technical notes...

Saturday, October 13, 2012

mplayer and vdpau



So I was just using mplayer -vo vdpau... and here's my cpu util:

 PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 6172 XXX      20   0  155m  50m  14m R 22.9  2.5   0:06.86 mplayer
 
Thats when I stumbled upon this ArchLinux Wiki post, and added these to my ~/.mplayer/config file:

vo=vdpau,
vc=ffh264vdpau,ffmpeg12vdpau,ffodivxvdpau,ffwmv3vdpau,ffvc1vdpau, 
 
And now,
  
PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
6397 XXX      20   0  157m  51m  15m S  2.3  2.6   0:03.73 mplayer
 
my %cpu dropped from 22.9% to 2.3%..! Amazing, isn't it?


Alternate link

Saturday, June 23, 2012

script to download latest firefox aurora

script to download latest firefox aurora and extract to mydir
wget -q "https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-aurora/?C=M;O=A" -O - | awk '/en-US.linux-i686.tar.bz2">/ {gsub(/href="/,"",$6)+gsub(/">.*/,"",$6); print "https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-aurora/"$6}' | while read a 
do  
 wget -c "$a" -q -O /tmp/firefox-aurora-en-US.linux-i686.tar.bz2 && cd mydir  && tar -xvjf /tmp/firefox-aurora-en-US.linux-i686.tar.bz2 
done

script to download latest firefox nightly build




script to download latest firefox nightly build and extract to mydir

wget http://nightly.mozilla.org/ -q -O - |awk '/en-US.linux-i686/ {gsub(/href="/,"",$2)+gsub(/">/,"",$2);print $2}' | while read a 
do   
   wget -c "$a" -q -O /tmp/firefox-nightly-en-US.linux-i686.tar.bz2  && cd mydir && tar -xvjf /tmp/firefox-nightly-en-US.linux-i686.tar.bz2 
done 

Thursday, May 24, 2012

xbmc as myth frontend on macosx

xbmc these days can function as mythtv frontend. I found xbmc easier to setup on other OS'es other than my regular front and back ends.

For instance, my regular mythtv back and front ends are Ubuntu lucid LTS (10.04); but I also have a macbook pro (running mac osx), and a Lenovo U400 running Ubuntu precise.

Here's how I setup xbmc as my mythtv frontenv.

Assumptions:

My myth backend is 192.168.1.100

Step  1.

Install xbmc. Refer http://xbmc.org/download/ on howto, for your platform.

Step 2.

Install MythBox addon. Go to Videos -> Add-ons -> Get More.. and select and install MythBox.

Step 3.

Go into MythBox to where you can define the MySQL details.  Here's how I've configured mine:




Step 4.


Spawn xbmc. Before we do that, lets route 6543 traffic to the myth backend server.

(Note: you can use socat easier than ssh, there is an example elsewhere in this blog to use socat)

mac


$ /usr/X11/bin/xterm -title "Close_me_after_myth" -e "ssh -c blowfish -L 6543:localhost:6543 192.168.1.100 cat - " 


linux
 
$ /usr/bin/xterm  -title "Close_me_after_myth" -e "ssh -c blowfish -L 6543:localhost:6543 192.168.1.100 cat - " & 


Start MythBox, enjoy



Followers


Creative Commons License
This work is licensed under a Creative Commons License.