Sunday, November 20, 2011

Compile mplayer on OS X

Finally, success. My tears of frustration did not short out my kkkkkkeyboard and I ca finally type ut thi simple howto (well, simle for me ayway).

So why compile mplayer? There's a relatively recent binary for Tiger and up available here inside an application wrapper that you can extract if you want to use it from the command line. It's from September 2009, recent enough for pretty much anything now, but it's almost 2012 and 2014 or 2015 are just around the corner, and by then it'll be six years old. So what if nobody steps up and provides a distributable binary for Tiger or PowerPC users? What if it's 2015 and users clinging to Classic and using TenFourFox 147 need an updated binary? Well, you're gonna have to roll your own and here are the basic steps to do it.

First, in order to compile anything, you need to install Xcode. In fact, for this compile specifically, you'll need SVN and Git, too. Specific instructions about this are in two posts back here. Also, you'll need to install Make 3.82 available here.

If you haven't added /usr/local/bin to your path, do it now by editing or creating ~/.bash_profile and adding the line:

. ~/.bashrc
(don't forget both dots).

Then edit or create the file ~/.bashrc with the line:

PATH="$PATH:/usr/local/bin"

With this you can call anything installed in /usr/local/bin simply by typing the application name in the command line.

Onto compiling:

On the surface it's just a simple process of downloading the source, running ./configure, make, and sudo make install, but I came across a few hurdles that I'll show you how to get over.

First, create a new folder to download the source into, set that folder to the current directory, and then download the source with these three commands:

mkdir ~/Development

cd ~/Development

svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer (on one line)

Then you want to run the configuration script like this:

cd mplayer

./configure --enable-menu --with-freetype-config=/usr/X11R6/bin/freetype-config (on one line, the two arguments are for OSD support and require X11 to be installed)

At this point I got a message I wasn't prepared for: No FFmpeg checkout, press enter to download one with git or CTRL+C to abort

When I didn't have Git installed, that was a problem. But after I installed Git and reran the script, I simply pressed enter and continued on. At this point you may get a longer error message that ends with:

git pull failed, (re)move ffmpeg/mp_auto_pull to disable pulling

The solution is to remove "mp_auto_pull" from ~/Development/mplayer/ffmpeg. Then when the ./configure script ends, run make. But there's a bug here. Make 3.80 won't work. You'll get an error, make: *** virtual memory exhausted. Stop. You have to upgrade to Make 3.82.

After installing 3.82, you'll notice the default Make is still 3.80 in /usr/bin. Since I didn't know how to make the new version the default and wasn't sure of the implications of mixing an updated Make with other dev tools, I just invoked it by typing its full path. So after the ./configure script completes, type:

/usr/local/bin/make (this will take awhile)

Then at the conclusion, run:

sudo /usr/local/bin/make install

And that's it! You should have a working binary. To get Truetype subtitles working, you can copy any fontname.ttf file from your /Library/Fonts directory to ~/.mplayer/subfont.ttf like:

cp /Library/Fonts/fontname.ttf ~/.mplayer/subfont.ttf (one line)

The file in your ~/.mplayer folder must be called subfont.ttf.

When I first started this whole mess, I couldn't get it to compile with OSD support. I tried using Macports to install some of the dependencies as described here, and man what a nightmare. Finally I went back to look for a simple explanation and found the ./configure arguments for OSD support here.

And with that I'm gonna watch a movie.

Tuesday, November 15, 2011

Linux MintPPC 11 is Out!

I just installed the new MintPPC 11 and have been playing around with it, so this is more a quick look than a comprehensive review but I like what I see.

First, the authors announce this is based on Debian Wheezy (testing) so there are likely to be some bugs. This is roughly equivalent to what Ubuntu does, basing their releases on the "testing" branch rather than "stable". The advantage is you get newer versions of software like Iceweasel 7.

I can report to you that Iceweasel 7 is fast. Like super-fast. Another very cool piece of software installed by default is Minitube, a youtube viewer for PPC users lacking flash.

The install was hassle free. The only head scratcher was when confronted with a screen asking you to choose which kernel. I chose version 3 since it was highlighted by default. I thought, "Well, I'll probably break sleep with this, but what the hell? Latest and greatest, right?" And predictably, sleep doesn't work. Other users report sleep works fine, so maybe they went with the safer 2.6 kernel.

Setting up wireless was pretty painless. Sound began muted, but I just had to untick the mute box and had sound working. The LXDE desktop was slick and its memory usage was low. Everything runs comfortably in this iBook with 256 MB of RAM. MintPPC installs by default a variety of of useful software, so everything's there pretty much set up for the average user.

One last thing, unlike the stable branch, mplayer from testing now works on G3's. The stable version was compiled it appears for G4's only. However, VLC still breaks when playing video. I got the stable version working by compiling my own, but I haven't gotten to that here yet.

So give MintPPC a shot. If you're new to it, just register for free at their website and you'll find install instructions and a responsive forum area. Good luck.

UPDATE: If you have a dual boot system, beware that the Debian installer MintPPC uses can corrupt your OS 9 drivers making your OS 9 partition unbootable. The solution is to run Drive Setup from a Mac OS 9 install CD and update drivers. I wrote about this earlier here.

Wednesday, November 9, 2011

SVN, Git and Xcode for Tiger

So I'm having this nightmare trying to compile the latest development version of mplayer on Tiger, and I plan on writing about it if my tears don't short out my keyboard before then, but I thought I'd drop by with a quick post in the meantime about some tools you'll need in the process.

These are basic development tools that are getting hard to find for Tiger, and they're also not just for compiling mplayer. If you want to do any compiling or developing, these are the tools you want.

First one's the big one. Xcode from Apple. You can get this either from your install DVD or by downloading it from Apple's website. It's better to download it as you can get the latest version. You have to sign up for a free developer's account and then do a little hunting around on the site, but if you click Resources at the top, then find a Mac OS X Downloads link, you'll eventually come to the Downloads section. Tiger users want to download Xcode 2.5 Developer Tools. Leopard users, your latest version is I believe 3.1.4. The whole install will end up taking a couple of gigabytes, but on the plus side you now start developing all those awesome apps for Tiger you always wanted to.

Another tool you'll need to retrieve source code is SVN, a version control system that supplanted CVS as the popular choice. The Tiger version can be found by going to svnbinaries: Home, then clicking on "Need to download older binaries?", clicking the OS X folder, then choosing Subversion 1.4.6 Universal.

The last tool I have for you is Git, a version control system that supplanted SVN as the popular choice. Honestly, world, I wish you'd make up your mind. Both Tiger and Leopard universal binaries can be found here.

One thing going for Git, it has the funniest install ReadMe I've seen. It says, well, I'll just quote it:

GIT - the stupid content tracker

"git" can mean anything, depending on your mood.

• random three-letter combination that is pronounceable, and not actually used by any common UNIX command. The fact that it is a mispronunciation of "get" may or may not be relevant.
• stupid. contemptible and despicable. simple. Take your pick from the dictionary of slang.
• "global information tracker": you're in a good mood, and it actually works for you. Angels sing, and a light suddenly fills the room.
• "goddamn idiotic truckload of sh*t": when it breaks
I vote the latter.

UPDATE: Oh, look. Somebody made Homebrew for Tiger and Leopard PowerPC.

Monday, October 31, 2011

Editra - The Text Editor Written in Python for Tiger

Open source software projects make me feel useless. Reading through their forums and blogs brings me to posts about code and requests for code, and I don't know how to write code! So I decided this would change, that I'd learn a computer language hopefully enough to where I could contribute something in the not-too-faraway future. Since the consensus is that Python is the best language to learn first, I'm gonna take a crack at that.

Now I just need a text editor.

And, no, TextEdit isn't what I'm talking about. I want a full-featured text editor that's extensible and can come with all the bells and whistles if I want them. Also, current development for Tiger would be nice.

Lo and behold, there is such a text editor, and it's called Editra. It's cross-platform and appropriately enough written in Python. It has a tabbed interface and all the basic features of a real text editor, like syntax highlighting, etc., and it also comes with a plug-in system for extending the features further. And did I mention it still supports Tiger?

For another text editor that's cross platform, you could also try the java written jEdit. And though TextWrangler and Smultron dropped Tiger development, you can still download old versions (here for TextWrangler, here for Smultron).

At this point, though, I'm going with the Python app. And if you want to test the waters in learn a computer language yourself, check out this Youtube playlist - http://www.youtube.com/playlist?list=PLEA1FEF17E1E5C0DA. A lot of great instructional videos.

Monday, October 10, 2011

SSD Performance on Various 'Books

Check out these videos showing SSDs in action on iBooks and Powerbooks of yore.

First one is MintPPC Linux booting on an iBook G3 800Mhz:



Next one shows web browsing performance on a clamshell iBook:



Also, boot time comparison between a clamshell 466 MHz SSD vs. a Powerbook 1.67 GHz HDD:



Word:

Tuesday, October 4, 2011

Spaces Alternatives for Tiger

I've never been a big fan of virtual desktops. They've been a longtime feature on Linux, though not on Tiger, so when Leopard came out with Spaces, I was indifferent. However, I stumbled across a couple of virtual desktop applications for Tiger and decided to take a look at all the fun I was missing.

The first I tried was VirtueDesktops:



Development was halted with the arrival of Leopard, but it still works on Panther and Tiger systems. On my Tiger install it seemed stable but incomplete. The preferences weren't as intuitive as I'm used to, and there appeared to be a pager feature that I couldn't get working. But for simple desktop switching (with hotkey support) it worked well.

The second Spaces alternative is Desktop Manager:



Development seems also to have halted, but it's very polished. Transitions are the same as VirtueDesktops, slide and cube, etc. However, Desktop Manager has a pager in the menubar for quick switching with the mouse, hotkey support, and also has an optional pager for the desktop.

All in all, I liked these little apps, but it's not enough to convince me to switch to multiple desktops. My word processing / browsing / email are so wrapped up in each other I like having the whole mess of them all on one screen. But if you want a little more organization in your life, go for it.

Sunday, September 25, 2011

OS X Apps That Still Support PPC

As promised, following my not comprehensive list of old PPC versions of apps that stopped supporting PPC, here now is my not comprehensive list of applications that still, as of this writing, support the platform. There are actually many more, but I thought I'd list a mix of popular titles along with a few that you may not have heard of and should give a try. So download away:

Ableton (music production suite)

Adium (multi-platform chat client)

Audacity (sound recording/editing)

Burn (great disc burning app)

Carbon Copy Cloner (backup utility)

Celestia (astronomy, space simulator)

CorePlayer (I haven't tried this, but everyone who has swears it's the most CPU efficient media player there is)

Cyberduck (ftp)

DropBox (backup and syncing)

GraphicConverter (image editing)

Growl (system notification)

iText Express (TextEdit fork with expanded features, the perfect middle ground between a simple text editor and a huge office suite)

LibreOffice (huge office suite)

Mac DVDRipper Pro (backup your DVDs)

MacFamilyTree (genealogy)

MacTubes (Youtube viewer)

MPEG Streamclip (Quicktime-based video editor, still supports Jaguar!)

MPlayerOSX Extended (advanced GUI for mplayer)

OpenOffice.org (huge office suite)

Perian (extra codecs for Quicktime Player)

SABnzbd (usenet downloader)

Seashore (image editor)

Skim (pdf viewer, note taker)

TenFourFox (really, if you're not using this by now I don't know what more I can say)

ToyViewer (lightweight and surprisingly powerful image viewer/editor)

The Unarchiver (archive decompression, many many formats, essential at this point, just install it and don't look back)

VLC (media player, DVD decoding, streaming, everything)

Warbirds (massively multiplayer online WWII flight simulator)

X Lossless Decoder (CD ripping)

XBMC (all your media are belong to XBMC)

Thursday, September 22, 2011

Old PPC Versions of Notable Apps

There comes a time when everyone has to let go. We turn the page and look forward to a new day. Unless we're PowerPC users and that new day isn't any better than the old day and has more RAM requirements. But this isn't a rant. It's merely to take note of some of the more notable applications that have halted PPC support and point out that not all is lost. There are still old PPC versions available for download, and in some cases (Skype) more usable than the new versions. So here it is in list form, my not comprehensive list of applications that have halted PPC support and where you can still download the old PPC versions:

Adobe Air 1.5.3 (a runtime environment for TweetDeck) available here.

Adobe Flash 10.1.102.64 available here.

Firefox 3.6.22 is here (TenFourFox is a PowerPC port for later versions of Firefox).

Google Earth 4.3 can be grabbed here. 5.2 is actually the last PPC version, but it tries to install an autoupdate bug/background-app that is way not cool. 4.3 is free of it.

Handbrake 0.91 (Tiger) and 0.94 (Leopard) are here. An unofficial PPC build for 0.95 is here, but it's Leopard only.

NeoOffice 3.1.2 (OpenOffice.org fork) can be had here.

Opera 10.63 is available here.

Quicksilver B54 (launcher and much more) is here.

Skype 2.8 is here.

Thunderbird 3.1.14 is here (TenFourBird is a PowerPC port for later versions of Thunderbird).

Transmission 2.22 (Leopard) and 1.54 (Tiger) are here (a newer build for version 2.31 that runs on Tiger with the Qt interface is available here).

Next up, in happier news, a not comprehensive list of applications still supporting PowerPC.

Thursday, September 15, 2011

Free Racing Games For Your Mac

I have a new addiction. No, not pills. That's reserved for the next decade. No, my addiction is racing games. I made a big mistake downloading a few racing games for the Mac, and I thought I'd share them and turn you into wasted, glassy-eyed junkies, too. The three games are TORCS, VDrift, and Dolphinity Racer. The first two are open source, and all three are freely available for OS X as well as other platforms. They all have their pros and cons and are different enough to make you want to play all three. I tested these on a 1.5 GHz AlBook and a Sawtooth with an ATI 9000 upgrade. So here's the round up:

Dolphinity Racer is the most graphics and processor hungry of the three. The latest for OS X is v0.5.4.3, which is a universal binary so it'll work on PowerPC. Unfortunately the developer hasn't updated the OS X version in quite some time, and it's not open source so compiling newer versions isn't an option. That being said, it looks good in the graphics department, and the physics engine feels realistic.

The base install comes with just one track and one car type, so the idea is to download user-created tracks and cars which you can find links to on Racer's website (there's also a huge number of tracks and cars available here). They're generally high quality though I had to turn down the graphics settings to get good frame rates. On a low end machine like a Sawtooth forget about racing other cars. You can barely get usable frame rates racing alone. Obviously it's much better on the AlBook, and there's also an .ini file you can edit beyond the preferences presented in the GUI.

(UPDATE: The problem with user-created tracks is they don't come with an AI default.ini, so the AI cars default to 25 mph. You're supposed to be able to create an AI profile for the track yourself by pressing F6 before the start line, drive a good lap, then press F7 to save the profile and rename it "default.ini" to have it apply to all car models on that track. However, when I press F7 nothing is saved. Frustrating.

You can compensate for this somewhat by bringing down the console with Shift - ~, then entering the command "ai performance 2". This will make your dumb AI opponent go at twice its normal speed. "ai performance 3" will make it go three times normal (decimals can also be used). You may notice your AI car skidding off the track at this point, which you can deal with by increasing the AI's tire traction. Do this by editing "grip_factor" in that car model's "car.ini" found in the data folder. The Lamborghini that comes with the base install already has grip_factor in its car.ini, but you may find user-created cars omit it from theirs. In that case you can just copy and paste the Lamborghini's grip_factor into another car's ini file, though don't forget to paste that whole "ai" section including the open and close brackets. After applying all this, you will now enjoy a fast and totally reckless AI opponent.)

VDrift is about, you guessed it, drift racing. In many ways this is the best of the three. The graphics look good and framerates are higher than Racer. The physics engine feels very realistic, and you can also download and install new tracks and cars. The only negative was you can't collide with other cars. You just pass right through them (or they through you).

The ability to have car collisions came with the update just released, but it's Intel only. A developer in the forums said they'd try to build a universal binary but wasn't sure it was doable. Also if you download the previous version that supports PowerPC, the AlBook with an ATI 9700 Mobility renders smoke as solid white, no transparency, so it's not playable. The 2009-02-15 version, though, works great. Lower end users like on a Sawtooth might want to try version 2008-08-05 for better framerates.

Finally there's what may be the most addictive of them all, TORCS (The Open Racing Car Simulator). I don't know if the physics engine is totally realistic. It feels very frenetic and too fast at first. I've dealt with this by choosing older "historic" cars to race with (old sports cars from the 60's & 70's) which don't drive as fast and are easier to handle. That being said, this is the most action packed of the three. Some cars even deliberately bump you and try to take you out. The framerates are high, though the graphics aren't up to par with VDrift and Racer. It actually varies between tracks. Some are good, others look very 2002.

The latest OS X version on their website is 1.2.4, but Stephen Hudson has made his compile of 1.3.0 available here (UPDATED link here), so that's the version you want. It's a universal binary so it'll run on PowerPC. Unfortunately the latest version available to Windows and Linux users is 1.3.1 whose most significant changes are the addition of several cars and tracks, including the two best tracks from a graphics standpoint, "alpine-2" and "forza". However, 1.3.0 users can install these, too. You can download the 1.3.1 tracks separately here and install the new tracks in the TORCS app package by clicking "Show Package Contents" and placing the individual track folders in Torcs.app/Contents/Resources/tracks. Dirt tracks go in the "dirt" folder, road tracks go in the "road" folder, etc. Alpine-2 and forza are road tracks. I haven't tried adding cars with this method yet, but I suspect it would work, too.

With all three of these games you can use the mouse for steering. Only VDrift recognized my ten year old Macally iStick. There are no OS X drivers for the stick, so it's a crapshoot whether a game will recognize it. As far as maximizing framerates, toggle the view button so there's no hood visible (in TORCS) or at least put yourself inside the car (Racer), and limit the viewing distance to as little as you can tolerate.

Anyway, try all three. You're bound to get addicted to at least one, and then we can all enable each other's addiction and dig our claws into each other and drag each other down:)