Categories
Uncategorized

Electric Monks, Angry Radio and Honesty


Douglas Adams, in one of his Dirk Gently books, describing what an ‘electric monk’ does[1], mentions in passing that VCRs are “machines that watch TV programs so that you don’t have to” (paraphrase). As usual with Adams underneath the joke is a point well worth thinking about.

For example, in 1993, I owned a TV but that was all. OK not all, I owned shirts and pants and CDs and probably a few other nick-nacks. But as far as TV was concerned that was all. If I wanted to watch something I had to be there in front of the TV at the time it was shown.

In 1994, as well as my quota of nick-nacks and underwear, I bought a new TV and a VCR. Now I could record things when I was out. I was no longer tied to TV schedules. I needed to remember to set the video of course, which was often a faff. I also needed to make time to watch what I’d recorded – which proved a bigger challenge. Thus the madness began.

By 2006 I owned a VCR, a DVD recorder, a PC with a TV card and recording software and a PVR. I had the means and the capacity to record far more TV than I could ever watch. It was now possible to record 2 or even 3 programs and watch a 3rd (4th). The logistics of planning such viewing are however beyond challenging (e.g. record BBC1 9-9:30 on the VCR and BBC2 9-11:30 on the PVR for the film and then record Channel 10-12 for the other film…) The madness had grown.

Now, May 2007, I have a fully-functional[2] MythTV box. I no longer am tied to the schedules at all. The challenge has receded because finding and recording programs is as easy as browsing a guide (or even saying “record every Kevin Costner movie”)[3]. However this very ease of use creates its own issues. It’s so easy to record that why not record nearly everything that’s vaguely interesting? The madness has been curtailed with one hand and extended with the other.

I’m saying all this because last night, after only a few weeks (a month? more?) my MythTV hard drive is almost full. A lot of it is crap that sounded worth a look. A fair bit is stuff I’ve watched but not deleted. MythTV has an auto-expire function. You set a recording to auto-expire and when the drive is getting full it can be deleted. If there’s nothing that can be deleted eventually it’ll refuse to record new stuff – it won’t have the space to. Part of me thinks if I use this system properly I’ll be ok. I’ll keep the madness at bay.

“Properly” would be as follows:

  • Set the defaults sensibly – stuff I’m likely to want to keep (mostly movies) default to auto-expire off, stuff I’m likely to watch once and never again (reality tv, random ‘interesting’ crap[4]) auto-expire on.
  • change the defaults for anything that needs it – crap[4] movies get auto-expire on, genuinely re-watchable TV gets it off. “disposable” re-watchable TV[5] gets off too.
  • after watching anything consider whether it’s re-watchable and set auto-expire off if it is.
  • as the proportion of non-expirable recordings grows re-view them with a view to setting auto-expire or archiving to DVD[6]

Which should mean MythTV mostly manages its own space and everything is ok. At present for example about half the space is auto-expirable.

It makes a lot of sense. It’s all very plausible. But am I kidding myself? See the “madness”, what I’ve learnt from 1994 onwards about deferring watching of TV, is this: being able to record TV is simply a form of procrastination. If you don’t watch it soon after it’s recorded chances are you never will. “I can watch it any time” very often means “I will watch it at no time”.

For example, I mentioned some time ago that I was watching the reruns of Dawson’s Creek. I was using my PVR to do this. They were (are) showing them every week-day. I got behind and I now have a backlog of around 50 (some on my PVR which is now permanently “full” the rest on my Myth box). I’m actually looking forward to the end of the currently showing 6th season as that will be the end of the recordings. But will I ever watch them all?

Hence the honesty. Honesty with one’s self that is. How much of this stuff will I really watch? This is similar to the dilemma I faced with a music program I used to use called iRate radio The principle is simple – scattered across the web there’s loads of free and perfectly legal downloadable free music (demo tracks from unsigned bands mostly). Most of this is from bands you’ve never heard of. What you do is download the “player” which downloads and plays 6 starter tracks. You rate (hence I-rate – it’s not about anger) the tracks as they play. Your ratings are fed back into the iRate database and matched against users with similar ratings. Based on this you get fed new tracks (the iRate site doesn’t have the music it just keeps a record of where they can be downloaded.) – you rate those and so on… Over time the system should become more and more in tune with what you like and give you music you enjoy.

However for me it seemed this process took too long. Firstly this is because the player plays the same tracks over and over as it downloads new ones. Even with broadband I found I was listening to a few good tracks over and over and a lot of mediocre ones. It seemed slow to learn my preferences. I searched the iRate forums and found others had had a similar problem. The answer given by the software’s author was a little surprising:

