FFmpegProgressBar::Formatter
NAME
FFmpegProgressBar::Formatter - String formatting utilities
DESCRIPTION
Provides string formatting methods for progress bar output, including bitrate formatting, frame info, elapsed time, and filename truncation.
ATTRIBUTES
$.max-filename-length - Maximum filename length before truncation
$.use-unicode - Whether to use Unicode characters
METHODS
method human-bitrate(Str $bitrate) - Format bitrate string (e.g., "1500kbits/s" -> " (1.5Mbps)")
method average-bitrate(Numeric $bytes, Numeric $duration) - Calculate average bitrate
method frame-info(Bool $show, Int $cur, Int $total = 0, Numeric $fps = 0, Bool $saw-fps = False) - Format frame info
method elapsed(Numeric $secs) - Format seconds as HH:MM:SS
method truncate-filename(Str $name, Int $max?) - Truncate long filenames