Extracting audio from video: lectures, podcasts and music without losing quality

A two-hour lecture filmed on a phone is seven gigabytes of video whose only useful part is the sound; the same goes for a recorded interview, a webinar or a gig filmed from the crowd. Getting the audio out is a small job, but there are two genuinely different ways to do it, and the wrong one either wastes an hour of encoding or quietly degrades a recording you cannot make again. By the end of this guide you will know which codec is inside your video, when you can lift it out untouched and when you must re-encode, how to trim the result to the second without another encode, and how to get a multi-hour file through an ordinary laptop with the tools on this site.

Two different jobs: copying the track and re-encoding it

A video file is a container — MP4, MOV, WebM, MKV — holding separate streams: one video, one or more audio, sometimes subtitles. The audio stream is already a finished, compressed bitstream in its own codec (AAC, Opus, MP3, AC-3), so “extracting” it can mean one of two things.

OperationWhat happensTimeQualityUse it when
Stream copy (demux)The audio packets are written into a new, audio-only container. Nothing is decoded.Seconds — limited by disk, not CPUBit-identical to the sourceThe codec inside already suits the destination
TranscodeThe audio is decoded to raw samples and encoded again with another codec or bitrate.Minutes, proportional to durationOne more lossy generation (unless the target is WAV or FLAC)The player only takes MP3, you need a smaller file, or an editor wants WAV

The stream copy is one command on any machine with FFmpeg: ffmpeg -i lecture.mp4 -vn -c:a copy lecture.m4a. -vn drops the video stream and -c:a copy forbids re-encoding, so a two-hour file finishes in the time it takes to read from disk and the result is exactly as good as the audio was inside the video. A transcode from a lossy source stacks two sets of losses: AAC at 128 kb/s re-encoded to MP3 at 128 kb/s is worse than either. Copy if you can; transcode only when the codec in the video is wrong for where it is going.

Which audio is inside which video

The container tells you the likely codec, and the codec tells you which file type can hold it without re-encoding.

ContainerUsual audio codecCopy it out asTranscode when
MP4 / M4V (phones, cameras, Zoom, downloads)AAC-LC; occasionally MP3 or AC-3.m4a — the same container, audio onlyThe player is MP3-only, or you want a smaller or mono file
MOV (iPhone, many stills cameras)AAC; some cameras record uncompressed PCM.m4a; PCM becomes .wavPCM is about 691 MB per hour — transcode before sharing
WebM (browser screen recorders, MediaRecorder)Opus; Vorbis in older files.ogg or .opusApple’s Music app and most car stereos do not play Opus
MKV (OBS, rips)Anything: AAC, AC-3, E-AC-3, DTS, FLAC, OpusWhatever matches the codecAC-3 and DTS are surround formats phones will not play
AVI / WMV, .mts / .m2ts camcorder filesMP3, PCM or WMA; AC-3.mp3 / .wav / .ac3WMA and AC-3 for anything outside Windows or a TV

To see exactly what you have, ask the file:

ffprobe -v error -select_streams a:0 \
  -show_entries stream=codec_name,sample_rate,channels,bit_rate \
  -of default=noprint_wrappers=1 lecture.mp4
# codec_name=aac
# sample_rate=48000
# channels=2
# bit_rate=128003

Without a terminal, VLC shows the same under Tools → Codec Information (Ctrl+J, Cmd+I on a Mac). If -select_streams a:0 prints nothing, the video has no audio stream at all — a common surprise with screen recordings made without a microphone. The containers and codecs guide covers the video side of the same question.

What the tools on this site actually do

Extract Audio

Extract Audio has no options: processing starts the moment a file lands, in FFmpeg compiled to WebAssembly inside the tab. It runs the equivalent of ffmpeg -i lecture.mp4 -vn lecture_output.mp4. Because no audio codec is named, FFmpeg re-encodes the sound with its built-in AAC encoder at that encoder’s default rate — 128 kb/s for stereo — so this is a transcode, not a stream copy, even when the source was already AAC. The output is an MP4 container holding a single audio stream, served as audio/mp4; that is precisely what an M4A is, so rename lecture_output.mp4 to lecture_output.m4a if a music library treats .mp4 as video. Several files at once process one after another into converted-videos.zip, and because this tool always takes the FFmpeg path the 2 GB input ceiling described below applies.

Convert to MP3 and its siblings

