Got Slack?

The upgrade to Slackware 10.1 seems to have gone smoothly. Once again the major glitch was due to a new version of Perl, which required reinstalling SpamAssassin and a handful of modules from CPAN, thanks to dependencies on a version-specific pathname. And, I had to rebuild a new kernel, since the default generic one didn’t include the RAID support needed for my root partition. (Edit: Oh it also appears to have broken my slrnpull runs by overwriting the config file. That’s partly slrn’s fault for putting a config file under frigging /var instead of /etc though…)

Otherwise though, there’s nothing all that revolutionary about this version of Slackware. Just a bunch of minor version updates of some packages.

So, one might wonder, why am I sticking with Slackware anyway?
Continue reading “Got Slack?”

The Right Tool

Although I have a working process for recording and burning DVDs, I was still a little unhappy with some of the steps. In particular, ‘replex’ is apparently picky about audio stream headers and would often complain or crash if it couldn’t detect things the way it wanted to. When editing out commercials, I’d often have to experiment with different starting points for the first cut until ‘replex’ was finally happy.

Fortunately I finally got around to trying avidemux as an editing tool, and it’s made things much easier. Instead of marking off the sections you want to keep, as in ‘gopchop’, you mark sections to cut out and it applies the cut immediately, which makes it easier to see how the final result flows. It can requantize MPEG video to shrink it a bit, which is useful when I accidentally record a long movie at a high bitrate and it winds up slightly too big to fit it on a DVD. And, it’ll reindex the MPEG stream and insert the navigation packets, which means I no longer need to use ‘gop_fixup’ and ‘replex’ at all — ‘dvdauthor’ will directly accept the stream avidemux produces.

Now the whole process is simply:

1) Record the show with MythTV.

2) Load the recording into avidemux, edit out the commercials, and resave it.

3) Run dvdauthor and mkisofs to create the ISO image, and burn it to a disc, same way as before.

(Edit: Except that the title I tried it on tonight wound up with a/v sync problems… Bah. Back to the old method for now.)

Yarrrr

There’s been a bit of a fuss kicked up over a NYT article about TV piracy, particularly among the MythTV community. Although the fuss might be a little overblown, there are a couple quotes which come across as a little misguided:

The members of the MythTV community, who now do not have to pay monthly fees to rent set-top boxes or digital video recorders, have plenty of more mischievous company in trying to outwit the television industry. Millions of viewers are now watching illegal copies of television programs – even full seasons copied from popular DVD’s – that are flitting about the Internet, thanks to other new programs that allow users to upload and download the large files quickly.

What, people who are using their PCs as TV recorders are suddenly rubbing elbows with DVD pirates? Although they don’t explicitly come right out and equate the two groups, they’re putting them uncomfortably close together here.

And horror of horrors, we’re not paying for commercial DVR boxes! How dare we use our own labour instead of paying a company to assemble them for us, and damn our ability to conjure up the parts out of thin air. Oh wait, I guess we *do* wind up paying somebody for those parts… And it’s hard to blame people for choosing to use the free TV listings that are already published on the net by companies in the TV industry itself instead of paying for a subscription service. You can’t give something away with one hand and then slap people with the other for actually taking it.

Not surprisingly, the repercussions – particularly the rapidly growing number of shows available for the plucking online – terrify industry executives, who remember only too well what Napster and other file-sharing programs did to the music industry.

Yeah, the poor, beleaguered music industry went on to develop new methods, break records and increase sales. How horrible it would be if the same thing were to happen to TV!

Who Knows

I like to consider myself semi-competent at these newfangled computer-thingies, but I keep finding myself running into problems that are slightly beyond me.

Occasionally, while watching recorded shows in MythTV, my Linux box will just freeze up and has to be manually reset. It’s *probably* a problem with the Nvidia driver’s XvMC mode, since it never happened when I was using the plain non-Nvidia Xv display mode instead. Maybe. Or maybe I simply hadn’t used the old Xv mode long enough and didn’t see it occur by pure chance and the problem lies elsewhere. Maybe it’s overheating, or there’s memory corruption somewhere. Who knows…

While playing World of Warcraft, I’ll randomly get booted back to the login screen. Is it the server being flaky again? Could be, they’ve had a lot of trouble lately, except that it doesn’t happen to others at the same time. Something on my end then, perhaps. Video driver problems, maybe? They’ve been responsible for a lot of other problems, like the instability I was seeing in KotOR. Unfortunately it’s not clear, as I’m not getting the usual driver failure message in this case. Just a plain bug in the game then? Who knows…

And now the hard drive in the XP box is acting strangely. Now it’ll occasionally spin down for a second or so and then spin back up again, as if it had lost power for that second, and then Windows freezes up. Usually when I’m trying to log in to World of Warcraft, for some reason. A problem with the power supply, perhaps? Well, I’ve moved it around to a few different cables now and there’s no difference, and it’s a fairly-new power supply with plenty of spare wattage. Maybe Linux would give me more detailed errors — except that when I boot off of a Linux live CD, the drive behaves itself perfectly well. And after rebooting back into XP, it’s been continuing to behave for another day or so. Except that it occasionally makes piercing high-pitched whines, too. So, is my drive about to fail, or is the power at fault, or is it some Windows or WoW thing?

Who knows…

Oh So That’s How…

Despite having used ‘vi’ and its variants as my primary editor for quite a while now (ever since it was the only editor that ran well on the university’s old Sun 3s), I’ve never really bothered to learn many of the ‘advanced’ tips and tricks. Insert, delete, copy, and paste always seemed to be good enough.

