Sorry, you need to enable JavaScript to visit this website.

HOWTO

Homer's picture

Return to Castle Wolfenstein on GNU/Linux

Like most iD titles, RTCW was ultimately released under the GPL, and is thus available as a GNU/Linux native game. Installing it under Gentoo is as simple as "emerge games-fps/rtcw", but unfortunately the game itself no longer works in modern GNU/Linux systems. This is only to be expected with proprietary software that becomes abandoned, and would affect the operation of that software on any OS, but naturally it doesn't have to be that way with Free Software, which can be revived at any time, even years later.

Homer's picture

Video Fixer

Here's a script I wrote to "fix" videos I ripped from DVD/BD, where the rip is too big to fit on a FAT32 formatted flash drive (my Smart TV doesn't recognise NTFS or ext2/3/4 filesystems), has the wrong resolution/aspect, and/or possibly contains multiple language audio tracks I don't need (my Smart TV also doesn't play DTS audio).

Homer's picture

High quality MPEG-4 transcoding with Mencoder

Rather than just provide a script, I've decided to present this solution as a sort of informal thesis, so hopefully it will help others to reinterpret it for their own purposes. As of 10th Dec 2011 this article is still a work in progress, so if it seems incomplete then please have patience, and come back later.

Objective: Transcode video from any source to MPEG-4 ASP (note: this is DivX 4/5, not MPEG-4 AVC/H.264), for playback on most standalone devices, keeping the file size reasonable, whilst retaining as much quality as possible, but without any regard to transcoding time or CPU utilisation. In this case I'm also going to hardsub (render subtitles directly onto the output video) a SRT subtitles file previously ripped from the source's forced subs (subtitles that only appear when foreign language is spoken, in a soundtrack that is otherwise in your locale's language). You can rip your own subtitles files using SubRip (Windows, also works under Wine) or Avidemux (multi-platform), or just download them from places like opensubtitles.org.

Note: The method used here is extremely CPU intensive, which may cause your PC to die of exhaustion, and you to die of boredom. You have been warned. :) However, the result is worth it IMHO, as the video quality is exceptional. H.264 generally produces better results at lower bitrates (or so Messiah Jobs keeps telling us), but unfortunately it's not compatible with nearly as many devices as DivX/XviD (e.g. most Smart TVs will play MPEG-4 ASP DivX/XviD files, but not MPEG-4 AVC H.264 files, mainly because H.264 is infested with a ton of nasty patents that make it difficult and expensive for manufacturers to implement). Also for compatibility reasons I've chosen the AVI 2.0 container format, and forced the FourCC from FMP4 to DX50.

Homer's picture

Give Linux a Windows-style "Registry"

The Ultimate Abomination

First of all, let me make it clear that this is only meant to be a joke.

No really, it's a joke.

Please, for the love of God, do not pervert GNU/Linux into Windows, by giving it the worst configuration storage system of all time.

Having said that, it does actually work (FSVO: "work").

The following takes the contents of "/etc" and "$HOME/{userid}/{dotfiles}", and creates a Windows-style "Registry" from them, comprising two Sqlite3 databases: SYSTEM.DAT.db and USER.DAT.db respectively.

Homer's picture

Firefox / Icecat Tips

Kill that damned "urlclassifier3.sqlite" problem once and for all

Turn off (uncheck) "Block reported attack sites" and "Block reported web forgeries" in Firefox/Icecat security preferences. Unless you're an idiot, or running Windows, then you probably don't need this.

Then quit Firefox/Icecat, and:

cd "$HOME"
find . -name urlclassifier3.sqlite -exec rm -f {} ';' -exec touch {} ';'
su -c "find . -name urlclassifier3.sqlite -exec chattr +i {} ';'"

"chattr +i" means "change the file attributes to immutable", meaning "can't change or delete".

This will now ensure urlclassifier3.sqlite remains a zero byte file forever.

Syndicate content