How to screen capture games
I had to screen capture my own OpenGL application a while ago, and it was a real pain in the butt to do on Linux. There are plenty of programs that screen capture from the X buffer, but that is very processor-intensive and slow. However, I did find one option that actually captures directly from the graphics card: Yukon.
Yukon is fairly straight forward, but is relatively new, so it doesn't have any install packages or GUIs.
- Get the dependencies:
Code:
sudo apt-get install build-essential subversion yasm mencoder libasound2-dev libgl1-mesa-dev
- Get the source (make sure to accept the certificate):
Code:
mkdir yukon
cd yukon
svn co https://devel.neopsis.com/svn/seom/branches/packetized-stream seom
svn co https://devel.neopsis.com/svn/yukon/branches/rewrite yukon
cd seom
./configure && make && sudo make install
cd ../yukon
./configure && make && sudo make install
- Install the yukon config files:
Code:
sudo mkdir -p /etc/yukon/system
sudo cp sysconfig /etc/yukon/system/default
mkdir ~/.yukon
cp tools/yukon.conf ~/.yukon/conf
- Edit the preference file:
Code:
gedit ~/.yukon/conf
Change
Code:
# OUTPUT = file:///tmp/yukon.seom
to
Code:
OUTPUT = file:///home/<your user>/Desktop/recording.seom
- Run your app through yukon:
- Press F8 to start recording and F8 again to stop.
Now you should have a recording.seom file on your desktop. To convert this to a usable filetype, use yukon's tool:
- Convert the seom file to a y4m file using yukon's tool:
Code:
./filter ~/Desktop/recording.seom > ~/Desktop/recording.y4m
- Convert the y4m to mpg with mencoder:
Code:
mencoder ~/Desktop/recording.y4m -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video -oac copy -o ~/Desktop/recording.mpg
Hopefully this works for everyone. There may be some dependencies I forgot about, so please report back.
"Simplicity is the ultimate sophistication." - Leonardo da Vinci
Bookmarks