I have put together this guide using collected information, I did not write this myself.
(Ok well I took the pictures
)
Credit respectfully goes to the following sites for the data provided:
make sure that you have the console option enabled.
Press the ~ key to open the console
Demo Commands
record [demoname] - Starts recording a demo of the current gameplay under the specified filename. The demo will be saved as
demoname.dem in the
\Program Files\Valve\Steam\SteamApps\[username]\[game name]\[game name]\ directory along with all its associated files.
stop - Stops recording the current demo.
demoui - Opens a small demo user interface which looks like a media player, but makes the opening and playing of demos much easier, including the capability to FF, REW and skip to specific points in the demo. Alternatively you can use
demoui2 to open the advanced demo user interface.
playdemo [demoname] - Plays back a pre-recorded demo of name
demoname.dem.
stopdemo - Stops playback of the currently playing demo.
demopause - Pauses playback of the currently playing demo.
demoresume - Resumes playback of the currently paused demo.
listdemo [demoname] - Provides details of the specified demo file.
demo_recordcommands [0,1] - If set to 1, records any commands typed at the console into demo files.
startmovie - Starts recording movie frames, stored in the
\Program Files\Valve\Steam\SteamApps\[username]\[game name]\[game name]\ directory as .tga files.
endmovie - Stops recording movie frames.
----------------------------------------------------------------------
CONVERTING THE DEMO TO AVI
Download VirtualDUbb
http://virtualdub.sourceforge.net/
- Open VirtualDub, then go to
File>Open. Browse to the Source game's working directory, such as "C:/Program Files/Valve/Steam/SteamApps/yourusername/Half-Life 2/hl2"
- Open the first frame, such as videoname_0000.tga. VirtualDub will take a moment to load all the frames it can find.
- Go to
Video>Compression, and choose a compression codec. If you have them, DivX and Xvid are recommended. Xvid generally results in a smaller quality loss, but DivX is smaller and is more popularly used.
- Click
OK.
- Now go to
Audio>Wav File... and select %videoname%_.wav.
- Go again to the
Audio menu and select Full Processing Mode.
- Finally, go to
Audio>Compression, and choose MPEG Layer 3. (more commonly known as MP3) Choose a compression level. (If you don't need audio for your clip, you can instead go to Audio>No Audio) Click OK.
- OPTIONAL: You can add a resize filter to your video so the resolution is brought down in the final video. To do this, go to
Video>Filters, and click Add... From the list of filters, select resize and click OK. In the two boxes given, enter the dimensions that you would like your final video to be. In Filter Mode, select Bicubic, and click OK.
- Now that you have set up your video processing, go to
File>Save AVI... and choose a save path. When you click OK, VirtualDub will process the TGAs into an AVI file.
- OPTIONAL: If you are processing multiple images, check the box marked
Don't run this job now... at the Save AVI dialog. Then, open your next initial frame and audio file. You do not need to change any settings, as they are kept during a session. Go back to Save AVI, and check the check box again. You can continue doing this until you have all the AVIs qeued up to be processed. Then, press F4 to go to Job Control. Click the Start button to process the videos one by one.