Thursday Night

Paul Betts’s personal website / blog / what-have-you

Yikes! for nerds: how to get the code

I ran out of time yesterday, but as promised, here’s how to build and run Yikes!

Quick Start

git clone git://github.com/xpaulbettsx/yikes.git
cd yikes
rake && rake ffmpeg
ruby lib/main.rb -l /path/to/videos -t /path/to/ipod/output -r 1800 -b

Getting the code

By far, the best way to get the code is via Git; this lets you view the entire commit history, as well as send me changes. If you don’t have Git, you can download precompiled source code trees for Linux or Mac OS X 10.5. The Git clone URL via Github is git://github.com/xpaulbettsx/yikes.git

Building (“Huh? Building? On Ruby?”)

(If you downloaded the precompiled version, skip this part!) Even though the application is in Ruby, we need to build ffmpeg and its associated libraries from source, so you need to have the XCode tools installed, and you probably need MacPorts as well. While building this takes forever, it’s fairly easy:

rake && rake ffmpeg

Running the app

Right now, you have to run Yikes! from the command line, but the syntax is pretty easy. Here’s a sample:

cd yikes_public

# The long version
ruby lib/main.rb –library /path/to/videos –target /path/to/ipod/output –rate 1800 –background

# or if you want the short version
ruby lib/main.rb -l /path/to/videos -t /path/to/ipod/output -r 1800 -b

# If you want to run it on the sample files for development, there’s an easier way
rake run

Written by Paul Betts

June 5th, 2008 at 10:27 pm

Posted in Apple, Linux, Ruby, Yikes!