spcd/spcd.sh
Marc Beninca 5fcb208d0b
Some checks failed
/ arch (push) Failing after 8s
/ alpine (push) Failing after 7s
/ fedora (push) Failing after 6s
/ debian (push) Failing after 7s
/ opensuse (push) Failing after 7s
/ ubuntu (push) Failing after 6s
/ alma (push) Failing after 7s
/ rocky (push) Failing after 6s
spcd.sh
2024-09-08 02:22:18 +02:00

27 lines
429 B
Bash
Executable file

#! /usr/bin/env sh
gource \
--auto-skip-seconds 1 \
--date-format "%Y / %m / %d ⋅ %H : %M : %S" \
--disable-progress \
-f \
--hide mouse,usernames \
--highlight-dirs \
--key \
--output-framerate 60 \
--seconds-per-day 2.0 \
--output-ppm-stream - \
| \
ffmpeg \
-codec:v ppm \
-format image2pipe \
-framerate 120 \
-i - \
-codec:v libx264 \
-preset veryslow \
-qp 23 \
-movflags \
+faststart \
-pix_fmt yuv420p \
-y \
spcd.mp4