I thus only just recently discovered how to indent and unindent without having to manually insert or delete spaces repeatedly. I really should have earlier since it comes up quite often while coding, but there’s always that short-term laziness…

Anyway, in ‘vim’ at least, the useful controls are:

“>>” – Indent the current line. Use a numeric prefix to apply it to a certain number of consecutive lines.
“<<” – Unindent the current line
“>%” – Indent the entire current code block. This is the really useful one, since quite often you’re cutting and pasting a block of code into a place at a different indentation level, and you want to shift the whole block. The cursor has to be positioned at the start or end of the block, like with the basic “%” command.
“<%” – Unindent the entire current coding block.

And you can also select a region with the mouse or Shift-V and use “>” and “<” alone to indent or unindent the selected block.

Somewhat related to this is the “=” command, which modifies the indentation to match up with how the current syntax mode would have indented it based on its own built-in rules and environment settings.

“==” – Automatically adjust the indentation of the current line.
“=%” – Automatically adjust the indentation of everything within the current code block, including other blocks within this one.

And again, selecting a region and using “=” alone will apply automatic indentation to the entire region.

Ordering Off The Menu

It took a bit of fiddling, but I finally have DVD menus working for the TV shows I’m capturing. There are tools available for putting together the menus interactively, but I wanted something a bit more automated, and it’s not like I’m going to spend a lot of time carefully painting beautiful pictures for each one.

Now I can finally start burning TV episodes, since I didn’t want to have them all as one big stream where you’d have to fast-forward or rewind to the right starting point…
Continue reading “Ordering Off The Menu”

I Can See Clearly Now The RCA Is Gone

While I was picking up a new network card, I figured I’d finish converting all of my video cabling over to S-Video. I’m running everything through a switcher now, but all of the inputs have to be of the same type, so they were all still using composite/RCA for lack of enough cables. The PS2 was the real sticking point, since it only came with a composite cable and needs a special plug, and the official Sony S-Video adapter was $50 when I checked on it. Nuts to that. Fortunately, this time I found a third-party cable that was much cheaper.

And wow, what a difference it makes. I’d never really taken a close look before, since it’s sometimes hard to tell what the difference is, but GTA:SA makes it blatantly obvious. All of the fine print on the loading screen is clear and readable now instead of blurry, the little mini-map in the corner is sharp now, so it’s easier to tell where I am and what the markers are, I can finally clearly see the ammo numbers, and it just seems sharper and brighter overall.

Component inputs on an HDTV would be even better, but then I’d be spoiling myself…

Curses!

A couple days ago I was bored, so I whipped up a Firefox extension that made it a bit easier to search the PoE forums using a search engine made by one of the other users.

And then a couple hours later someone else posted that he’d been working on something similar and was just about to release his version. And his does a much better job. And mine appears to be a bit buggy.

Damn. Oh well, at least now I can pretend to be a Javascript and XUL expert…

The Final Piece

I also finally got the replacement video card I had been waiting for, and now I can say that the PVR is truly complete. The TV-Out works fine, with no colour problems, and there was even an unexpected performance boost. The old card didn’t support the XvMC library for the Nvidia drivers but this one does, and CPU usage during playback dropped from 80-90% down to 45-60%, making playback smooth even with other stuff going on in the background.

Now at last I can just sit back in the easy chair with the remote and treat it like just another appliance, and not just a tacked-on feature of the computer. Even if it really is…

No Photos Please

The new iPods are out and…I don’t particularly care. I don’t really feel the need to carry a ton of photos around, and although the black look of the U2 edition *sounded* intriguing, the red click wheel is just too horribly ugly to me.

This now makes me even more tempted to pick up one of the regular 4G iPods though, now that I know it’s not likely to be imminently obsoleted by something vastly better. It’s down to either that or the iRiver hard drive player, and although the iRiver has a couple more features, it’s still slightly more expensive and the iPod/iTunes integration is a big plus and iTMS will be coming to Canada soon…

Not Yet Feeling The Burn

Yay, my DVD burner drive arrived today. Except that I don’t have any videos properly DVD formatted for burning yet. Or any discs to burn them to. Or any software to burn them with, since it’s an OEM drive… I think I was expecting to do my burning in Linux, like I did with all my CD burning, but then I wiped the system and didn’t reinstall Linux…

Oh well, it’ll get sorted out in time, and I needed a new CD drive anyway. My old HP 9900ci was getting flaky — it couldn’t even reinstall Battlefield 1942 without randomly failing partway through, so I had to mount the discs on the Linux server, copy the files over, and install them all straight from the hard drive.

I wound up getting a dual-layer-burning drive anyway, even though I wasn’t specifically holding out for one. The dual-layer media’s still expensive right now but should hopefully drop, this drive got great reviews, and it was still dirt cheap at just over $100 CDN, so what the hell.

And I don’t even have enough space for my existing DVD collection… :-P

Forgot About The Brakes

When I went to upgrade my server to the 2.6.9 kernel (which it turns out I can’t use at the moment anyway for other reasons), I discovered that I still had some debugging options enabled in my current kernel config, from a problem I had over a year ago. OOPS.

I wouldn’t have expected it to make *that* much of a difference, but after recompiling 2.6.7 without them set I can now play back recordings in MythTV at full speed, using around 80% CPU. It still stutters slightly whenever something else kicks in, like a web server hit, but it’s still a vast improvement.

Now I just have to solve the frigging B&W video problem. Hopefully a new-but-cheap GeForce 4 that’s on the way will fix that…