Skip to content

Instantly share code, notes, and snippets.

@ryanmt
ryanmt / peek.sh
Created October 2, 2023 22:56 — forked from jpenalbae/peek.sh
Record desktop area on linux using slop and ffmpeg
#!/bin/bash
# Video Quality
# The range of the CRF scale is 0–51, where 0 is lossless, 23 is the default,
# and 51 is worst quality possible. A lower value generally leads to higher
# quality, and a subjectively sane range is 17–28
QUALITY=28
# check if slop command exists
if ! command -v slop &> /dev/null