Goodbye Vista, Hello Mac

Well by trade and by choice i’ve been a Linux user/hacker etc, since early 1996 (starting with Lasermoon FT, then quickly finding slackware, then redhat, Suse, Gentoo, Ubuntu). BUT, even today I still dont really gel with Linux on the desktop. For a server I think of nothing else…but even im willing to admit that for desktop Windows XP has been easy enough and well supported enough to be my desktop OS of choice.

But no more, I recently made the BIG mistake of buying my wife an HP laptop with Vista installed. The machine had a dual core AMD cpu, 1GB of ram….and it runs Vista like a Pig. So one 2GB upgrade later and it still runs vista like a Pig, my wife is about ready to throw the machine out of the window. So I started consider alternatives…. one “hackintosh” install later on my PC and I started to become hooked. Mac OSX is the future for me…. So now im saving for my 24″ iMac. The beauty for me is that command line my life i so much like working with Linux… for my wife its an OS that doesn’t cause her to want to damage the computer! Yes, it cost… is it perfect, no…. but damn, life is too short to continue down the path of Windows XP.

Freetrack and FS2004

So ive been a microsoft flight simulator addict for a few years now, its really the only game/simluation I play. Well a while back I found out about a product called track IR, seemed cool, but the price tag seemed a little crazy! But I loved the idea of my head movement controlling the onscreen view. So recently I discover an awesome freeware solution called freetrack. It requires the development of a small 3 LED display that you need to mount on a baseball hat or headset. But the pricetag is perfect. So I hope to make up one of these to test it out. I might need to practise my soldering, but it shouldnt be too bad.

what this space for photos and review to see how it goes.

Why isnt my PSP more use?

OK, so the PSP is in theory an amazing little device,  widescreen, wifi enabled blah blah blah, ive had mine since they were first released….. but…. I just cant figure it was the cool device I hoped for….  I bought a 512MB card,  and I know I could waste a load of money on a larger card now…but all in all the PSP is just not the cool device it should be.  I think m problem is that im not that into games, and its not the all kicking multimedia device I ever hoped.

XBMC – best thing since sliced bread.

If you have a few buck burning a hole in your back pocket and want a great set-top box for playback of audio and video then look no further than an Original Xbox. These can be bought pretty cheaply now that the fanboys are all moving to next gen consoles. I have a couple of them (both with the DVD remote add-on). It takes a bit of hacking but usually a friend of a friend of friend knows someone who can help you hack these things. I figured it myself reading Wikis and then managing to purchase an original Mech Assault game….

anyway after the hack unlocked my Xbox, I upgraded the drive to a 120GB unit, and installed XBMC (Xbox Media Center). This is an amazing solutiuon and really turns the Xbox into a settop powerhouse. I am now able to stream my DVD collection (converted to Xvid format) all stored on my server downstairs… my MP3 collection can be streamed. I can stream youtube videos, stream my mythTV recordings etc… its amazing.

Perhaps the only downer is that it doesnt have the horsepower to playback HD recordings, but with component cables I have XBMC running in 1080i on my TV and all Video and DVD playback upsamples just fine :)

If you have an Xbox, and a mind to hacking it… do it today!!

Im so “with it”

So I finally bought an iPod… oh yeah im such a technology leader! and last week I posted my first ever Youtube video…. cutting edge stuff eh! :)     My first ever youtube vid

MythTV and iPod – part 2.

Ok, so my previous post didnt exactly add any technical details on how I got my iPod classic working with mythTV. Personally I hate that, it took me a fair bit of googling to get this working and I too got stuff with too many useless blogs with no explanation on how they got it working. So here is some more details on what I did, its not exhaustive, but contact me if you want to know more:
My server runs Ubuntu6.06 LTS server. MythTV 0.20.x, backend only and mythweb.

first off I followed the instructions at www.mytht2ipod.org I ensured I got nuvexport and ffmpeg installed via apt-get and the ubuntu repositories. But of course none of it seemed to work correctly. So……

I grabbed the latest nuvexport Then tried to manually export to ipod. But of course it then informs me that ffmpeg needs to be newer than the one isntalled by Ubuntu. So now I download the latest from SVN

svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg

Now I try to build it, this involves installing libs (e.g sudo apt-get install libx264) and then building ffmpeg

./configure --enable-gpl --enable-pp --enable-zlib --enable-libvorbis --enable-libogg --enable-libtheora --enable-liba52 --enable-libgsm --enable-libx264 --enable-faad --disable-debug --enable-libxvid --enable-libfaac --enable-pthreads --enable-libmp3lame --disable-vhook --prefix=/usr

One thing to note is that ffmpeg at some stage in the last year or so has changed the way it references most of the libs. You used to do  –enable-aac  now its –enable-libfaac  and so on for the 3rd party libs to be built in.

Sooo…. turns out the version of libX264 included in the Ubuntu universe was too old to convert files correctly for iPod, so I download the latest x264 driver

svn co svn://svn.videolan.org/x264/trunk x264