The software works, people aren’t honest enough about their preferences.

“Do I really like this song or am I giving it a highish rating because it’s of a genre I like and I hope by doing so iRate will give me more songs of that genre (but better)?”

He suggested to be brutally honest and don’t try to fool the system.

To be honest I never stuck with it long enough to see if that worked but either way it made me think, and it makes me think about MythTV and auto-expiry too. How much of this crap will I really watch?

Well this post is not so much with the pithyness, let’s hope someone finds it entertaining.

footnotes:
[1]which was to believe things for us so we don’t have to and thus allow us to hold several contradictory positions at the same time. A vital ability in modern life.

[2]well ok there are glitches and it needs rebooting quite often but it basically does what it’s supposed to. Enough to be useable. Enough to prompt the kind of issues this post is about.

[3]I have no idea why anyone would want to do this either[7] but Costner was the first name that popped into my head OK?

[4]”crap” is my term for anything that I’ll watch but which has little real value. Often sensationalist, one-dimensional or of tangential interest. I’m happy to admit I watch crap.

[5]”disposable” would be stuff like Friends, Frasier etc. Stuff that’s nearly always enjoyable when it’s on but that you’re not going to miss not seeing and which is almost certainly going to be re-run.

[6]Which currently means writing the files to a data disk. MythTV has an archiving feature that produces playable DVDs but I’ve not got it working yet.

[7]I quite like Tin Cup and Field of Dreams is good but once is enough for Dances With Wolves and never is enough for Robin Hood, Prince of Thieves[8]

[8]I always tell it like this – I was unemployed (briefly) when that movie came out and thus qualified for a cheap afternoon rate of £1 instead of the £4ish that was the full price at the time. So I went along. It had Alan Rickman and one good joke[9] It had impossible but amusing geography[10]. Still, I came out thinking I wanted my pound back.

[9] Rickman’s Sherriff to a serving wench: “You my room 10:30”, to the next wench “You 10:45” (pause) “and bring a friend.”

[10]From the White Cliffs of Dover to Sherwood Forest via Hadrian’s Wall in an afternoon on foot.


Categories
Uncategorized

Took the plunge

So after being registered for ages (years I think) I finally listed some items for sale on ebay. Whenever I’ve thought about doing this in the past I’ve been a bit nervous about the process and a bit scornful of the amount of money I could make versus effort. Buying a house and the consequent purse-string-tightening has given me a new perspective on the money angle!

Basically I’ve just listed items that I got with my Dell PC that I don’t need – mouse, speakers and that graphics card. One identical to mine sold for £68 yesterday and there are ebay shops selling them for £65. Neither of which I might add include both a dual DVI and dual VGA converter which I am doing. Having said that it’s an auction and you never know. I’ll be happy with anything I get (or I would have made the lowest bid higher)

Categories
Uncategorized

Why No-one Reads My Blog

(except for M.)

One of the blogs I follow  had this this morning:

But here’s my advice, too: a blog is like a TV show. It needs a hook to get people to read it. It needs to create a compelling, attractive world (in TV terms, an “attractive fantasy”). And it needs consistency.

Got me thinking about my blog. It hasn’t got a ‘hook’ really and it’s not consistent. You’re as liable to read about very techie computer stuff, person faith type stuff or just random wibblings about my life as anything else. I suppose the truth is that I mainly write for myself – to get it out of my system, to express myself and as memories to look back on. (At least some of the techy stuff has come in useful later when I’ve needed to do the same thing again and didn’t need to start from scratch again.)

I guess my writing per se is not entertaining enough for people to be interested in absolutely anything I say. Unless they’re close friends like M.

My other big blogging sin is I ramble on at too great a length.

So – short pithy, witty posts, consistently about one topic – with a hook? Hmm. Have to mull that one over a while.

Categories
Uncategorized

…no I should sell one!

After my update last night I tried the specific steps that I had identified as my “last try” to get my video card working. They failed. As decided I was going to give up and buy an NVidia card, however I was just looking through the BIOS settings to see whether there was anything obvious that might be relevant. (Yes that is a staw I’m clutching in my pudgy little paw) Some settings in there reminded me that my motherboard has a built-in graphics card, an NVidia one. It was just a question of unplugging the ATI card, changing a BIOS setting and rebooting.

Worked first time.

First bloody time.

That was with an open source driver – another reason why NVidia has better linux support, there is an open source driver that’s good enough for most purposes. I then downloaded the proprietary driver and installed that and everything was then working.

