probe

Probe Video Metadata

Description

Query video file properties via ffprobe.

Usage

probe(file, field = "duration")

Arguments

  • file: Path to media file.
  • field: Field to query. One of “duration”, “width”, “height”, “codec_name”, “r_frame_rate”, or any valid ffprobe stream entry. Use “all” to return duration, width, height, and codec as a named list.

Value

For single fields, returns a numeric value (duration, width, height) or character string (codec_name, etc.). For field = “all”, returns a named list.

Examples

probe("video.mp4")                     # duration (default)
probe("video.mp4", "width")            # video width
probe("video.mp4", "all")              # list of duration, width, height, codec