VLC is a nice cross-platform app, open source, made in C.
It could probably use some Ruby API though...