HOWTO: spring video+ audio capture

HOWTO: spring video+ audio capture

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

HOWTO: spring video+ audio capture

Post by Auswaschbar »

Howto capture a video of spring with sound using glc

Prerequisites:
  • decent hardware, depending on the quality you want to achieve
  • lots of free disk space (about 500 mb per minute for low quality vids)
Step 1:
Install glc according to their tutorial.

Step 2:
Start spring with

Code: Select all

glc-capture -o captured spring
, pressing shift+F8 ingame starts capturing, pressing it again stopps it. This will create a file "captured" in your current directory. Some usefull parameters are:
  • "-f #" - capture # frames per seconds (reduce this if you experience stuttering while recording or in the video, it decreases the load alot), 30 is default
  • "-r #" - scale the video, 1.0 is default. This will actually slow things down if you set it to anythng except 1.0 or 0.5. In other cases, its much better to resize the window or use another resolution
Step 3:
Extract the sound with

Code: Select all

glc-play captured -a 1 -o audio.wav
Step 4:
Extract the video in YUV4MPEG form

Code: Select all

glc-play captured -y 1 -o video.y4m
Step 4.1:
The video editing program I use, avidemux cannot handle YUV4MPEG, so transcode it into uncompressed video in avi container:

Code: Select all

mencoder -of avi -ovc raw video.y4m -o video.avi
Step 5:
Edit, transcode, cut or publish with your favorite video editing programs (this should involve muxing video and audio back together):
cdef912
Posts: 1
Joined: 06 Feb 2009, 11:50

a

Post by cdef912 »

potiskanje, tako lepo temo dobro delovno mesto
User avatar
SpliFF
Posts: 1224
Joined: 28 Jul 2008, 06:51

Re: HOWTO: spring video+ audio capture

Post by SpliFF »

Great stuff! I never knew this program existed. I've captured video before using Camstudio (Windows) and vnc2swf (Cross-platform) but this is the first I've heard that can handle OpenGL screens.

BTW: According to the glc wiki the capture keys are Shift-F8, not Alt-F8
Post Reply

Return to “Linux”