Tested it with Myth and live TV playback is smooth. Not only was the aspect ratio correct but it actually detected the resolution of my LCD TV automatically.

Now the onboard video card isn’t as fancy as the one I removed. In particular

  • it only has a VGA connection – the other one had DVI (with VGA adapter) and S-Video. But my TV has a VGA in so that’s no problem.
  • it only has one screen – the other one is dual. This has come in slightly useful as I can connect to my TV and a monitor. So that if/when it generates a resolution/refresh rate the TV can’t handle the monitor can. But this is a minor point. If I need to debug a problem with a different video mode, I can just plug in the monitor.
  • it uses main memory for its video memory. That’s ok, I’m probably over-spec’d for memory anyway.

In general the on-board card doesn’t have as much ‘oomph’ as the ATI one but that’s still more than enough for watch TV. Maybe if I was using HD it might need it – but I’m not.

My experience generally with Myth is that you don’t need as highly spec’d a box as all that. My old machine would probably have been fine and that was 5 years old. Buying a new machine has primarily got me a bigger hard disk and quieter machine. The processor doesn’t break a sweat and I rarely use all the 2Gb memory.

So now I’m thinking I’ll sell the ATI card on ebay. It’ll be perfect for some gamer on Windows.

Categories
Uncategorized

Should I Buy a Graphics Card?

The latest on the Mythtv situation is that I’m still struggling to get the video driver working. I really need this to get the most out of Mythtv. Right now I can’t watch live TV because the frame rate is so slow it’s jerky. I can’t change aspect ratios on the fly.

So I’ve been doing the linux thing – searching the net, trying out different approaches, trying to figure why they’re not working and so on. I’ve still got plenty of avenues to follow with this however it’s getting frustrating. Now one thing I’ve realised is that ATI, who make my graphics card, have a reputation for less good support for Linux than Nvidia who are the other big manufacturer. So I could carry on trying to make my ATI card work, or I could just buy an Nvidia card and swap them. I’ve had a little look and I could buy an Nvidia card for about £35+£5p&p. If you look at it in terms of how much I’m paid that’s less than 3 hours work. And if I sell the old one on ebay I could even make that back.

But if I looked at it purely in terms of money I wouldn’t be building a myth box, I’d be sticking with my PVR or buying another. I justify it on the basis that it’s a project and therefore fun. But days and days of trying to get one thing working is not fun.

It’s interesting. I was at M’s the other night for a meal. Afterwards I offered to look at her laptop, which wasn’t connecting to the internet. I spent probably 90mins-2hours and in the end fixed it. But there was a point where I was about to give up. I actually enjoyed tinkering but I think another 30 minutes and it would have stopped being fun.

So do I buy a card or not? I think I’ll give myself a couple of hours tonight and if I can’t get it working, maybe make an order.

Categories
Uncategorized

cheese never sleeps

…apparently. I saw this on a sign in the window of a restaurant this morning. I rather like it – it has an aburdist mystery to it – so I’m going to re-name my blog in its honour.

Categories
Uncategorized

MythTV – epilogue – was it worth it?

I deliberately made this extra section so M would read it. She’ll skim, probably yawning, through the technical stuff in the other posts. I’ll make this short and non-techy. ;o)

 

So was it worth it?

 

From the point of view of what the MythTV box can do, definitely. It can do the usual stuff that a PVR can do – pause and rewind live tv, record something and watch the beginning whilst it’s still recording the end. However where it comes into its own is on finding stuff to record. You can search for stuff, so unlike my commercial PVR, I don’t have to manually trawl through the program guide to find stuff. If there are multiple showings of the same show, it can record the one which doesn’t conflict with other stuff I want to record. All in all it’s pretty cool and so definitely worth it.

 

And yet… I have now ordered a box for phase 3. Phase 3 was supposed to mean buying the pieces and building a custom box, but it turned out expensive. I couldn’t get it in under £400. Which isn’t a lot, but for a PVR it is. I can buy one like mine for £150. It has a smaller hard drive and no cool search features but still. So instead of trying to build one, I bought a PC from Dell Outlet. Dell Outlet is where you can buy returned PCs at a discount. You can get some pretty good bargains. So I ordered one. Which means if I could have lived with the smaller disc space until it arrives, I could’ve saved myself a day and a half of effort. Effort which will in some ways be repeated once I have to set up the new machine.

 

So was it really worth it? Yes – because what else would I be doing other than slobbing around actually watching these programs I’m recording! Heh.

 

