glc - fraps for linux - how to install glc in Ubuntu
La versione italiana di questa guida potete trovarla qui.
First of all, i accept conseils to make my english (and this post) better :D sorry me! I hope this post doesn't sux too much.
Dear Linux gamers... how many times would you wished to have a linux version of Fraps? Simply to record your stupid or frag actions in game :p or what you want...
For example i'm a Wolfenstein Enemy Territory player, and sometime i like to record something.
Unfortunately Fraps is only for Windows, then a nice finnish programmer rescued me for the 2nd time.
Why 2nd time? Because he's the same author of et-sdl-sound hack for ET, Q3, RTCW, etc... thanks nullkey!
This time, after the famous ALSA hack, he released a good capture tool!
glc, what is it?
glc is an ALSA & OpenGL capture tool for Linux. It consists of a wrapper library which captures stream and a tool for playing or processing captured streams. glc should be able to capture any application that uses ALSA for sound and OpenGL for drawing. It is still a relatively new project but already has a long list of features. Take a look at some example videos and find out how to install it!
Install glc in Ubuntu:
nullkey here teachs how to install glc in Gentoo, and it is good. Then if you are in Gentoo, don't read my blog, but please read his official how-to!
In Ubuntu there are some problems... that nullkey had the patience of explain me in msn.
Attention, the red lines are for 64-bit only system users!
sudo ln -s /usr/lib32/libGL.so.1 /usr/lib32/libGL.so
sudo ln -s /usr/lib32/libasound.so.2 /usr/lib32/libasound.so
sudo ln -s /usr/lib32/libXxf86vm.so.1 /usr/lib32/libXxf86vm.so
sudo ln -s /usr/lib32/libX11.so.6 /usr/lib32/libX11.so
The 32-bit system users should not need these previous steps.
The next steps are for both architecture:
wget http://nullkey.ath.cx/glc/scripts/glc-build.sh
chmod +x glc-build.sh
./glc-build.sh
Installer downloaded, permissions set correcly and then you launched the installer. Now follow it's questions:
Enter path where glc will be installed.
You can leave it blank;
Enter compiler optimizations.
Same here, but if you have a Core2Duo you can fill:
-march=nocona -O2 -msse3
and press Enter;
Enter linker optimizations.
Leave it blank;
Use git?
git contains the last development version, then not fully stable. Sincerely i decided y and i didn't have any problem. The system is your, choise one :) and press Enter.
Now the installer will download all needed files and will make 4 folders in the position from you had launch it (glc, glc-support, elfhacks, packetstream).
It can also ask for the password, if it isn't in memory.
When finished, it will print Done :).
Now glc is ready to use.
How to use glc?
You can read the official how-to-capture page of glc. Maybe i will write a post someday...for howto use and convert glc streams and play them in mplayer, vlc, etc.
How i use glc:
glc-capture -r 0.7 -o /home/pasquale/out.glc /usr/local/games/enemy-territory/et-sdl-sound
With this command glc will capture with 0.7 of ratio and the final file will be found in my home directory with out.glc as name; the final part of the command is the launcher of ET (then you have to change it if you are capturing from another game)
ATTENTION:
When i tried to capture something in ET... after i exiting from the game i noticed that i didn't capture anything. This problem is presented only in Ubuntu and not in Gentoo (like the symbolic link problems, previously, but this time this problem can be found in any architecture).
For resolve, you have to modify the script et-sdl-sound installed in past. Open the script and edit the line from:
LD_PRELOAD="$TMP_DIR/et-sdl-sound.so" ./$GAME_BIN $*
to:
LD_PRELOAD="${LD_PRELOAD}:$TMP_DIR/et-sdl-sound.so" ./$GAME_BIN $*
After this modify (it is in only 1 line, don't go ahead, my blog isn't large to contain all the line :P ), glc-capture works :P
I hope this how-to will help you :)
Maybe i will write about converting the output file! Also if these informations are already wrote in the official website.
Various link:
project homepage
HowtoInstall
HowtoCapture
HowtoPlayback a captured stream
HowtoEncode a stream in a video file playable with MPlayer


2 commenti:
HI!
Sorry, but i am spanish and my english is not very good... :)
Can i monitor fps (frams per second) in Linux with this program??
I am searching for this.
Bye, good blog ;)
hi, i don't know if glc has this feature (you can ask to the author).
anyway there is a command in game to show the fps. open the console and write /cg_drawfps 1
Posta un commento