module

FfmpegProgress::Probe

Constants

IMAGE_PATTERN_RE = /%0?\d*d/

Detect ffmpeg image-sequence pattern: contains a printf-style %[0]Nd. Note: ffmpeg also accepts %d with optional width, optional leading zero.

Instance methods

count_image_frames(pattern : String) : Int32 | Nil
Source
image_pattern?(path : String) : Bool
Source
image_pattern_to_glob(path : String) : String

Convert frame_%06d.pngframe_*.png for globbing.

Source
parse_concat_list(path : String) : Array(String)

Parse the concat-demuxer playlist format: lines file 'path'. Returns absolute paths resolved against the playlist's own directory.

Source
parse_framerate(s : String) : Float64 | Nil

30000/1001, 30/1, 30 → Float64 fps. Returns nil if unparseable or "0/0" (the ffprobe sentinel for unknown).

Source
probe_duration(path : String) : Float64 | Nil
Source
probe_framerate(path : String) : Float64 | Nil
Source