Using GLC to capture game video on Ubuntu

DAMN, this has been a total pain in the backside.

I wanted to record a video of my latest game writing developments with commentary.   (Ubuntu 12.0.3 LTS, with KDE desktop)

The normal desktop recording applications failed to cope with OpenGL, which is understandable, really.  So then I found glc.

glc looked like it would do everything I wanted, and after a couple of frustrating hours, it turns out it actually will.  This is good.

The bad is that the documentation is non-existent, and figuring it out has got me VERY CROSS, with quite a tension-headache to boot.

Command line which finally worked:
glc-capture -o blah.glc -j -a 'sysdefault:CARD=camera,48000,1' java -jar MyGame.jar

Gotcha 1: It doesn't tell you how to specify the application part (java -jar MyGame.jar).  It took me ages to realise that it cannot deal with quotes.  Just put the application in as you would type it normally in the command line.

Gotcha 2: Finding the ALSA device name for my webcam mic was a tedious trawl through misleading posts that were almost, but not quite, what I was looking for.

Eventually I found arecord -L
(NOT "aplay -l", that is playback)
(NOT "arecord -l", that does not give you usable device IDs)

arecord -L gave me a whole bunch of devices, amongst which I spotted "sysdefault:CARD=camera". 
LOTS of pages seemed to suggest things like hw1,1 or hw:1,1 or hw1:1,1 - that's all bullshit.  None of it worked.

Now, finally, I am able to record the million necessary takes until I find the one where I sound least like an idiot.

Comments

Popular posts from this blog

Micro:Bit and SPI display

DCS World with TrackIR under Ubuntu

Cardboard Mock-up of USB Joystick