Lossless X11 screencast recording on OpenBSD using ffmepg & sndio
MIT License
mavid
(Make Video) is utility to record screencasts of your X11 desktop using ffmpeg, inspired by maim
.
By default, it records lossless video & audio using the libx264rgb & flac encoders, respectively, into a single Matroska (.mkv
) container file. The lossless MKV recording can then be transcoded into smaller, lossy formats in different container formats. This generally reduces CPU load while recording, which is helpful on slower processors, but produces significantly larger recording files.
NOTE: It currently only supports OpenBSD due to its reliance on sndio and especially OpenBSD's sndioctl
.
ffmpeg
and slop
packages:pkg_add ffmpeg slop
sysctl kern.audio.record=1
mavid <file>
Alternatively, you can select a portion of your display to record prior to starting recording by executing mavid -s
:
mavid -s <file>
Ctrl-C
to cancel recording. (Pressing q
, which normally also stops ffmpeg
recording because of the way video & audio are being piped.)fauxstream
(example of piping x11grab
video & sndio
audio into a single file with ffmpeg
)Released under the MIT License.