hl-capture is a tool for recording Half-Life videos on Linux, written in Rust. It's similar to Half-Life Advanced Effects, but focuses on video capturing rather than advanced movie-making functionality.
hl-capture is designed to be fast and convenient. Video and sound are encoded with FFMpeg right away into any desirable format like
webm. This, together with utilizing multiple threads and GPU-accelerated processing, makes hl-capture way faster than HLAE or Source's startmovie.
- Fast video and sound capturing and encoding into almost any of the formats supported by FFMpeg.
- GPU-accelerated resampling.
- TAS compatibility out of the box, including engine restarts.
- 32-bit FFMpeg libraries. FFMpeg 3.4 is known to work; FFMpeg 4 will not work. You can download pre-built working libraries with the main codecs here.
- 32-bit OpenCL (look for something like ocl-icd).
Check the wiki for installation and usage instructions.
- High capturing speed.
- Compatibility with TASes, including those utilizing engine restarts and RNG manipulation.
- Get stable Rust, then do
rustup target add i686-unknown-linux-gnu
- Install 32-bit FFMpeg libraries. FFMpeg 3.4 is known to work; FFMpeg 4 will not work.
- Install 32-bit SDL2.
- Install 32-bit OpenCL.
PKG_CONFIG_ALLOW_CROSS=1 cargo build --release
Look at how the Travis build is set up for minimal build of the dependencies.