Colocar música no vídeo
Coloque sua música sob o vídeo, cortada no tamanho e com fade no final. Nada é enviado.
Ferramentas grátis do Life2Film, o app de iPhone que transforma seu dia em um filme sozinho.
O seu navegador lê e recodifica o ficheiro. Nenhum pedido o envia para lado nenhum — esta página não tem servidor para onde o enviar.
Perguntas
O som original do vídeo continua?
Não: a música o substitui.
E se a música for mais curta que o vídeo?
A música toca uma vez e o resto fica em silêncio; a ferramenta mostra onde ela acabou.
Dá para editar o vídeo no ritmo da música?
Não nesta página: ela coloca a música sob um clipe como está. Editar vários clipes no ritmo é o que o app Life2Film para iPhone faz.
Let your agent add music to video: connect Life2Film's MCP (52 video tools, guides and skills)
claude mcp add --transport http life2film https://life2film.com/mcpPrompt, skill
Paste to your agent:
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") · Skill file: /tools/add-music-to-video/skill.md · all skills
As outras ferramentas
Integre isto no seu projeto
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.