A tool for capturing Half-Life videos on Linux.
hl-capture is deprecated. bxt-rs provides new video recording tools which use Vulkan and support Windows.
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 mp4
, mkv
or webm
. This, together with utilizing multiple threads and GPU-accelerated processing, makes hl-capture way faster than HLAE or Source’s startmovie.
Check the wiki for installation and usage instructions.
i686-unknown-linux-gnu
target.
rustup toolchain add 1.38.0
rustup run 1.38.0 rustup target add i686-unknown-linux-gnu
ffmpeg
crate which, unfortunately, went unmaintained several years ago.
git clone --depth=1 --branch=release/3.4 https://github.com/FFMpeg/FFMpeg.git ffmpeg
cd ffmpeg
./configure --disable-programs --disable-doc --enable-cross-compile --arch=x86_32 --target_os=linux --prefix="$PWD/install" --cc="gcc -m32" --disable-static --enable-shared
make && make install
PKG_CONFIG_ALLOW_CROSS=1 cargo +1.38.0 build --release
PKG_CONFIG_ALLOW_CROSS=1 PKG_CONFIG_PATH=/path/to/ffmpeg/install/lib/pkgconfig LD_LIBRARY_PATH=/path/to/ffmpeg/install/lib cargo +1.38.0 build --release
Look at how the Travis build is set up for minimal build of the dependencies.