commit 85d13dbd04204c7bc3a3dc7305b8267edb09d1d4 parent 2cdf6a29e4525bd057495e10861ab9a609acd5b6 Author: mtmn <miro@haravara.org> Date: Mon, 27 Apr 2026 23:04:20 +0200 dotfiles: convert to webm before upload Diffstat:
| M | modules/mixins/dotfiles/bin/recup | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/mixins/dotfiles/bin/recup b/modules/mixins/dotfiles/bin/recup @@ -1,10 +1,10 @@ #!/bin/sh cd ~/misc/recordings || exit 1 - PICKED=$(eza --oneline --reverse --sort=created | fzf --reverse --preview='stat {}') if [ -n "$PICKED" ]; then - aws s3 cp "$PICKED" "s3://mine/recordings/$PICKED" - shirt "$(aws s3 presign "s3://mine/recordings/$PICKED" --expires-in 604800 | tr -d '\n')" + ffmpeg -i "$PICKED" -c:v libvpx-vp9 -deadline realtime -cpu-used 8 -crf 30 -b:v 0 -c:a libopus -b:a 128k -f webm - | + aws s3 cp - "s3://mine/recordings/${PICKED%.*}.webm" --content-type video/webm + shirt "$(aws s3 presign "s3://mine/recordings/${PICKED%.*}.webm" --expires-in 604800 | tr -d '\n')" fi