diff --git a/public/videos/shumiland-reels.mp4 b/public/videos/shumiland-reels.mp4 new file mode 100644 index 0000000..204792b Binary files /dev/null and b/public/videos/shumiland-reels.mp4 differ diff --git a/public/videos/shumiland-reels.webm b/public/videos/shumiland-reels.webm new file mode 100644 index 0000000..a733a8a Binary files /dev/null and b/public/videos/shumiland-reels.webm differ diff --git a/scripts/transcode-video.sh b/scripts/transcode-video.sh new file mode 100755 index 0000000..2e2a337 --- /dev/null +++ b/scripts/transcode-video.sh @@ -0,0 +1,20 @@ +#!/bin/bash +set -euo pipefail +SRC="${1:-/Users/ai_leed/Downloads/ShumiLand_Reels_.mp4}" +DEST_DIR="public/videos" +mkdir -p "$DEST_DIR" + +echo "Transcoding H.264..." +ffmpeg -y -i "$SRC" \ + -vcodec libx264 -crf 28 -preset slow -movflags +faststart \ + -vf "scale='min(720,iw)':-2" -an \ + "$DEST_DIR/shumiland-reels.mp4" + +echo "Transcoding VP9..." +ffmpeg -y -i "$SRC" \ + -c:v libvpx-vp9 -crf 34 -b:v 0 -row-mt 1 \ + -vf "scale='min(720,iw)':-2" -an \ + "$DEST_DIR/shumiland-reels.webm" + +echo "Done:" +ls -lh "$DEST_DIR"