Wednesday, 22 April 2009

PS3 frontend to the Mythtv with Mediatomb




Well with Sky+ HD roaring away in my living room I have not bothered to do much with my mythtv lately.
I kept looking at my PS3 and thinking hmmm... what can i do with that.

Well I decided to have a go at hooking it up to my mythtv.
Actually it was easy.

I have a nova-t card installed so the recorded programs are mpeg streams. I have done no extra transcoding. I also have a load of xvid and divx movies in the videos folder.

in short follow the instructions here to get mediatomb installed.
Basically its : sudo wget http://apt.mediatomb.cc/key.asc -O- -q | sudo apt-key add -
sudo apt-get update
sudo apt-get install mediatomb
sudo vim ~/.mediatomb/config.xml

look for this line
Its about line 23 (in vim type 23 then capital G to Goto that line).
Change the "no" to "yes".

while you are there do a search for extension-mimetype
Add these lines right after



That should allow us to play Divx Xvid and mpg's.

After installation run : mediatomb
in the window it will give you the address and port to connect to something like
http://192.168.1.69:49152

point your browser to that address and you can see the main page.
On the top left click on Filesystem.
Navigate to /var/lib/mythtv/recordings.
On the top right click on the
Plus sign() then click on the plus sign with the arrows(

) to set the refresh times.I set it to TIMED,FULL,RECURSIVE and I changed the time to 60 seconds while i was fiddling with it then changed it back to 1800 when i was happy it was working.

Repeat for /var/lib/mythtv/videos.
You can do music and pics also but I did not bother.

Go back to your terminal window and type ctrl +c to kill it.
now type "mediatomb &" to run it as a background process.

You can now exit your terminal.

Fire up your PS3 and go to videos. You should see the mediatomb icon and you can now enjoy all the movies and recordings.

One extra thing I did was to install mythrename.pl and run it as a cronjob at 3AM.
My crontab -e
# m h dom mon dow command
0 3 * * * /bin/mythrename.pl

This will rename all the recorded program in myth so that instead of 5163_20090419070000.mpg you get "Formula 1- The Chinese Grand Prix - 2009-04-18, 6-00 AM - Qualifying.mpg".. Which makes it a little easier to find.

Works a treat now!