---
title: "TIL: Generating Audio Waveform Images With ffmpeg"
description: ffmpeg generates a waveform PNG from any audio file. Visualise silence gaps, volume levels, and speech patterns without a DAW.
canonical: https://lukeocodes.dev/til-ffmpeg-waveform-visualisation
type: article
locale: en_GB
published: 2026-08-04T00:00:00.000Z
modified: 2026-08-04T00:00:00.000Z
authors:
  - Luke Oliff
section: TIL
tags:
  - TIL
  - Engineering
  - Text-to-Speech
feed: https://lukeocodes.dev/rss.xml
search: https://lukeocodes.dev/search.json?q={query}
schema:
  - "@context": https://schema.org
    "@graph":
      - "@type": Organization
        "@id": https://ably.com/#organization
        name: Ably
        url: https://ably.com
      - "@type": WebSite
        "@id": https://lukeocodes.dev/#website
        url: https://lukeocodes.dev
        name: Luke Oliff
        alternateName: lukeocodes
        inLanguage: en
        publisher:
          "@id": https://lukeocodes.dev/authors/luke#person
        description: Personal blog and writing by Luke Oliff — developer relations, voice AI, developer experience.
        potentialAction:
          - "@type": SearchAction
            target:
              "@type": EntryPoint
              urlTemplate: https://lukeocodes.dev/blog/search?q={search_term_string}
            query-input: required name=search_term_string
      - "@type": Person
        "@id": https://lukeocodes.dev/authors/luke#person
        name: Luke Oliff
        url: https://lukeocodes.dev/authors/luke
        description: Staff engineer and Staff Tech Lead for Developer Experience at Ably. Writing about developer relations, AI, and the voice industry, from the UK.
        mainEntityOfPage: https://lukeocodes.dev/authors/luke
        givenName: Luke
        familyName: Oliff
        image: https://lukeocodes.dev/authors/luke.jpg
        jobTitle: Staff Tech Lead, Developer Experience
        worksFor:
          "@id": https://ably.com/#organization
        sameAs:
          - https://www.linkedin.com/in/lukeocodes
          - https://github.com/lukeocodes
          - https://bsky.app/profile/lukeocodes.dev
          - https://x.com/lukeocodes
          - https://hashnode.com/@lukeocodes
          - https://dev.to/lukeocodes
        knowsAbout:
          - Developer Relations
          - Developer Experience
          - Voice AI
          - Text-to-Speech
          - Answer Engine Optimisation
          - Search Engine Optimisation
          - Open Source
          - Developer Tooling
          - API Design
          - Speech-to-Text
          - Voice Agents
          - Community Building
        knowsLanguage:
          - English
        nationality: British
        alumniOf:
          - "@type": Organization
            name: The Open University
  - "@context": https://schema.org
    "@graph":
      - "@type": Organization
        "@id": https://ably.com/#organization
        name: Ably
        url: https://ably.com
      - "@type": Person
        "@id": https://lukeocodes.dev/authors/luke#person
        name: Luke Oliff
        url: https://lukeocodes.dev/authors/luke
        description: Staff engineer and Staff Tech Lead for Developer Experience at Ably. Writing about developer relations, AI, and the voice industry, from the UK.
        mainEntityOfPage: https://lukeocodes.dev/authors/luke
        givenName: Luke
        familyName: Oliff
        image: https://lukeocodes.dev/authors/luke.jpg
        jobTitle: Staff Tech Lead, Developer Experience
        worksFor:
          "@id": https://ably.com/#organization
        sameAs:
          - https://www.linkedin.com/in/lukeocodes
          - https://github.com/lukeocodes
          - https://bsky.app/profile/lukeocodes.dev
          - https://x.com/lukeocodes
          - https://hashnode.com/@lukeocodes
          - https://dev.to/lukeocodes
        knowsAbout:
          - Developer Relations
          - Developer Experience
          - Voice AI
          - Text-to-Speech
          - Answer Engine Optimisation
          - Search Engine Optimisation
          - Open Source
          - Developer Tooling
          - API Design
          - Speech-to-Text
          - Voice Agents
          - Community Building
        knowsLanguage:
          - English
        nationality: British
        alumniOf:
          - "@type": Organization
            name: The Open University
      - "@type": BlogPosting
        "@id": https://lukeocodes.dev/til-ffmpeg-waveform-visualisation#article
        headline: "TIL: Generating Audio Waveform Images With ffmpeg"
        alternativeHeadline: "TIL: Generating Audio Waveform Images With ffmpeg"
        description: ffmpeg generates a waveform PNG from any audio file. Visualise silence gaps, volume levels, and speech patterns without a DAW.
        datePublished: 2026-08-04T00:00:00.000Z
        dateModified: 2026-08-04T00:00:00.000Z
        url: https://lukeocodes.dev/til-ffmpeg-waveform-visualisation
        mainEntityOfPage: https://lukeocodes.dev/til-ffmpeg-waveform-visualisation
        inLanguage: en
        author:
          - "@id": https://lukeocodes.dev/authors/luke#person
        isPartOf:
          "@id": https://lukeocodes.dev/#website
        keywords: TIL, Engineering, Text-to-Speech
        articleSection: TIL
        about:
          - "@type": Thing
            name: Text-to-Speech
        abstract: A waveform shows silence gaps, volume levels, and pacing in one glance. ffmpeg generates one from any audio file.
        speakable:
          "@type": SpeakableSpecification
          cssSelector:
            - .post-tldr
            - h1
        image: https://lukeocodes.dev/og.png?h=TIL%3A+Generating+Audio+Waveform+Images+With+ffmpeg&d=ffmpeg+generates+a+waveform+PNG+from+any+audio+file.+Visualise+silence+gaps%2C+volume+levels%2C+and+speech+patterns+without+a+DAW.&e=Writing
        wordCount: 170
        timeRequired: PT1M
        publisher:
          "@id": https://ably.com/#organization
      - "@type": BreadcrumbList
        itemListElement:
          - "@type": ListItem
            position: 1
            name: Home
            item: https://lukeocodes.dev
          - "@type": ListItem
            position: 2
            name: Writing
            item: https://lukeocodes.dev/blog
          - "@type": ListItem
            position: 3
            name: "TIL: Generating Audio Waveform Images With ffmpeg"
            item: https://lukeocodes.dev/til-ffmpeg-waveform-visualisation
