ZoFreX
Spy
- Joined
- Jun 24, 2004
- Messages
- 558
- Reaction score
- 2
Preface: I know that there is already a pinned thread about this, but it recommends fraps... there really is no need, this method results in high quality, high framerate video, with no spending of money (or piracy) required!
Firstly, make sure you have console enabled (it's in the keyboard options, if you have a non-english keyboard you may need to remap the key).
Record a demo of whatever you want to make into a movie by typing:
record <demo_name>
into the console, where <demo_name> is whatever you want to call the video. When you've recorded all the footage you want, type in:
stop
To stop the recording. You now have a demo recorded on your computer, which you can playback at any time to enjoy... But we want a movie, not a demo!
Change your settings for video recording:
Set your resolution to 640x480 (unless you really want higher res videos than that). Put all settings to max, ramp up antialiasing, make it look pretty. Make sure sound is set to stereo, because that's all the output supports.
Now enter these 3 commands in quick succession into the console (I guess you could set up an alias if you really need to begin recording from the first frame of the demo):
host_framerate 30
playdemo <demo_name>
startmovie <demo_name>
The first command sets the fixed framerate of the video (30 is good, but you can set more for slow motion scenes etc.)
This part will take ages - first it will load up the demo, and then diskwrite it to tga files for frames, and a wav for sound. Bear in mind this will take up an extremely large amount of disk space, several gigs for a few minutes footage.
So now you have a lot of image files, and a wav file - one step closer to a video. Load up Rad Video Tools, and create a list file containing all the image files, and the wav. Save this list file, then select it in Rad and either choose "convert a file" to make an avi, or "bink it!" to make a bink file (like valve's :thumbs: ).
Further guides:
Cutting the demo:
Starting the movie recording and then the demo recording like I said will record from the start of the demo till the end - if you only want to record a segment, then start the demo rolling, and use this command to start recording:
startmovie <demo_name>
and this command to stop:
endmovie
You can make your life easier by binding these commands to keys beforehand, too.
Bink to EXE:
Once you have your *.bik file, you can make it into an *.exe file by selecting the bink file in RAD and clicking Advanced Play->Make EXE
Encoding Avi:
I reccomend using the Xvid codec for your avi files, if you install this then it will be available in the list of codecs when you start file conversion.
Compressed Audio:
I'm not sure if RAD compresses audio when you make an avi file, or what compression it uses if you do. For this reason I normally use RAD to convert the images to video (leaving the audio out of the list file), thus creating a silent avi. I then use Foobar (with LAME) to convert the wav file to an mp3. If you want an avi file as output then make sure the mp3 is CBR (128kbps should be fine for these purposes). I then use AVIMux-GUI to combine the video and audio into one file (note: not reencoding, just merging them together, technical term: muxing). Just drag the video and audio into the top pane, highlight the video and click "generate data source from files" enter a title and click "start". You can fiddle with more advanced stuff in the settings.
Links to tools:
Rad Video Tools
Xvid Binaries
Foobar 2000
LAME binaries
AviMux-GUI
Any feedback would be appreciated, I can add more depth to this if you want / need it!
Edit: Added cutting demo guide, thanks Dekstar
Firstly, make sure you have console enabled (it's in the keyboard options, if you have a non-english keyboard you may need to remap the key).
Record a demo of whatever you want to make into a movie by typing:
record <demo_name>
into the console, where <demo_name> is whatever you want to call the video. When you've recorded all the footage you want, type in:
stop
To stop the recording. You now have a demo recorded on your computer, which you can playback at any time to enjoy... But we want a movie, not a demo!
Change your settings for video recording:
Set your resolution to 640x480 (unless you really want higher res videos than that). Put all settings to max, ramp up antialiasing, make it look pretty. Make sure sound is set to stereo, because that's all the output supports.
Now enter these 3 commands in quick succession into the console (I guess you could set up an alias if you really need to begin recording from the first frame of the demo):
host_framerate 30
playdemo <demo_name>
startmovie <demo_name>
The first command sets the fixed framerate of the video (30 is good, but you can set more for slow motion scenes etc.)
This part will take ages - first it will load up the demo, and then diskwrite it to tga files for frames, and a wav for sound. Bear in mind this will take up an extremely large amount of disk space, several gigs for a few minutes footage.
So now you have a lot of image files, and a wav file - one step closer to a video. Load up Rad Video Tools, and create a list file containing all the image files, and the wav. Save this list file, then select it in Rad and either choose "convert a file" to make an avi, or "bink it!" to make a bink file (like valve's :thumbs: ).
Further guides:
Cutting the demo:
Starting the movie recording and then the demo recording like I said will record from the start of the demo till the end - if you only want to record a segment, then start the demo rolling, and use this command to start recording:
startmovie <demo_name>
and this command to stop:
endmovie
You can make your life easier by binding these commands to keys beforehand, too.
Bink to EXE:
Once you have your *.bik file, you can make it into an *.exe file by selecting the bink file in RAD and clicking Advanced Play->Make EXE
Encoding Avi:
I reccomend using the Xvid codec for your avi files, if you install this then it will be available in the list of codecs when you start file conversion.
Compressed Audio:
I'm not sure if RAD compresses audio when you make an avi file, or what compression it uses if you do. For this reason I normally use RAD to convert the images to video (leaving the audio out of the list file), thus creating a silent avi. I then use Foobar (with LAME) to convert the wav file to an mp3. If you want an avi file as output then make sure the mp3 is CBR (128kbps should be fine for these purposes). I then use AVIMux-GUI to combine the video and audio into one file (note: not reencoding, just merging them together, technical term: muxing). Just drag the video and audio into the top pane, highlight the video and click "generate data source from files" enter a title and click "start". You can fiddle with more advanced stuff in the settings.
Links to tools:
Rad Video Tools
Xvid Binaries
Foobar 2000
LAME binaries
AviMux-GUI
Any feedback would be appreciated, I can add more depth to this if you want / need it!
Edit: Added cutting demo guide, thanks Dekstar