How To: Recording L4D videos for YouTube
June 2nd, 2009
After much research (and swearing at my computer), I think I have found a pretty good way for creating L4D videos. By all means this is not easy and can definitely be improved, but it works. Feel free to leave a comment if you have any recommendations.
Required software:
0. Enable the developer console
In order to run use console commands, you must first enable the developer console. At the main L4D menu:
- Click Options
- Click Keyboard/Mouse
- Change Allow Developer Console to enabled
- Click Done
1. Record a demo using the source engine
Recording a demo in L4D is the same as any other source game. A demo doesn’t save an actual video; it saves the sound and the movements in game. To record a demo:
- Join the L4D game
- Press the tilde (~) to bring down the console
- Type “record mydemo_01″
- Play the game like normal
- Type “stop” in the console when the game is finished
2. Play back the demo while recording in Xfire
Before recording anything with Xfire, change your resolution. For YouTube, the minimum resolution (640 x 480) will work just fine. Recording these videos consumes a large amount of space and the bigger your resolution – the more space it takes. I change my resolution to 640 x 480 and put it in windowed mode so that I can easily flip back and forth. Unforunately, it seems I have to also restart L4D when I change my video settings.
- Lower resolution to 640 x 480
- Make sure Xfire is running
- Open the console (~)
- Type “playdemo mydemo_01″
- Wait for the map to load
- Press [Scroll lock] + V to start recording with Xfire
- When finished, press [Scroll lock] + V to stop recording with Xfire
- Type stopdemo to stop the demo
3. Convert from the Xfire avi format to Divx
Xfire uses a special codec when it records the demo from L4D. In order to get this into a friendlier format, we need to use VirtualDub to convert it. Converting this format will also reduce the file size by A LOT which will make it a lot quicker to upload to YouTube.
- Open up VirtualDub
- Open your video in the Xfire videos folder (on Vista mine is):
C:\ProgramData\Xfire\videos - Click Video
- Click Compression
- Click Divx Codec
(If you do not see the Divx Codec, you don’t have Divx installed. Install it from divx.com) - Click File
- Click Save As Avi
Now it should be MUCH smaller in size, perfect for uploading to Youtube!
Here is an example of me booming the survivors on Blood Harvest:
Miscellaneous
Recording your own voice
The only way that I know of to reliably record your own voice is by using the following console command:
voice_loopback 1
Basically, all it does is play whatever you say into your microphone back through your speakers/headphones. This is incredibly annoying, but so far I don’t know of a better way. Most of the time I just leave it off.
Useful console commands when recording the video of a demo
Some useful console commands that may be of some use when recording your demo playback. These require “sv_cheats 1″ to be run first.
| Description | Command |
| Third person view | thirdperson |
| Hide the HUD | cl_drawhud 0 |
Problems I still have…
- Unable to use a free camera – I definitely would like to figure out how to record using a free camera.
- Still unable to remove parts of the HUD
- Not sure how to remove glow (necessary?)

Leave a Reply