Skip to main content

Module progress

Module progress 

Source
Expand description

Parse ffmpeg’s -progress pipe:1 key=value stream.

With -progress pipe:1 -nostats, ffmpeg writes blocks of key=value lines to stdout, ending each block with progress=continue or progress=end. We only care about the elapsed output time and the terminal marker.

Enums§

Progress
One parsed progress line of interest.

Functions§

fraction
Convert elapsed microseconds and total seconds into a clamped 0.0..=1.0 fraction.
parse_line
Parse a single line. Returns None for keys we ignore.