Of course the next problem is whether I can easily transfer the recordings to the new PC. But that’s next weekend’s problem…

(P.S. the observant amongst you will have noticed that today’s tuesday therefore yesterday wasn’t sunday. I wrote this yesterday but am only posting it now. Because of no internet access at home.

P.P.S. Did I mention I have no internet access at home???)


Categories
Uncategorized

MythTV – part 3 What I did on my (Bank) Holiday

So finally what I did today, and most of yesterday. Which you could call phase 2½. The PC I’d used for phase 2 had a 60Gb hard drive. With stuff that was already on there and by the time I’d used the Myth box for a week I’d used nearly 2/3rds of that, leaving about 20Gb or roughly 20 hours worth of recording time. Which is OK, but after using it for real the first thing you realise is you can never have too much disc space. The whole point about MythTV is that you set it to just ‘collect’ stuff you’re interested in and watch it when you get around to it. However to really take advantage of that you want enough disk space so that you’re not juggling what to delete when wanting to record something new. In other words the more disk space the better.

 

So this weekend was all about adding another 60Gb drive. In order to do that however I needed to have a version of Linux that had something called logical volumes. It’s a feature that allows you to present two or more disk partitions as if they were one unit. Which means I could add an extra disk and have it look as if I had one big disk.

 

Unfortunately Suse 9.3 didn’t appear to have this feature. It might have been possible to add it by downloading the necessary software but I don’t have the internet at home yet (recall the stuff with the phone – not sorted yet, not quite). Also it’d just be easier to just install a version that had it all integrated and working. So the plan was

 

  • Back up data from PC including existing recordings and all the settings needed to put MythTV back the same way.
  • install the new disk
  • install a version of Linux that has logical volume support (Fedora Core 6)
  • set up a small partition for the OS, and use the rest of both disks to set up a logical volume to be used for the recordings
  • compile a new kernel – the TV card needs a later one than comes with FC6
  • install the various software that MythTV needs.
  • recover the data from the back up
  • install MythTV and configure it
  • recover the MythTV settings – this involves restoring a MySQL database backup

 

And go!

 

Simple right? Well a couple of hours on Saturday night had the backup and the new disk and OS installed. Yesterday was a slow process of re-installing software. It took 75 minutes to compile the kernel and an hour to compile MythTV – the later I ended up doing twice. About an hour to restore the backed up data. So how come it took around 12 hours to get a working system?

 

The problem was that MySQL database. Even though it was a brand new installation and I could connect using the MySQL client, MythTV itself wouldn’t connect to the database. The socket, a file MySQL uses for connections was configured to be in one place, but MythTV was convinced it was in another. I couldn’t understand this. It was a clean compile of MythTV and an installation of MySQL from the FC6 disks. It couldn’t be pointing to the wrong place. I checked the MySQL config file and that was pointing to /tmp, but every time I ran MythTV is was pointing to /var/lib/mysql. And I couldn’t find where this was set. I grep’d the entire source tree of MythTV and couldn’t find it. How could that be?

 

In the end I had to grep my entire hard drive to find it. I realised that I’d copied the MySQL config as part of my backup. That was the one that pointed to /tmp. The default one that came with Fedora pointed to /var/lib/mysql. But it’s a config setting so it should be changeable right? Well MythTV uses a programming system called QT and QT has a MySQL plugin library. So it seems that MythTV calls MySQL through this library rather than directly. Fair enough – but it’s this library that’s pointing to /var/lib/mysql. As far as I can tell it’s hard-coded i.e. there’s no way to tell the QT to look elsewhere. This seems daft to me. So daft that I hope I’m wrong, that it can be configured. But so far I’ve not found a way.

 

Anyway I just reset the MySQL config file to point to /var/lib/mysql and everything worked. Hoo-(finally)-ray!

Categories
Uncategorized

MythTV part 2 – A Phased Approach

OK, so you’ve got the background to how I got myself a Linux box with a working TV card – what’s that got to do with MythTV? I think I said previously that I’d been thinking about MythTV for a while. The thing that really made me want to do it was my new house. However that’s the same reason that made me a bit short of cash – so going out and buying the hardware for a custom-built myth box wasn’t realistic/wise.

 

Then it hit me one day that I already had 90% of what I needed. I had a Linux box with a TV card that worked. So enter the big idea – a phased approach.

 

Phase 0 – Do the research. Figure out exactly what software I need.

 

Phase 1 – Install the software on my existing machine.

 

Phase 2 – replace my aging analogue TV card with a freeview capable one.

 

