CS:GO demo recorder for reports using CallAdmin-Middleware as a manager.
This script downloads demos from CallAdmin-Middleware, process them using demofile to extract demo, player and chat data, builds a .vdm
for each demo (that way commands can be run according to what tick is being played in the demo), uses HLAE to record a raw video of it, and then transcodes the result using ffmpeg.
- An installation of CallAdmin-Middleware;
- ffmpeg;
- HLAE;
- Computer with a GPU that can run CS:GO;
- Enough storage to hold raw video (the same duration as the demo been recorded).
Clone this repository and run:
npm install
Most of the configurations can be found inside config.js
:
Path to CS:GO executable
Path to store downloaded demos. Recommended to store inside the same path as the executable so playdemo
can be shorter.
Where HLAE raw recordings should be stored (expect large files).
Where ffmpeg should store transcoded recordings.
Path to HLAE executable.
CallAdmin-Middleware API prefix
Should not be changed since they are needed for each recording.
Optional commands (anything that's valid inside CS:GO and HLAE).
What tick optional commands will run.
What tick required commands will run.
What tick the recording will start.
How many ticks should be waited before running commands.
DEPRECATED