Видео в MP3
Достаньте звук из видео и сохраните как MP3, WAV или OGG. Ничего не загружается — конвертация идёт на вашей машине.
Файл читает и перекодирует ваш собственный браузер. Ни один запрос никуда его не отправляет — у этой страницы просто нет сервера, куда его загружать.
Вопросы
Моё видео загружается на сервер?
Нет. Браузер декодирует файл и кодирует звук локально, поэтому никуда ничего не уходит. Здесь это важнее, чем при других конвертациях: звук из видео обычно достают тогда, когда видео личное — лекция, интервью, собственная запись, — и ему нечего делать на чужом сервере ради ответа, который ноутбук даёт сам.
Какой формат выбрать?
MP3, если файл вообще куда-то пойдёт: его играет всё, и на 192 кбит/с он прозрачен для речи и близок к тому для музыки. WAV — если звук идёт в редактор или в расшифровку, он не сжат и ничего не теряет. OGG (Vorbis) меньше MP3 при том же качестве, но хуже поддержан за пределами браузеров и Android.
Какой битрейт нужен?
Для речи 96–128 кбит/с более чем достаточно и вдвое уменьшает файл против значения по умолчанию. Для музыки 192 кбит/с — привычная золотая середина, а 320 — максимум MP3. Просить больше, чем было записано в источнике, бесполезно: конвертация подкаста со 128 кбит/с в 320 даст файл в два с половиной раза больше, звучащий точно так же.
Почему WAV такой большой?
Потому что он не сжат — примерно 10 МБ на минуту в стерео при 44,1 кГц, независимо от содержимого. В этом и смысл: ничего не выбрасывается. Если размер мешает, а звук не идёт в редактор, MP3 займёт двадцатую часть, и разницы вы не услышите.
Можно взять только часть видео?
На этой странице нет — она конвертирует файл целиком. Сначала обрежьте видео обрезчиком и конвертируйте результат, либо конвертируйте всё и вырежьте звук уже там, куда вы его несёте.
Другие инструменты
Build this into your own project
Pulling audio out of 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.
// npm i mediabunny @mediabunny/mp3-encoder
import { Input, Output, Conversion, BlobSource, BufferTarget, Mp3OutputFormat, ALL_FORMATS } from 'mediabunny';
import { registerMp3Encoder } from '@mediabunny/mp3-encoder';
registerMp3Encoder(); // LAME compiled to WASM; only needed for MP3 output
export async function extractAudio(file, { bitrate = 192_000, mono = false } = {}) {
const input = new Input({ source: new BlobSource(file), formats: ALL_FORMATS });
const output = new Output({ format: new Mp3OutputFormat(), target: new BufferTarget() });
const conversion = await Conversion.init({
input,
output,
video: { discard: true }, // leave the picture behind
audio: { bitrate, ...(mono ? { numberOfChannels: 1 } : {}) },
});
if (!conversion.isValid) throw new Error('No audio track, or it cannot be decoded');
await conversion.execute();
return new Blob([output.target.buffer], { type: 'audio/mpeg' });
}
const mp3 = await extractAudio(file, { bitrate: 192_000 }); Add "extract the audio from a video" to my project. It must run entirely in the browser — the
files are personal (lectures, interviews, recordings) and must not be uploaded anywhere.
Requirements:
- Use "mediabunny" for decoding and "@mediabunny/mp3-encoder" for MP3 (LAME compiled to WASM).
Import the MP3 encoder lazily — only load it when the user actually picks MP3.
- Support MP3, WAV and OGG output. Set video: { discard: true } so only the audio is written.
- WAV has no bitrate to choose: hide that control when WAV is selected, because its size is
sampleRate x 2 bytes x channels and nothing else.
- Predict the output size before converting, and read the real channel count and sample rate off the
file to do it — assuming stereo doubles the estimate for a mono source. For Vorbis apply about 0.7
to the nominal bitrate, since it runs variable-rate and lands under.
- Tell the user when a requested bitrate exceeds what the source was recorded at: it makes the file
bigger without making it sound better.
- Fail clearly when the file has no audio track at all, before doing any work.
Reference implementation: https://life2film.com/tools/video-to-mp3/
The engine is documented for agents, and every tool page is available as
markdown by adding .md to its address.