Demo Video Creation
Revision as of 16:02, 10 August 2006 by Giles (Shiny new quickie tutorial in a cynical ploy to inspire Tom to keep up the good work with his Choreography tutorials)
Once you've recorded your demo, it's likely you'll want to turn it into a video to share with others. Here's one way of doing that:
- Load your chosen Source engine game and open the console.
- Set your graphics settings to be what you want the video settings to be. E.g. if you want an 800x600 video, set your resolution to 800x600. Also set whatever graphical niceties you want - you don't need to worry about keeping something that gives you a good in-game framerate, but don't go too high or you might find the recording takes an eternity. Warning: Be aware of hard disk space requirements for long videos. An 800x600 resolution generates approximately 1.5 megabytes for every frame. It's easy to chew through gigabytes very quickly and if you run out of hard disk space, Source will just crash to desktop.
host_framerate 30into the console, where 30 is the framerate that you want your video to playback at (you might want something else).Note: Don't forget this step! If you do, your audio will likely not stay in sync with your picture.
- Choose a name for your video (it doesn't need to be the same name as the demo file), let's say you've chosen
startmovie %videoname%_into the console. (The
_underscore on the end of your name is not essential, but useful for later steps.)
playdemo %demoname%into the console, where
%demoname%is the name of the demo you want to record.
- Sit back and grab a beer while it records your demo - it won't necessarily run in real-time. Depending on your machine and on the graphical settings you chose, it might take quite a while. When it's done, the game will return you to the console.
endmovieinto the console.
- Quit the game and browse to the root folder of your mod or game (the one with the
gameinfo.txtin it, e.g.
- Here you will find numerous Targa files named
%videoname%%framenumber%.tgaand a Wave file named
%videoname%.wav. Now you need to take these frames and the audio and turn them into a complete video, using the external video creation application of your choice, be it VirtualDubMod (free, but poor UI) or Adobe Premiere or whatever.Note: It's at this step where the underscore at the end of the videoname becomes useful. If you've recorded two similarly named videos, e.g.
lewd_alyx_gmodscene2, it can be difficult to tell when one ends and the other starts when you're just looking at a directory full of hundreds of files named
- Start a new project and set the project settings to match those you recorded the video in (frame size, pixel ratio, framerate).
- Import the audio (
File->Import...and browse for
- Import the set of frames by selecting the first frame of the video (
%videoname%0000.tga) in the same Import window, and checking the "Numbered Stills" checkbox.
- Drag the set of frames and the audio onto your timeline, and line them up at zero.
File->Export->Movie...to save out your video. Remember to check and tweak the codec settings to get a balance between quality and filesize that you are happy with.
To do: Instructions here.