#!/bin/sh
IN="/mnt/chvnge.com/Videos/2026/Photoshoot Tübingen/index.mp4"
OUT="/mnt/chvnge.com/Videos/2026/Photoshoot Tübingen/_thumbs/web.mp4"
nice -n 19 ffmpeg -y -loglevel error -i "$IN" \
  -vf "scale=1920:-2" \
  -c:v libx264 -preset veryfast -crf 23 \
  -c:a aac -b:a 128k -movflags +faststart \
  "$OUT" </dev/null
echo "rc=$? size=$(du -h "$OUT" 2>/dev/null | cut -f1)" >> /var/log/chvnge-webvideo.log