---

[Luke Oliff.](/)

- [Blog](/blog)
- [CV](/cv)
- [Uses](/uses)
- [User manual](/user-manual)
- [Living with ADHD](/living-and-working-with-adhd)
- [RSS](/rss.xml)

[Luke Oliff · Writing](/blog)

# TIL: Generating Audio Waveform Images With ffmpeg

Aug 2026 · [TIL](/blog/category/til) · 1 min read · [Luke Oliff](/authors/luke)

A waveform shows silence gaps, volume levels, and pacing in one glance. ffmpeg generates one from any audio file.

```bash
ffmpeg -i recording.wav -filter_complex "showwavespic=s=640x120" -frames:v 1 waveform.png
```

Output a single frame PNG showing the waveform of the entire file. Width 640, height 120. Dark regions are silence, tall peaks are loud sections.

```bash
ffmpeg -i recording.wav -filter_complex \
  "showwavespic=s=640x120:colors=blue|red" -frames:v 1 waveform.png
```

Colour the waveform. The left channel blue, the right channel red. Mono files use the first colour.

```bash
ffmpeg -i recording.wav -filter_complex \
  "showwavespic=s=640x200:split_channels=1:colors=green|orange" -frames:v 1 waveform.png
```

Split channels with a taller waveform. Each channel gets its own row. Useful for spotting phase issues or channel imbalance.

### Can I overlay the waveform on a video?

Use the showwaves filter instead of showwavespic. It generates an animated waveform that changes over time.

### What if the waveform is too dense?

Increase the width parameter. A 10 minute file at 640 pixels puts every second in 1 pixel. Use 1920 or higher for detailed views.

[← Newer: Open Source Voice Agents Get Real-Time Speech in Hermes v0.20.0](/open-source-voice-agents-hermes-v020)

[All posts](/blog) →

## Search this site

`GET https://lukeocodes.dev/search.json?q=<words>` returns matching posts as JSON, each with its page URL and its markdown URL. Add `&limit=<1-50>` for more than 10. How it works: [/blog/search](https://lukeocodes.dev/blog/search.md).

```sh
curl "https://lukeocodes.dev/search.json?q=developer+relations"
```

---

© 2026 Luke Oliff. Posts live at the root of this site.

- [GitHub](https://github.com/lukeocodes)
- [LinkedIn](https://www.linkedin.com/in/lukeocodes)
- [X](https://x.com/lukeocodes)
- [Bluesky](https://bsky.app/profile/lukeocodes.dev)
- [Email](mailto:luke@lukeoliff.com)
- [RSS](/rss.xml)

## Cookies

This site sets one analytics cookie, from Google Analytics, and only in a browser that accepts the cookie banner. A client that does not run scripts sets no cookies, so there is nothing to accept or decline here.

[Cookie policy](/cookies)