Convert to MP3 accepts audio and video alike, and every run is ffmpeg -i input -vn -c:a libmp3lame -q:a 2 output.mp3. The -vn is why a video can be dropped straight on it — extraction and conversion in one pass — and -q:a 2is LAME’s V2 preset: variable bitrate averaging around 190 kb/s, generally regarded as transparent for music. VBR spends fewer bits on silence and simple passages, so a lecture comes out smaller per minute than a song. No bitrate, channel or sample-rate settings are exposed. The result is lecture_output.mp3; a multi-file drop encodes sequentially into converted-mp3.zip. The sibling converters share the shell with different encoders: M4A (-c:a aac -b:a 192k), WAV (16-bit PCM), FLAC and OGG (-c:a libvorbis -q:a 5). All take a video as input; none copies the stream.

  • Listen on a phone or in a podcast app — drop the video on Convert to MP3. One step, plays everywhere.
  • Send to a transcription service or an editor — WAV if size is no object, M4A otherwise.
  • Keep the original AAC bit-for-bit — the desktop -c:a copy command; Extract Audio is the nearest browser equivalent but it re-encodes.
  • Only part of it is wanted — extract first, then cut with Trim Audio. Never the other way round.

Trimming without another encode

Trim Audiois the one tool here that does not re-encode. Load a file, find the in and out points in the player, press “Use current” beside Start and End (or type seconds in 0.1 s steps) and press “Trim & download”. Underneath it runs ffmpeg -i lecture_output.mp4 -ss 754.2 -to 3120 -c copy lecture_output_trimmed.mp4: packets are copied, not decoded; FFmpeg discards those before the start time and stops writing at the end time.

This is where audio behaves better than video. Compressed video can only be decoded from a keyframe, and keyframes sit one to ten seconds apart, so a copy-trim of a video snaps its start back to the previous keyframe. Audio frames are tiny and each is independently decodable: an AAC-LC frame is 1024 samples, 21.3 ms at 48 kHz or 23.2 ms at 44.1 kHz; an MP3 frame is 1152 samples, 26.1 ms at 44.1 kHz; an Opus frame is 20 ms. The cut lands within one frame of the time you typed.

Three details from the source. The output keeps the input’s extension — _trimmed. plus whatever you gave it — so trimming the extracted lecture_output.mp4 yields lecture_output_trimmed.mp4, still audio only. The trimmer accepts video files too, but -c copy copies every stream, so dropping the original lecture video on it produces a shorter video, not an audio file: extract first, then trim. And it is only a cut — no fade-in, fade-out, gain or normalisation — so put the in point in a pause, not mid-word.

Muting a video is the opposite job

Mute Videokeeps the picture and removes the audio stream entirely — gone from the file, not turned down. The options dialog opens with “Mute video” already ticked; Convert to, Resolution and Target file size are optional. For an MP4, MOV, MKV or WebM whose codec your browser can decode, the job runs through the device’s hardware path: the audio track is discarded and, as long as you leave resolution, size and compression alone, the video track is copied through untouched, which is why a mute of a large file finishes quickly. For AVI, FLV and WMV, or a codec the browser cannot decode, it falls back to FFmpeg with -an, which re-encodes the picture with libx264 and caps output at 1080p. Either way the result is name_output.ext with no audio stream — ffprobe shows a single Stream #0:0: Video line. If you want both halves, extract the audio first, then mute.

Bitrate and format, by what the recording is

RecordingFormatRateSize per hour
Lecture, interview, voice memoMP3 or AAC96–128 kb/s; mono if there is one speaker57.6 MB at 128 kb/s; 28.8 MB at 64 kb/s mono
Podcast episode you will publishMP3128 kb/s stereo, or 96 kb/s mono for speech only57.6 MB / 43.2 MB
Music, gig recordingCopy the original AAC; else AAC 256 or MP3 V0/320256–320 kb/s115–144 MB
Archive or editing masterWAV or FLAC — from a PCM source only16-bit 48 kHz = 1536 kb/s691 MB as WAV; roughly half as FLAC

The arithmetic is bitrate × 3600 ÷ 8 ÷ 1000. Mono halves the size, and a lecture is mono anyway: the camera’s single microphone is duplicated into two identical channels. The MP3 converter here is fixed at V2 and keeps the source’s channels, so for exactly 96 kb/s mono the command is ffmpeg -i lecture.mp4 -vn -ac 1 -b:a 96k lecture.mp3. Two conversions never help: a FLAC made from AAC is a large file with AAC quality, and MP3 320 from AAC 128 is AAC 128 in a bigger box. The audio formats guide goes through each codec in turn.

Two-hour recordings on a laptop

The in-browser FFmpeg loads the whole input into memory before it starts and cannot take files above roughly 2 GB — the options dialog says so: can't load files above ~2 GB. A two-hour 1080p phone recording is well past that: Apple’s own figures are 60 MB per minute for HEVC and 130 MB per minute for H.264 at 1080p30, so 7.2 GB or 15.6 GB. The desktop -c:a copy command handles any size in seconds. In the browser, shrink the video first with Compress Video: on its hardware path it re-encodes only the picture and carries the audio track across unchanged, and above 1.5 GiB on Chrome or Edge it streams the result straight to a file you choose, so the 2 GB ceiling does not apply. A 480p version of a lecture is a few hundred megabytes, and Extract Audio or Convert to MP3 takes it from there — the audio has still only been encoded once.

