Contents

Introduction

GLC is an ALSA & OpenGL capture tool for Linux. It consists of a generic video capture, playback and processing library and a set of tools built around that library. GLC should be able to capture any application that uses ALSA for sound and OpenGL for drawing. It is similar to Fraps on Windows.

NOTE: GLC will only work with ALSA. If you use OSS or Pulseaudio, you will probably need to record the audio separately.

Installation

If you want to record 32 bit programs such as Wine on a 64 bit system, you will also need to install lib32-glc.

Usage

The basic usage is simple. Just run this:

glc-capture [application]

Press Shift + F8 to start and stop recording. By default, it will save a (large) .glc file in your home folder. You can then play or encode it. For complete list of available options see

glc-capture --help

Playback

To play a captured stream directly, execute

glc-play [stream file]

ESC stops playback, f toggles fullscreen and Right seeks forward.

Encoding

In order to use the videos outside of glc-play, you will need to encode it. Here are a few example that work well for encoding. Of course, you can be creative and use any of the formats supported by ffmpeg to get your desired result (mencoder works too, I'm just not familiar with it).

For either script, run with the following context (assuming it's saved as glc-encode.sh):

Note: Sometimes when recording WINE, the audio stream you want won't be #1, so you'll have to find out which one it is and experiment, and edit the encoding script accordingly. You can get some info on the streams using "glc-play -i 1 filename.glc"