How Video Crop Works
AnyTool crops video in the browser with a self-hosted ffmpeg engine (no CDN). You position a draggable, resizable crop box over the preview (mouse or touch) or pick an aspect preset — 16:9, 9:16, 1:1, 4:3, 4:5 — which locks the box ratio. The on-screen rectangle is mapped to the video's intrinsic pixels using the displayed-size-to-source scale factor, clamped to even integers within bounds, and passed to ffmpeg's crop=w:h:x:y filter; the result is re-encoded with H.264 while copying the audio. Everything runs on the device.
- Runs client-side — the video is never uploaded
- Self-hosted ffmpeg core — no CDN
- Draggable/resizable crop box (mouse + touch)
- Aspect presets 16:9, 9:16, 1:1, 4:3, 4:5 + free
- On-screen rect mapped to real pixels, even-clamped
- Audio copied through; no backend, no watermark