Phase 3 – buy the parts and build a custom box for a really good Mythtv box.

 

Phase 0 I kind of did though I could have done more. My main goal in phase 0 was that I knew I’d probably be installing over a weekend and that, as we know, at present means no internet access. Which means I didn’t want to be stuck half-way through but have that one tantalising problem left to solve, or one missing prerequisite program. On that score I succeeded phase 0.


Phase 1 was what I had done last time I blogged about MythTV. It showed the possibilities of the software. But the quality of the picture, and the size of the recordings made it nothing more than a proof-of-concept.

 

Phase 2 came last weekend when I spent £60 on a Hauppage Nova T 500 card. I’ll pause a moment to say how good this card is. It contains not one but two Freeview tuners – which for the price is very good value. It’s well supported under Linux. True, I had to compile a new kernel but that was straightforward and whilst it took time, it was no three-day marathon. Within a few hours of installing the card I was using it to watch TV using some very basic tools. Once I’d re-configured the MythTV software I had something which was actually useable as a PVR. And I did use it. I started recording whole programs, not just ‘tests’.

 

The reason it was so useable was because the Nova T card resolved the two problems with the older card. First since it is Freeview and Freeview channels are natively mpeg2 streams, the file sizes are inherently smaller. (with analogue cards you typically re-encode the files to make them smaller, but with my old PC the CPU was too slow to do that and do, well, anything else). Second, since it’s digital, if the channel tunes at all it’s as good as it going to be. The other fact is that because it’s actually two tuners then it’s actually useful because you can record two channels at once, or watch one and record another.

 

So that was last weekend. More on this weekend in part 3.

Categories
Uncategorized

MythTV (part 1 as it turns out)

So what did I do with my Bank Holiday long weekend? Well the first day and a half I did what I always do – slob around the house and watch TV etc. The rest of the time, aside from a little eating and sleeping, has been taken up with re-configuring my MythTV box.

But let’s take a step back and review – cos last time I blogged about MythTV I was rather brief.

 

So let’s go back to… to this entry. Or in fact a little further. Sometime in 2002/2003[?] I bought a Hauppage WinTV card. From that point on I was interested in using my computer to record programs from the TV.

Although I had the software to do timed recordings, to make my computer a PVR, I never did that as it meant leaving the computer on all the time and the software wasn’t that reliable. So I mostly used it to record programs and make VCDs and SVCDs, and later DVDs. By the time I wrote about changing to Linux and nearly changing back, I had been doing this for a while and doing it quite a lot. (I still have nearly two series of West Wing and various movies on S/VCD).

 

One day my computer (running Windows XP) started behaving strangely. I recall I rebooted it once and it got worse. I rebooted a second time and it wouldn’t boot at all. This was obviously some form of malware – virus, whatever. But my computer had a firewall, up-to-date anti-virus and all the latest security fixes. I know that’s no guarantee but it angered me that I could do everything right and still have my system unusable. So I decided to switch.

 

I didn’t do it straight away, impulsively, as I am prone to do sometimes. I used my internet connection at work to find out something – could I use Linux to do all the things I did under Windows? Well I already knew I could do things like web browsing and email. I could do the odd bit of word-processing. The big question was whether I could use my TV card. Could I a) watch and record programs under Linux and b) do all the conversion, editing and manipulation needed to generate DVDs etc? Under Windows I’d amassed an impressive array of (mostly free) programs for manipulating audio and video. After brief googling I found that others were doing it with the same TV card as me and that there were similar programs available – which must mean it’s possible.

 

So I booted my computer using a Linux ‘live cd’ (i.e. running from the cd without using the hard drive). Using that I was able to back up data from my hard drive. Then I installed SuSE 9.3 from a cover disc from some magazine. That was the easy part. Finding and compiling the programs to replace my Windows tools was only moderately harder. (Mplayer is great and will nearly always compile, it’s whether it compiles with all the various formats supported that’s the trick. Still mostly that’s just a time investment – you try to compile, it fails, you figure out there’s a library you need, you find it, install it, re-compile – lather, rinse, repeat.)

The hard part was getting the TV card to work. Although I had done my (minimal) research before switching, I’d found that the instructions I’d found didn’t work. It took me three days of it almost working but not, of reboots, of compiling kernels and kernel modules, of figuring out why said modules wouldn’t load, to finally get it working. It took another couple to get all the channels tuned in and figuring how to record.  It was during this  time that I almost went back to Windows.

 

Oh dear. As usual what was meant to be a bit of background has taken over. I feel a part 2 coming on…