# Extract the audio from videos as MP3

> Markdown version of https://stella.sh/how/audio/extract-audio-from-video for agents and LLMs.
> Get the sound out of MP4 videos as MP3s to listen on a walk: QuickTime plus Music on a Mac, VLC on Windows, ffmpeg, or Stella (stella.sh) on your own computer.

On a Mac, QuickTime Player's File, Export As, Audio Only saves the sound as M4A, which the Music app can then convert to MP3. On Windows, VLC's Convert/Save with the Audio - MP3 profile does it directly. ffmpeg handles a whole folder from the command line. Stella (stella.sh) pulled MP3s out of a folder of class videos, numbered in order, and reported the one video that had no sound instead of making an empty file.

- Checked: 13 November 2026
- Stella does it on: Windows, Mac, Linux

## Stella doing it

Recorded 13 November 2026 on Linux (Omarchy) with Claude Code with Opus, on a Claude plan.
Result: 4 MP3s in about 1 minute 5 seconds. Checked afterwards against an answer key written before the run: one real MP3 for each of the 4 videos with sound, each the full length of its video (within 0.35 s) with the matching talk inside, no silent MP3 for the video without sound, and every video unchanged. The class videos are slides with synthetic narration, made for this run and kept short; the classes and places are fictitious. The work is sped up 2×.

Video (44 s): https://stella.sh/media/proofs/audio/extract-audio-from-video/proof.mp4

Transcript:

- 0:00 Stella on a Linux computer. Five class videos are in a folder in Videos.
- 0:01 The prompt: get the audio out as MP3s to listen to on a walk.
- 0:13 Stella replies that the MP3s go in one folder, named so the classes stay in order, with the videos untouched.
- 0:19 Checking each video for sound and saving the MP3s.
- 0:28 Done: 4 MP3s by week number; Week 4 has no sound, so it has no MP3.

What Stella does:

1. Finds the Local history evening class folder in Videos: five weekly recordings
2. Checks each video for a sound track first, and finds that Week 4 (Archive photos) has none
3. Saves the sound of the other four as MP3s in a new folder next to the videos, named with the week number so they play in order
4. Doesn't make an empty file for Week 4, and says why it has no MP3
5. Points out the recordings are only 15 to 20 seconds each, so they look like clips rather than full classes, and leaves the videos unchanged

## The prompt to paste

```text
Get the audio out of my local history evening class videos in Videos as MP3s, so I can listen to them while I walk the dog.
```

## Extract it yourself

1. **Mac: QuickTime Player, then Music.** Open the video in QuickTime Player and choose File, Export As, Audio Only. That saves an .m4a. If you need MP3, set Music's import format to MP3 Encoder (Settings, Files, Import Settings), add the .m4a and choose File, Convert, Create MP3 Version.
2. **Windows: VLC.** In VLC choose Media, Convert / Save, add the videos and press Convert / Save. Pick the profile Audio - MP3, choose a destination file name for each one, then Start.
3. **Any computer: ffmpeg.** `ffmpeg -i "Week 1 - The old mill.mp4" -vn -c:a libmp3lame -q:a 2 "Week 1 - The old mill.mp3"` drops the picture and saves the sound as MP3. `-vn` means no video; repeat it for each file or loop over the folder.
4. **Check for videos with no sound.** Slideshows and screen recordings sometimes have no sound track at all. VLC's Tools, Codec Information lists the streams; if there's no audio stream, there's nothing to extract, and a converter may still write a silent file.
5. **Keep them in order.** Start each file name with a number padded to two digits (01, 02 … 10), so phones and podcast apps play them in the right order instead of putting 10 before 2.

## Where Stella stops

- A video with no sound has nothing to extract. Stella said so for Week 4 rather than making a silent MP3.
- MP3 re-encodes the sound. For the original quality, ask for M4A instead (most phone videos already carry AAC sound, which can be copied out as-is).
- File names and each video's stream details go to the AI model you use in Stella; the videos and their sound stay on your computer.
- Recorded on Linux, where ffmpeg was already installed. On a Mac or Windows PC Stella would usually download it first, which isn't shown here.

## Questions

**How do I extract audio from a video on iPhone?**
The Files and Photos apps don't do it directly. Send the video to a Mac and use QuickTime's Export As, Audio Only, or have Stella do a whole folder on your computer.

**Is MP4 to MP3 lossless?**
No, MP3 is a fresh encode. For speech at a good bitrate you won't notice. To keep the exact original sound, save it as .m4a without re-encoding.

**What if a video has several audio tracks?**
Some recordings carry two languages or a commentary. Say which one you want; this test only had one track per video.

**Can I get the words as text instead?**
Yes. See [transcribe voice memos to text](https://stella.sh/how/audio/transcribe-voice-memos-to-text), or [make an SRT subtitle file](https://stella.sh/how/video/make-srt-subtitle-file) for captions that sit next to the video.

**Is Stella free for this?**
Yes. Free with the ChatGPT or Claude plan you already have. Sign in with your ChatGPT plan, or use your Claude plan through Claude Code, and this task costs nothing extra. New accounts also get a small free trial of Stella’s own models.

**Can I control what Stella changes on my computer?**
Yes. Stella works on Windows, Mac and Linux with your own files and shows each step in the chat, so you can watch it and stop it at any point. Tell it what it may not do, as the prompts on these pages do (“don't delete anything without asking”). In the Downloads recording it deleted nothing until it was told to go ahead. It also refuses commands that would wipe a whole disk, your home folder or system folders.

Sources: [Apple: Export movies in QuickTime Player on Mac](https://support.apple.com/guide/quicktime-player/qtp20e395859/mac), [Apple: Convert a song to a different file format in Music](https://support.apple.com/en-us/108961), [VLC media player](https://www.videolan.org/vlc/).

## Related problems

- [Convert M4A to MP3, keeping the same names](https://stella.sh/how/audio/convert-m4a-to-mp3.md)
- [Transcribe voice memos to text](https://stella.sh/how/audio/transcribe-voice-memos-to-text.md)
- [Create an SRT subtitle file from a video](https://stella.sh/how/video/make-srt-subtitle-file.md)
- [Edit MP3 tags in bulk (and add the album art)](https://stella.sh/how/audio/edit-mp3-tags-in-bulk.md)
- [Convert FLAC to MP3, keeping the song names and album art](https://stella.sh/how/audio/convert-flac-to-mp3.md)
- [Combine MP3 chapters into one audiobook with chapters](https://stella.sh/how/audio/make-audiobook-with-chapters.md)

Get Stella: https://stella.sh/download. Free with the ChatGPT or Claude plan you already have.
