Обрезать видео по размеру
Сделайте из горизонтального ролика вертикальный или квадратный и выберите, какая часть останется. Ничего не загружается.
Файл читает и перекодирует ваш собственный браузер. Ни один запрос никуда его не отправляет — у этой страницы просто нет сервера, куда его загружать.
Вопросы
Как сделать горизонтальное видео вертикальным для Reels или TikTok?
Выберите 9:16, сдвиньте рамку на нужную часть и нажмите «Обрезать». Получится самая высокая область 9:16 вашего видео в её собственном разрешении; Instagram и TikTok растянут её на весь экран.
Ухудшится ли качество?
Оставшиеся пиксели не растягиваются, но обрезка всегда перекодирует картинку, это стоит немного качества один раз. Из горизонтального 1080p вертикаль 9:16 получится 606×1080 — на экране телефона этого достаточно.
Видео куда-то загружается?
Нет. Браузер сам декодирует, обрезает и кодирует видео через WebCodecs, ничего не уходит с устройства.
Пусть это сделает ваш агент: Crop Video: подключите MCP Life2Film (52 видеоинструментов, гайды и навыки)
claude mcp add --transport http life2film https://life2film.com/mcpПромпт, навык
Вставьте агенту:
Use Life2Film's crop-video on my file: call get_tool("crop-video") on the life2film MCP, then do it.Claude.ai / ChatGPT connector: https://life2film.com/mcp · Cursor: {"mcpServers":{"life2film":{"url":"https://life2film.com/mcp"}}}
get_tool("crop-video") · Файл навыка: /tools/crop-video/skill.md · all skills
Другие инструменты
Встроить в свой проект
Cropping a video to a shape, locally — the same way this page does it, on the user's machine, with no server. Take the code, or hand the prompt to a coding agent.
import { Input, Output, Conversion, BlobSource, BufferTarget, Mp4OutputFormat, ALL_FORMATS } from 'mediabunny';
const input = new Input({ source: new BlobSource(file), formats: ALL_FORMATS });
const output = new Output({ format: new Mp4OutputFormat(), target: new BufferTarget() });
// 1920x1080 -> centred 9:16
const conversion = await Conversion.init({ input, output, video: { crop: { left: 656, top: 0, width: 606, height: 1080 } } });
await conversion.execute(); Add "crop a video to 9:16 / 1:1 / 4:5" to my project, running entirely in the browser.
Requirements:
- Use "mediabunny" (WebCodecs) with the video crop option. Compute the largest rectangle of the
chosen shape inside the displayed picture, with even width and height.
- Let the user slide it along the free axis over a live preview, with the outside dimmed.
- Crop in display coordinates (after rotation) and draw the rotation into the frames.
- Write results in pieces (StreamTarget), not one ArrayBuffer.
Reference implementation: https://life2film.com/tools/crop-video/
The engine is documented for agents, and every tool page is available as
markdown by adding .md to its address.