Наложить музыку на видео
Подложите свою песню под ролик: обрезанную по длине и с затуханием в конце. Ничего не загружается.
Файл читает и перекодирует ваш собственный браузер. Ни один запрос никуда его не отправляет — у этой страницы просто нет сервера, куда его загружать.
Вопросы
Исходный звук видео сохранится?
Нет: музыка его заменяет. Чтобы просто убрать звук без музыки, есть инструмент «Убрать звук из видео» на этом сайте.
Что если песня короче видео?
Музыка проиграет один раз, а остаток видео будет без звука; инструмент скажет, где она закончилась. Начните песню раньше или возьмите длиннее.
Можно смонтировать видео в такт песне?
Не здесь: эта страница подкладывает песню под один ролик как есть. Монтаж нескольких клипов в бит делает приложение Life2Film для iPhone: оно само выбирает лучшие моменты и ставит склейки на доли.
Что-то загружается на сервер?
Нет. Браузер сам читает оба файла и пишет результат, ничего не уходит с устройства.
Пусть это сделает ваш агент: Add Music to Video: подключите MCP Life2Film (52 видеоинструментов, гайды и навыки)
claude mcp add --transport http life2film https://life2film.com/mcpПромпт, навык
Вставьте агенту:
Use Life2Film's add-music-to-video on my file: call get_tool("add-music-to-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("add-music-to-video") · Файл навыка: /tools/add-music-to-video/skill.md · all skills
Другие инструменты
Встроить в свой проект
Laying music under a video, 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, BlobSource, BufferTarget, Mp4OutputFormat, ALL_FORMATS,
EncodedPacketSink, EncodedVideoPacketSource, AudioBufferSink, AudioBufferSource } from 'mediabunny';
const v = await new Input({ source: new BlobSource(video), formats: ALL_FORMATS }).getPrimaryVideoTrack();
const a = await new Input({ source: new BlobSource(music), formats: ALL_FORMATS }).getPrimaryAudioTrack();
const out = new Output({ format: new Mp4OutputFormat(), target: new BufferTarget() });
const vs = new EncodedVideoPacketSource(v.codec); out.addVideoTrack(vs);
const as = new AudioBufferSource({ codec: 'aac', bitrate: 192e3 }); out.addAudioTrack(as);
await out.start();
let first = true;
for await (const p of new EncodedPacketSink(v).packets()) { await vs.add(p, first ? { decoderConfig: await v.getDecoderConfig() } : undefined); first = false; }
for await (const { buffer } of new AudioBufferSink(a).buffers(0, await v.computeDuration())) await as.add(buffer);
vs.close(); as.close(); await out.finalize(); Add "add music to a video" to my project, running entirely in the browser.
Requirements:
- Use "mediabunny". Copy the video packets as they are (EncodedPacketSink -> EncodedVideoPacketSource,
decoderConfig on the first packet); never re-encode the picture.
- Decode the music with AudioBufferSink from a chosen offset, cut it at the video's length, apply a
linear fade-out over the last seconds, and encode with AudioBufferSource (AAC in MP4).
- Pick the audio codec with getFirstEncodableAudioCodec for the container; say so when none exists.
- When the music is shorter than the video, say where it ran out.
Reference implementation: https://life2film.com/tools/add-music-to-video/
The engine is documented for agents, and every tool page is available as
markdown by adding .md to its address.