Skip to main content
DARKPC.NET

Inspect Media Streams With ffprobe Before Playback

List media stream formats, duration and channel counts before deciding which playback setting to diagnose.

Difficulty Beginner

Prerequisites

Use ffprobe from FFmpeg and an ordinary readable media file you own. Place a sample called practice.mp4 in a fresh working directory. The commands inspect metadata without altering the file.

Read container and stream information

ffprobe -v error -show_entries \
    format=duration,format_name:stream=index,codec_type,codec_name,width,height,channels \
    -of json ./practice.mp4

The format object names the detected container and its reported duration. Streams are individual video, audio or subtitle tracks. Missing dimensions for audio streams are normal. Width and height describe encoded video dimensions, and channel count shows how many audio channels are in the stream.

Inspect just audio tracks

ffprobe -v error -select_streams a -show_entries \
    stream=index,codec_name,channels:stream_tags=language \
    -of json ./practice.mp4

An empty streams array means no audio stream matched. Language tags are provided by the file and can be absent or wrong. Compare tracks before changing global audio routing. If the file has multiple audio streams, note the order and IDs for the player you are using.

Troubleshooting and practice

A file extension does not ensure the container is readable. Verify the file is complete and run the command on a known good sample to separate a file-specific issue from an installation issue. Test an audio-only sample and compare which properties are present. Keep your tools patched and use files from trusted sources. Review any shared output for personal file paths or metadata.

References and related reading