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

FFmpegProgressBar v0.0.9

Add a progress bar to ffmpeg commands

Authors

  • Sasha Abbott

License

CC0-1.0

Dependencies

Pod::To::Man:ver<1.2.1>:auth<zef:samy>Terminal::Spinners:ver<1.6.0>:auth<github:ryn1x>Terminal::Size:ver<1.0.1>:auth<zef:demayl>Terminal::WCWidth:ver<0.1.5>:auth<zef:raku-community-modules>

Test Dependencies

Provides

  • FFmpegProgressBar
  • FFmpegProgressBar::FFmpegFlags
  • FFmpegProgressBar::Formatter
  • FFmpegProgressBar::Parser
  • FFmpegProgressBar::Probe
  • FFmpegProgressBar::ProgressSnapshot
  • FFmpegProgressBar::Terminal

Documentation

The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

Built with Podlite — the markup and publishing tools behind this site.