Page 1 of 1

HOWTO: spring video+ audio capture

Posted: 31 Jan 2009, 16:41
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):

a

Posted: 08 Feb 2009, 04:43
by cdef912
potiskanje, tako lepo temo dobro delovno mesto

Re: HOWTO: spring video+ audio capture

Posted: 08 Feb 2009, 06:14
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