Then it turns out I had to install from tarball the latest version of YASM, to build libx264 correctly. http://www.tortall.net/projects/yasm/

Now, I compiled and installed YASM, NOW you can compile and install libx264, now you can compile ffmpeg that will support iPod correctly.

Almost there, well not quite, now nuvexport wont call ffmpeg correctly, so go back to the nuvexport site and apply the patches listed there so that it references the libs correctly. I cannot find links to the patches right now…. but once these are applied it will call ffmpeg correctly, again this is to do with the renaming of the ffmpeg flags.  nuvexport internally calls ffmpeg to detect which 3rd party drivers it supports,  so the new ffmpeg is reporting it supports  libx264   but nuvexport is looking for x264 not libx264. The patch fixes that.

Sooooo now myth2Ipod didnt really work still, although reading through the code it did all the rss feed stuff fine and I didnt fancy writing my own code, so I just modified the myth2ipod code to call nuvexport to export to nuvsql

$nuvoptions ="--mode=nuvsql --nice=19 --cutlist --nodenoise --nodeint
erlace --nomultipass";

$cmd = "/usr/local/bin/nuvexport --chanid=$chanid --start=$start $nuvoptions --filename=$chanid\_$start.temp --path=$feedpath";

$cmd = "/usr/local/bin/brian2ipod $feedpath$chanid\_$start.temp/$chanid\_$start.mpg $feedpath$chanid\_$start.$portable.mp4";

the brian2ipod script simply then converts the mpg2 file dumped by nuvexport into mp4 format.

#!/bin/bash
#rm -rf tmp.mpg* 2> /dev/null
#mythtranscode --mpeg2 -i $1 -o tmp.mpg
/usr/bin/ffmpeg -i $1 -acodec libfaac -ac 2 -ar 44100 -ab 128k -s 320x240 -vcodec libx264 -b 300k -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me umh -subq 5 -trellis 1 -refs 1 -coder 0 -me_range 16 -g 300 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 300k -maxrate 300k -bufsize 300k -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 15 -qmax 51 -qdiff 4 -level 30 -aspect 320:240 $2
# rm -rf tmp.mpg* 2> /dev/null

Easy Huh! its very cool now its running, but basically you have to rebuild ffmpeg, libx264, nuvexport and then hack myth2ipod to make it work. Is it more hassle than its worth, I dont think so. I really love these features on my iPod…. now if only they could fix the iPod bugs to make the experience even better!

Ipod classic – great but buggy

Well I finally figured I should get an ipod, and finally the iPod has enough storage to make it useful, so im now the owner of a 160GB Classic…but my gosh is the inbuilt OS buggy, pictures dont show correctly, syncing takes and age, same name albums merge playing from coverflow….. hopefully these things will get fixed, but what a downer from waiting to long to get one.

More about my MythTV setup

Ive been running a MythTV based in house media streaming solution for about 2 years now.

My initial machine was  dual P3-600 based machine with 120GB of disk. I installed Ubuntu 5.10, set up TV out on a geforce 4 GFX card, bought a Hauppage PVR-150 TV tuner….  and it was up and running.  However after 1 year having a server grade machine in the lounge on 24 hours a day was a little rediculous.

So the next machine was purchased a year ago.  A dual core Intel server with 1GB ram. This is installed with Ubuntu 6.06 LTS, and MythTV,  Also MythWeb for easier control via the Web.  The server also contains a software RAID-5 setup with 1TB of diskspace, this stored my home DVD collection converted to xvid format.

The front end by the TV is now a modified Xbox running XBMC (Xbox Media Center)  that can stream myMP3 collection and DVDs from the server, and all the mythTV recordings.  All via a component cable output to my HDTV….  the recordings mgiht only be SDTV but all menu etc are HD, and all playback upsampled to 1080i.

MythTv and my iPod – TV bliss!

OK, so ive been running MythTV for 2 years now. My Myth server has been enhanced, updated and rebuilt a couple of times during that period. But more on that later.

So last week I finally joined the iPod age with the purchase of a nice big 160GB iPod Classic…. and its my first ever iPod. (yeah, welcome to this century..). So I figured there must be a way to get my MythTV recordings onto the iPod. Perhaps using the podcast functionality was the answer. Well low and behold the solution already existed in the form of myth2ipod. However in the ever changing world of linux and mythTV the script wouldn’t work on my setup.

I use Ubuntu 6.06 LTS server to run my MythTV server and it didn’t bring down a version ffmpeg that worked with nuvexport. So, i compiled a version of ffmpeg from source to work nuvexport, still no joy. So a bit of manually reworkingt he myth2ipod script and creating my ffmpeg shell script its all now working. Easy huh!!

But the concept is great and worth the hacking to make it work. From mythweb when I set a program to record I can set the “covert for iPod” flag, so for that particular program it will make an iPod ready version…it will then publish it on my in house RSS feed. then whenever I sync my iPod with iTunes im subscribed to my podcast RSS feed and it automatically downloads the unwatched TV episode to my iPod so I can view it on my lengthy commute.