video-resize-aspect
Use when changing a video's ASPECT RATIO or RESOLUTION for social delivery (9:16 / 1:1 / 4:5 / 16:9), i.e. turning a horizontal source into a vertical Reel/Short, squaring a clip, or scaling to a fixed canvas. Covers the exact scale + crop (cover) filter math this codebase uses, the SAR/DAR +.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- video-resize-aspect
- description
- Use when changing a video's ASPECT RATIO or RESOLUTION for social delivery (9:16 / 1:1 / 4:5 / 16:9), i.e. turning a horizontal source into a vertical Reel/Short, squaring a clip, or scaling to a fixed canvas. Covers the exact scale + crop (cover) filter math this codebase uses, the SAR/DAR +.
02 资源文件 1
- 参考文档bmad-skill-manifest.yaml717 B
03 SKILL.md 正文
Video resize / aspect-ratio change (geometry layer)
How to change a video's frame size or aspect ratio correctly in the media_studio
sidecar. This is the pure geometry layer: dimension math + the ffmpeg
-vf filter chain. Subject tracking, beat zoom, and multi-speaker layout sit on
top of it and all funnel through the same scale=...:flags=lanczos,setsar=1
primitive documented here.
Source of truth (read these — every command below is copied from them)
sidecar/media_studio/features/aspect.py— the canonical aspect registry:ASPECT_PRESETS,output_dimensions(),parse_aspect(),even(). This is the single source of truth for what 9:16 / 1:1 / 4:5 mean. Both reframe engines and the export catalog import it so they can never drift.sidecar/media_studio/features/director_op_engines.py(build_reframe_argv, ~L555-588) — the in-engine center-crop → scale aspect change.sidecar/media_studio/features/reframe_claudeshorts.py(build_reframe_argv, ~L387-420) — the one crop+scale pass withflags=lanczos,setsar=1+ libx264/aac.sidecar/media_studio/features/reframe_multispeaker.py(~L559-561) — per-regioncrop=...,scale=...:flags=lanczos,setsar=1chain (same primitive, tiled).sidecar/media_studio/ffmpeg.py—build_convert_argv(the genericscaleoption),resolve_binary, and the progress-streamingrun()(the stderr-drain- out_time pitfalls live here).
sidecar/media_studio/features/media_compat.py(build_proxy_argv, ~L243-274)
1. The dimension math (from aspect.py — do NOT re-derive)
2. The recipe this codebase actually uses: COVER (center-crop → scale)
2a. Simple, source-agnostic aspect change (director_op_engines.py)
director_op_engines.build_reframe_argv (L570-572)
2b. The quality pass (reframe_claudeshorts.py / reframe_multispeaker.py)
reframe_claudeshorts.build_reframe_argv (L406-408)
2c. Generic scale-only (no aspect change) — ffmpeg.py convert option
ffmpeg.build_convert_argv (L157-160)
3. Pitfalls that actually bite (each maps to repo code/comments)
4. "Contain / letterbox-pad" — NOT in this repo (standard ffmpeg, flagged)
STANDARD FFMPEG (not in this repo) — fit-inside + center-pad to 1080x1920:
5. Resize-in-place / scaling effects (zoom.py)
04 同仓库更多 Skills
clarify-requirements
Resolve genuine pre-execution ambiguity by scanning repo context, generating 1-6 grounded options, and asking 1-3 focused questions via AskUserQuestion. NOT for mid-task use (injection risk); NOT when the goal is already unambiguous; use to disambiguate vague prompts before any file edits.
openmm-md
Run FREE, open-source, Windows-native GPU molecular dynamics via the openmm-md MCP (OpenMM + CUDA on the local NVIDIA GPU). Use for protein / protein-ligand MD when you want a free stack or are on Windows without a Schrodinger license. Covers the full workflow (prepare, solvate, minimize, equilibrate, production, analyze, mmgbsa) AND an honest decision guide vs Schrodinger Desmond, including how to run Desmond legitimately on Linux or a cloud GPU with a real license. This is a deliberately LESSER free alternative and does NOT replace the schrodinger MCP tools. Do NOT use it to pick a free tool when a validated FEP+, WaterMap, IFD-MD, or Prime MM-GBSA result is actually required.
visual-review
Take screenshots of web pages and UI using Playwright for visual review and iteration
status
Diagnostic status report — shows metaswarm installation state, project setup, and potential issues
start
Use when starting work on any task, when the user mentions metaswarm, or when the user wants to begin tracked development work
setup
Interactive project setup — detects your project, configures metaswarm, writes project-local files