---
title: "TIL: pv, the Pipe Viewer for Your Pipelines"
description: pv (Pipe Viewer) sits between two commands in a pipeline and reports how fast data is moving. It is a progress bar for pipes.
canonical: https://lukeocodes.dev/til-pv-pipe-viewer
type: article
locale: en_GB
published: 2026-04-21T00:00:00.000Z
modified: 2026-04-21T00:00:00.000Z
authors:
  - Luke Oliff
section: TIL
tags:
  - TIL
  - Engineering
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-pv-pipe-viewer#article
        headline: "TIL: pv, the Pipe Viewer for Your Pipelines"
        alternativeHeadline: "TIL: pv shows you what is flowing through your pipes"
        description: pv (Pipe Viewer) sits between two commands in a pipeline and reports how fast data is moving. It is a progress bar for pipes.
        datePublished: 2026-04-21T00:00:00.000Z
        dateModified: 2026-04-21T00:00:00.000Z
        url: https://lukeocodes.dev/til-pv-pipe-viewer
        mainEntityOfPage: https://lukeocodes.dev/til-pv-pipe-viewer
        inLanguage: en
        author:
          - "@id": https://lukeocodes.dev/authors/luke#person
        isPartOf:
          "@id": https://lukeocodes.dev/#website
        keywords: TIL, Engineering
        articleSection: TIL
        abstract: "TIL Tuesday: I was debugging why a pipeline processing audio files through an STT model was taking so long. The pipeline worked. I just had no idea how fast data was moving through it."
        speakable:
          "@type": SpeakableSpecification
          cssSelector:
            - .post-tldr
            - h1
        image: https://lukeocodes.dev/blog/til-pv-pipe-viewer/hero.png
        wordCount: 292
        timeRequired: PT2M
        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: pv, the Pipe Viewer for Your Pipelines"
            item: https://lukeocodes.dev/til-pv-pipe-viewer
---

[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: pv shows you what is flowing through your pipes

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

TIL Tuesday: I was debugging why a pipeline processing audio files through an STT model was taking so long. The pipeline worked. I just had no idea how fast data was moving through it.

Enter `pv` (Pipe Viewer). It sits between two piped commands and reports throughput in real time.

```bash
command1 | pv | command2
```

For audio processing specifically:

```bash
cat large-audio.wav | pv | transcribe --stream
```

This shows the transfer rate, total bytes moved, and elapsed time. When processing a 200 MB audio file through an STT model, you see immediately if the pipeline is CPU-bound (slow rate) or network-bound (bursty rate).

```bash
cat large-audio.wav | pv -r | transcribe --stream
474MiB 0:00:45 [10.3MiB/s]
```

The `-r` flag shows the rate. Seeing 10 MB/s tells you the pipeline is moving faster than real-time audio, so the bottleneck is probably the model inference, not the file I/O.

```bash
pv large-audio.wav | transcribe --stream
```

You can also use `pv` to read a file and pipe it directly. No `cat` needed. Add `-s` with the file size for an ETA:

```bash
pv -s "$(stat -f%z large-audio.wav)" large-audio.wav | transcribe --stream
 474MiB 0:00:45 [10.3MiB/s] [================================>] 100%
```

Now you get a progress bar with a percentage and ETA.

### What else is pv useful for?

Tar transfers over SSH. Database dumps. Any pipeline where you want to know "is this thing actually making progress?"

```bash
tar cf - ./audio-files | pv | ssh server tar xf -
```

### What flags should I remember?

`-r` for transfer rate, `-b` for bytes transferred, `-t` for elapsed time, `-e` for ETA. Combine them: `pv -rte`.

### Is pv installed by default on macOS?

No. `brew install pv`. Worth having in every dev toolkit.

[← Newer: Inside the Streaming Cascade Powering Voice AI](/inside-the-streaming-cascade-powering-voice-ai)

[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)
