Batimg

Fast image/video printing in your terminal

GPL-3.0 License

Stars
30

batimg

batimg is a small program written in Rust, designed to be fast and compatible with every terminal. It can print images and play videos in almost every format in your terminal.

Build

Build bin and install dependencies: cargo build --release Bin location: ./target/release/adplay

Usage

USAGE:
    batimg [OPTIONS] <FILE>

ARGS:
    <FILE>    Path to the media

OPTIONS:
    -d, --debug         Print debug stats
    -a, --audio         Play video audio (unstable)
    -h, --help          Print help information
    -l, --loop          Loop the video 
    -s, --size <u32>    Canvas size
    -r, --resolution    Disable high resolution mode (half pixel character)
    -p, --prerender     Export frames first (unstable)
    -t, --timesync      Disable realtime synchronization
    -V, --version       Print version information

EXAMPLES: 
    batimg img.png
    batimg img.jpg -s 100
    batimg video.mp4 -a
    batimg animation.gif

Goals

  • Show images
  • Play videos
  • Play audio
  • Improving the resolution
  • Improving cleaning escape codes
  • Getting rid of FFmpeg high CPU usage (Frame extraction)

batimg vs catimg