Skip to content
/ png2t Public

A for-fun tool to display any FFMPEG-supported image/video file in a terminal.

License

Notifications You must be signed in to change notification settings

bepri/png2t

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🖼️ png2t 🎬

Who needs a GUI anyways?

What?

png2t is a fun little program that allows you to print out image or play a video format in a shell, so long as the shell supports ANSI escape codes!

How?

png2t was written entirely in Rust! It currently depends on FFMPEG being installed to the system, but later versions of this will hopefully use an internal image library rather than external shell calls. png2t decomposes videos into .exr image files of each of their frames, loads them into memory, then prints them as individual RGB pixels using ANSI Truecolor sequences. It even plays the sound!

Why?

It's cool!

Building

Unix

1. Install cargo to your system

Visit https://rustup.rs/ for installation instructions!

2. Install ffmpeg

Debian-based:

sudo apt install -y ffmpeg

Fedora-based:

sudo dnf install -y ffmpeg

3. Clone this repository

git clone git@github.com:bepri/png2t.git && cd png2t

4. Build

cargo build --release

Resulting binary will be at target/release/png2t

Windows

1. Install cargo on your system:

2. Install FFMPEG for Windows

Downloads can be found at this link.

3. Clone this repository

git clone git@github.com:bepri/png2t.git && cd png2t

4. Build

cargo build --release

Resulting binary will be at target/release/png2t.exe

About

A for-fun tool to display any FFMPEG-supported image/video file in a terminal.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages