2023-01-11 19:44:42 +03:00
# avt: ali's (h264) video tool
2023-01-11 20:02:46 +03:00
2023-01-11 19:44:42 +03:00
avt: ali's (h264) video tool
Usage: ./avt rec|record
./avt nvid|normalize
./avt help
Environment variables:
avt_cl: enable opencl [set to enable]
2023-01-11 20:02:46 +03:00
2023-01-11 19:44:42 +03:00
Commands:
2023-01-11 20:02:46 +03:00
2023-01-11 19:44:42 +03:00
./avt rec / record
Record screen and audio in very high quality
Usage: ./avt rec [output directory]
Enviroment variables:
2023-01-11 19:59:39 +03:00
rec_out: set output file (default: $HOME/Desktop/$(date +%F_%H-%M-%S).mkv)
2023-01-11 19:44:42 +03:00
rec_fps: set framerate (default: 60)
rec_res: set resolution (default: 1920x1080)
2023-01-11 19:59:39 +03:00
rec_display: choose the display to record (default: $DISPLAY)
2023-01-11 19:44:42 +03:00
rec_crf: set crf, use 0 for lossless (default: 6)
rec_adev: set pulseaudio source devices (default: default and first running monitor) [array]
rec_ar: set audio samplerate (default: 192000)
rec_normalize: immediately start nvid after recording ends [set to enable]
2023-01-11 20:02:46 +03:00
2023-01-11 19:44:42 +03:00
./avt nvid / normalize
Normalize and compress video & audio
Usage: ./avt nvid < file > [outfile]
Environment variables:
nvid_preset: set preset (default: veryslow)
nvid_vrate: replace -crf options
nvid_crf: set crf value (default: 21)
nvid_rgb: use libx264rgb [set to enable]
nvid_pixfmt: set pixel format (default: yuv420p)
nvid_profile: set profile (default: high)
nvid_ac: set audio codec (default: aac)
nvid_ba: set audio bitrate (default: 160k)
nvid_ar: set audio samplerate (default: 48000)
2023-01-11 20:02:46 +03:00
# Dependencies
- `bash`
- `ffmpeg`
- `perl`
- `pactl`
# Requirements
This assumes you use X11, PipeWire and pipewire-pulse.
You also need a pretty fast disk and a lot of free space to record with this tool with the default settings. Consider increasing `rec_crf` if you don't have those.