fix: make QA videos seekable with faststart and frequent keyframes

moov atom was at end of file (8.6MB offset) — browser had to download
the entire video before seeking. Keyframes were only every 10 seconds.

Add -movflags +faststart (moov before mdat) and -g 60 (keyframe every
2.4s at 25fps) to ffmpeg conversion.
This commit is contained in:
snomiao
2026-03-20 16:30:04 +00:00
parent 1cd9e171c6
commit b500f826fc

View File

@@ -385,6 +385,7 @@ jobs:
echo "Converting $WEBM ($(du -h "$WEBM" | cut -f1)) to mp4"
ffmpeg -y -i "$WEBM" \
-c:v libx264 -preset ultrafast -crf 23 -pix_fmt yuv420p \
-movflags +faststart -g 60 \
"$dir/qa-session.mp4" 2>&1 | tail -5 \
|| echo "ffmpeg conversion failed for $WEBM (non-fatal)"