feat: transcode ShumiLand reels to web-optimized MP4+WebM for autoplay
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
75f0d6897a
commit
8c3e28e507
3 changed files with 20 additions and 0 deletions
BIN
public/videos/shumiland-reels.mp4
Normal file
BIN
public/videos/shumiland-reels.mp4
Normal file
Binary file not shown.
BIN
public/videos/shumiland-reels.webm
Normal file
BIN
public/videos/shumiland-reels.webm
Normal file
Binary file not shown.
20
scripts/transcode-video.sh
Executable file
20
scripts/transcode-video.sh
Executable file
|
|
@ -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"
|
||||
Loading…
Add table
Reference in a new issue