Film-school shot study. Record a clip on the phone, pull frames out of it, and study them side-by-side in a browser gallery (published with GitHub Pages).
Raw video is never committed — .gitignore blocks *.mp4/*.mov.
Only the small .webp frames go into git.
ffmpeg (with libwebp), python3, bash. On Termux: pkg install ffmpeg python.
scripts/frames.sh # newest clip in /sdcard/DCIM/Camera, 1 frame / 2s
scripts/frames.sh path/to/clip.mp4 5 # specific clip, 1 frame / 5s
SERVE=1 scripts/frames.sh # extract, then serve at http://localhost:8000
scripts/frames.sh --serve # only serve the galleryClip folder can be changed with CAMERA=/other/path, port with PORT=9000.
docs/index.html generated gallery (GitHub Pages serves /docs)
docs/frames/<clip>/ extracted .webp frames
scripts/frames.sh extract + rebuild + serve
Settings → Pages → Source: main branch, /docs folder.
main is protected: no direct pushes, no force-push, and the CI / lint check must pass.
git switch -c my-change # 1. branch
# ...edit...
git add -A && git commit -m "Explain what and why"
git push -u origin my-change # 2. push the branch
gh pr create --fill # 3. open a pull request
gh pr checks --watch # 4. wait for CI
gh pr merge --squash --delete-branch # 5. merge
git switch main && git pullOn GitHub: Code → Codespaces → Create codespace on main. ffmpeg and shellcheck
install automatically; run scripts/frames.sh --serve and the gallery opens on port 8000.
(Raw clips aren't in the repo, so upload one into the codespace to extract frames.)