---
title: "Extract audio from video"
description: "Extract the audio track from video files for transcription, analysis, or processing."
url: "https://www.pixeltable.com/notebooks/audio-extract-from-video"
updated: "2026-10-07"
---

# Extract audio from video

Extract the audio track from video files for transcription, analysis, or processing.

- **Type:** Notebook
- **Group:** Audio

## How it works

You use the extract_audio function to create an audio column from video. This integrates seamlessly with transcription and other audio processing.

## What it covers

- Extract audio from video as a computed column
- Choose audio format (mp3, wav, flac)
- Chain with transcription for automatic video-to-text

## What it uses

- **Install:** `pip install pixeltable 'numpy<2.4' openai-whisper`
- **Pixeltable calls:** `video.extract_audio()`, `whisper.transcribe()`, `pxt.create_table()`, `add_computed_column()`, `insert()`

## A look at the code

```python
# Add computed column to extract audio as MP3
videos.add_computed_column(
    audio=extract_audio(videos.video, format='mp3')
)
```

## Open it

- **Open in Colab:** https://colab.research.google.com/github/pixeltable/pixeltable/blob/release/docs/release/howto/cookbooks/audio/audio-extract-from-video.ipynb
- **Docs page:** https://docs.pixeltable.com/howto/cookbooks/audio/audio-extract-from-video
- **Source on GitHub:** https://github.com/pixeltable/pixeltable/blob/release/docs/release/howto/cookbooks/audio/audio-extract-from-video.ipynb
