← 返回命令列表

Linux command

ffmpeg-utils 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Get media information

ffprobe [input.mp4]

Show stream details

ffprobe -show_streams [input.mp4]

Output as JSON

ffprobe -print_format json -show_format [input.mp4]

Analyze frames

ffprobe -show_frames [input.mp4]

Get duration only

ffprobe -v quiet -show_entries format=duration -of csv=p=0 [input.mp4]

Show video stream info

ffprobe -hide_banner -select_streams v:0 -show_streams [input.mp4]

说明

ffprobe (part of ffmpeg utils) gathers information from multimedia streams and prints it in human or machine-readable formats. It reveals codec details, duration, bitrate, resolution, and metadata. The tool is essential for scripting video workflows, checking file properties before processing, and debugging encoding issues. Structured output formats enable parsing by other tools. ffprobe provides detailed stream analysis without modifying files, making it safe for inspection tasks.

参数

-show_format
Display container format info.
-show_streams
Display stream information.
-show_frames
Display frame information.
-print_format _FORMAT_
Output format: json, xml, csv, flat.
-show_entries _ENTRIES_
Select specific entries to show.
-of _FORMAT_
Output format (alias for print_format).
-select_streams _SPEC_
Select only specified streams (e.g., v:0 for first video, a for all audio).
-show_chapters
Display chapter information.
-hide_banner
Suppress printing banner with copyright and build info.
-v _LEVEL_
Set logging verbosity (e.g., quiet, error, warning, info).
-count_frames
Count the number of frames per stream (requires decoding, slow).
--help
Display help information.

FAQ

What is the ffmpeg-utils command used for?

ffprobe (part of ffmpeg utils) gathers information from multimedia streams and prints it in human or machine-readable formats. It reveals codec details, duration, bitrate, resolution, and metadata. The tool is essential for scripting video workflows, checking file properties before processing, and debugging encoding issues. Structured output formats enable parsing by other tools. ffprobe provides detailed stream analysis without modifying files, making it safe for inspection tasks.

How do I run a basic ffmpeg-utils example?

Run `ffprobe [input.mp4]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -show_format do in ffmpeg-utils?

Display container format info.