Updated Sep 21, 2026

Utilities

Read codec, stream, duration, and format metadata

A media file in, structured technical metadata out.

Agent

overview

What ffprobe does

ffprobe examines one connected audio or video file without transcoding it. Enable --show-format for container-level values and --show-streams for codec, dimensions, sample rate, channel, and stream metadata.

Set --select-streams to selectors such as v:0 or a when only one stream class matters. --output-format chooses an ffprobe writer; JSON is the easiest result to pass to downstream scripts.

The node reports what is encoded in the media container. Use ffmpeg when the workflow needs to alter, extract, or transcode the media itself.

source github.com/FFmpeg/FFmpeg

use cases

Where ffprobe fits

Gate media by codec

Inspect stream codecs before choosing a transcoding or delivery path.

Inventory uploaded media

Record duration, dimensions, audio channels, and container format as structured metadata.

Select the first video stream

Use --select-streams v:0 to isolate metadata for the primary video track.

reference

ffprobe inputs and flags

5 inputs
NameTypeFlagDescription
inputFILE--inputInput media file.
show-formatBOOLEAN--show-formatInclude container information.
show-streamsBOOLEAN--show-streamsInclude stream information.
select-streamsSTRING--select-streamsRestrict output to matching streams.

Showing key inputs. ffprobe exposes 5 inputs in total.

Full flag reference (5 inputs)
NameTypeFlagDescription
inputFILE--inputInput media file
show-formatBOOLEAN--show-formatInclude container format information
show-streamsBOOLEAN--show-streamsInclude audio, video, subtitle, and data stream information
select-streamsSTRING--select-streamsRestrict output to a stream selector such as v:0 or a
output-formatSTRING--output-formatffprobe writer format such as json, xml, flat, or csv

example

Run ffprobe

ffprobe · command
ffprobe -v error -show_format -show_streams -of json tone.wav
sample output
{"streams":[{"codec_name":"pcm_s16le","sample_rate":"8000","channels":1}],"format":{"format_name":"wav"}}

guidance

Choosing ffprobe

Use ffprobe to inspect media without changing it. Use ffmpeg for transcoding, clipping, extraction, or filtering.

ffmpeg

Transforms audio, video, and image sequences.

exiftool

Reads broad embedded metadata across media and document formats.

pdftotext

Extracts textual content from PDF documents rather than media metadata.

faq

ffprobe questions

No. It reads metadata and writes a separate structured result.

Run ffprobe yourself

A short WAV fixture is inspected for format and stream data, confirming PCM audio and the expected sample rate.

Facts on this page come from the live Trickest tool library.