Encoding is CPU-bound and runs in the tab, so plug in and keep the tab in the foreground — browsers throttle background tabs. If a session runs to several hours, cut it into parts with the trimmer (0 to 3600, then 3600 to 7200) and name them so they sort: 2026-09-06-lecture-07-part2.mp3. Faster playback belongs to the player, not the file — VLC steps speed by 10% with ] and [, and every podcast app offers 1.25× to 2× with pitch correction — so never bake a speed change into the audio; it cannot be undone.

Troubleshooting

  • Conversion failed. The file may be unsupported, corrupted, or contain no audio track. — from the audio converters. The usual cause is the last one: a screen recording made without a microphone, or a video someone already muted. FFmpeg itself would report Output file #0 does not contain any stream. There is nothing to extract.
  • Conversion failed. The file may be unsupported, corrupted, or too large to process in this browser. — from Extract Audio or Mute Video. Over about 2 GB is the usual reason; compress first or use the command line.
  • Could not trim this file. Its format may not allow fast trimming — try converting it first, or a different clip. — the copy trim failed; raw .aac (ADTS) streams and some .wma and .amr files do this. Convert to MP3 or M4A, then trim.
  • This audio's format can't be previewed in the browser — enter the start and end times (in seconds) manually below. — the page’s <audio> element cannot decode that codec (Safari has no Ogg Vorbis playback). Read the times off VLC and type them; the trim still runs.
  • Set an end time later than the start time. — the range must be at least 0.1 s.
  • The extracted file shows a video icon, or the Music app refuses it. Rename .mp4 to .m4a; the contents are already an M4A.
  • The trim came out as a video. The original video was dropped on Trim Audio, which copies every stream. Extract first.

One line on rights: extract audio from recordings you made or have permission to use — a lecture you attended is normally fine to keep for yourself; a concert bootleg or a streaming rip normally is not.

Do this

  • Check what is inside first: ffprobe -select_streams a:0or VLC’s Codec Information. No audio stream means nothing to extract.
  • For a bit-identical copy of the original AAC or Opus, use ffmpeg -i in.mp4 -vn -c:a copy out.m4a. For a phone-ready file in one step, drop the video on Convert to MP3; Extract Audio gives you AAC at 128 kb/s.
  • Extract first, then cut with Trim Audio — it copies every stream, so it would trim a video into a shorter video.
  • Speech at 96–128 kb/s, mono if one voice; music copied or at 256 kb/s and up; FLAC and WAV only from PCM sources.
  • Over 2 GB, shrink the video with Compress Video (audio passes through untouched) or use the command line, then extract.

Frequently asked questions

Does extracting audio from a video reduce the quality?

Only if the audio is re-encoded. A stream copy (ffmpeg -vn -c:a copy) writes the original AAC or Opus packets into a new file unchanged, so the result is bit-identical. Converting to MP3, or using the Extract Audio tool on this site (which re-encodes to AAC at 128 kb/s), adds one lossy generation — inaudible for speech, worth avoiding for music you care about.

What audio format is inside an MP4 video?

Almost always AAC-LC, usually at 96–256 kb/s and 44.1 or 48 kHz. Check with ffprobe (codec_name=aac) or VLC’s Codec Information window. The audio-only version of an MP4 is an M4A file — the same container with the video stream left out.

Can I extract audio without re-encoding in the browser?

Not with the converters on this site — they all decode and re-encode. The one browser tool that copies the stream is Trim Audio (ffmpeg -c copy), and it copies every stream in the file, so it cuts a video rather than extracting from it. For a bit-identical extraction run ffmpeg -i video.mp4 -vn -c:a copy audio.m4a on a computer.

How big is one hour of audio as MP3?

Bitrate × 3600 ÷ 8: 128 kb/s is 57.6 MB per hour, 96 kb/s is 43.2 MB, 64 kb/s mono is 28.8 MB. Uncompressed 16-bit 48 kHz stereo WAV is 1536 kb/s, about 691 MB per hour.

Why does the Extract Audio tool give me a .mp4 file instead of .m4a?

It writes an MP4 container holding only an audio stream — which is exactly what an M4A is. Rename lecture_output.mp4 to lecture_output.m4a and every player and music library will treat it as audio.

Tools used in this guide

Every one of these runs in your browser — the files you work on never leave your device.

More audio guides