# RuntimeWarning: Couldn't find ffmpeg or avconv

> The ffmpeg message in MarkItDown is a warning, not an error. We prove it, show the only conversions that really need ffmpeg, and how to install or silence it.

Source: https://markitdown.dev/errors/ffmpeg/ · Updated 2026-11-15·Upstream source ↗

This line is a warning printed by an audio library that MarkItDown loads when the audio extra is installed. It does not affect PDF, Office, HTML or any other non-audio conversion; only MP3, M4A and MP4 audio really need ffmpeg.

> **Short answer**
>
> Converting anything except MP3, M4A or MP4 audio: **ignore it**. Converting those: install ffmpeg.
> 
> **Windows**
> 
> ```bash
> winget install --id Gyan.FFmpeg --exact
> ```
> 
> **Windows (Chocolatey)**
> 
> ```bash
> choco install ffmpeg -y
> ```
> 
> **macOS**
> 
> ```bash
> brew install ffmpeg
> ```
> 
> **Ubuntu and Debian**
> 
> ```bash
> sudo apt-get install -y ffmpeg
> ```
> 
> Want the message gone without installing anything: install MarkItDown without the audio extra ([below](#remove)).

Tested with markitdown 0.1.9 · Python Ubuntu 24.04, Windows Server 2025, macOS 26 · MarkItDown 0.1.4 to 0.1.9 · Python 3.13 (GitHub runners and a Linux lab) · 2026-11-15 · evidence: [audio-youtube.csv](https://markitdown.dev/data/audio-youtube.csv), [ffmpeg-corpus-compare.log](https://markitdown.dev/evidence/T40/ffmpeg-corpus-compare.log), [no-audio-extra-0.1.7.log](https://markitdown.dev/evidence/T40/no-audio-extra-0.1.7.log), [silence-lab.log](https://markitdown.dev/evidence/T40/silence-lab.log)

## Do you need to do anything?

| You are converting | Does the warning matter? | Do this |
| --- | --- | --- |
| PDF, Word, Excel, PowerPoint, HTML, CSV, images, ZIP | No | Nothing: [proof below](#proof) |
| WAV audio | No: it transcribes without ffmpeg | Nothing |
| MP3, M4A (and MP4 audio) | Yes: the conversion fails without ffmpeg | [Install ffmpeg](#install) |

## Proof that it is only a warning

We converted our whole 113-file corpus twice on the same machine, once with ffmpeg on PATH and once without:

> **The result:** 111 of 113 files gave the same exit code and byte-identical output. The two that differ are the MP3 and the M4A, which fail without ffmpeg. Log: evidence/T40/ffmpeg-corpus-compare.log.

And a PDF and a CSV file converted normally with ffmpeg removed from PATH (`evidence/T40/warning-lab.log`).

## What actually needs ffmpeg

We ran the same three sample files, with and without ffmpeg, on all three systems:

Without ffmpeg: audio samples by system
| File | System | Transcribed? | Message |
| --- | --- | --- | --- |
| `test.wav` | macos | yes |  |
| `test.mp3` | macos | no | \- AudioConverter threw FileNotFoundError with message: No such file or directory: 'ffprobe' |
| `test.m4a` | macos | no | \- AudioConverter threw FileNotFoundError with message: No such file or directory: 'ffprobe' |
| `test.wav` | ubuntu | yes |  |
| `test.mp3` | ubuntu | no | \- AudioConverter threw FileNotFoundError with message: No such file or directory: 'ffprobe' |
| `test.m4a` | ubuntu | no | \- AudioConverter threw FileNotFoundError with message: No such file or directory: 'ffprobe' |
| `test.wav` | windows | yes |  |
| `test.mp3` | windows | no | \- AudioConverter threw FileNotFoundError with message: \[WinError 2\] The system cannot find the file specified |
| `test.m4a` | windows | no | \- AudioConverter threw FileNotFoundError with message: \[WinError 2\] The system cannot find the file specified |

*Without ffmpeg: audio samples by system Source: Test T19 · run 43760237928 · markitdown 0.1.9 · audio-youtube.csv · Download CSV*

With ffmpeg installed the same three files all transcribed on all three systems. The real error is on the line below the wrapper, and it is the `ffprobe` lookup that fails, not ffmpeg itself:

```console
$ markitdown test.mp3
markitdown._exceptions.FileConversionException: File conversion failed after 1 attempts:
 - AudioConverter threw FileNotFoundError with message: [Errno 2] No such file or directory: 'ffprobe'
```

*markitdown 0.1.9 · Linux lab · ffmpeg not on PATH · 2026-11-15*

On Windows the same failure reads `[WinError 2] The system cannot find the file specified`.

> **Transcription goes over the internet:** Audio is sent to a speech service on the internet to be transcribed (the details are on the audio page). ffmpeg only prepares the file.

## Where the message comes from, and which versions print it

The line comes from `pydub`, the audio library that MarkItDown's audio extra installs. The path in the message points into `pydub/utils.py`, not into MarkItDown. Releases 0.1.4 to 0.1.7 print it on every run:

```console
$ markitdown --version
markitdown 0.1.7

--- stderr (last 2500)
/tmp/claude-0/v017/lib/python3.13/site-packages/pydub/utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
  warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)
```

*markitdown 0.1.7 · Linux lab · ffmpeg not on PATH · 2026-11-15*

0.1.8 and 0.1.9 do not print it for `--version` or for non-audio files:

```console
$ markitdown --version
markitdown 0.1.9
```

*markitdown 0.1.9 · Linux lab · ffmpeg not on PATH · 2026-11-15*

but it is still there if Python warnings are switched on, and it appears when you convert an audio file without ffmpeg (together with the `ffprobe` variant):

```console
$ python -W default -c "import markitdown"
/tmp/claude-0/t04v/lib/python3.13/site-packages/pydub/utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
  warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)
```

*markitdown 0.1.9 · Linux lab · ffmpeg not on PATH · 2026-11-15*

```console
$ markitdown test.mp3
/tmp/claude-0/t04v/lib/python3.13/site-packages/pydub/utils.py:198: RuntimeWarning: Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work
  warn("Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work", RuntimeWarning)
```

*markitdown 0.1.9 · Linux lab · ffmpeg not on PATH · 2026-11-15*

So upgrading removes the noise from everyday commands, not the cause.

## Install ffmpeg

The commands are in the block at the top. All four ran on our test machines, in this order of evidence: winget on a Windows Server 2025 runner, Chocolatey on another, Homebrew on macOS 26 and apt on Ubuntu 24.04. We did not test dnf or other distributions. After installing, open a **new** terminal (or restart the app that runs MarkItDown), then check:

```bash
ffmpeg -version
markitdown test.mp3
```

ffmpeg is a system program, not a Python package: installing it once serves every virtual environment, pipx and uv install, so nothing needs reinstalling on the Python side. Installing it with winget put it on PATH for new windows only ([the Windows page](https://markitdown.dev/install/windows/)); Homebrew details are on [the macOS page](https://markitdown.dev/install/mac/).

## Or remove the cause: install without the audio extra

The warning exists only because the audio extra pulled in the audio library. Install the document extras without it:

```bash
pip install "markitdown[pdf,docx,pptx,xlsx]"
```

On a 0.1.7 environment built that way, with ffmpeg missing, `markitdown --version` printed no warning and `pydub` was not installed (`evidence/T40/no-audio-extra-0.1.7.log`). It is also smaller: 351 MB against 407 MB for `[all]` on Linux ([sizes](https://markitdown.dev/install/extras/)). If you later need audio, install the extra: `pip install "markitdown[audio-transcription]"`.

## Silence it in your own code

On the command line, tell Python to ignore that warning category; we confirmed the message disappears and the MP3 still fails without ffmpeg:

**Command line**

```bash
python -W ignore::RuntimeWarning -m markitdown file.mp3
```

**Environment variable**

```bash
PYTHONWARNINGS=ignore::RuntimeWarning markitdown file.mp3
```

In code, filter the warning before importing MarkItDown: `warnings.filterwarnings("ignore", message="Couldn't find ff", category=RuntimeWarning)`. In our test the warning was hidden and the conversion still raised the same `FileNotFoundError` for `ffprobe` (`evidence/T40/silence-lab.log`). Silencing hides the message; it does not install ffmpeg.

## Related messages

-   `[Errno 2] No such file or directory: 'ffprobe'`: the same fix as above.
-   `Could not transcribe this audio` or `UnknownValueError`: not ffmpeg. The speech service heard nothing it could transcribe; we got it for 5 seconds of silence and for a 440 Hz tone ([audio page](https://markitdown.dev/formats/audio/)).
-   `ExifTool … is vulnerable to CVE-2021-22204`: a different external tool ([error index](https://markitdown.dev/errors/)).

## Related

- [Audio and video](https://markitdown.dev/formats/audio/): Audio transcription in full: services, limits, languages and quality.
- [Extras and install size](https://markitdown.dev/install/extras/): Which extras exist and what the audio extra installs.
- [Error reference](https://markitdown.dev/errors/): Every other MarkItDown error.
- [Install on Windows 11](https://markitdown.dev/install/windows/): Installing ffmpeg and ExifTool on Windows.
- [Install on macOS](https://markitdown.dev/install/mac/): Installing ffmpeg and ExifTool with Homebrew.

---
Independent guide to the open-source MarkItDown library. Not affiliated with or endorsed by Microsoft. Official source: https://github.com/microsoft/markitdown
