Crates.io | png2t |
lib.rs | png2t |
version | 0.2.1 |
source | src |
created_at | 2023-10-10 19:26:36.410838 |
updated_at | 2024-07-06 01:35:26.108824 |
description | Render any media file supported by FFMPEG into your terminal! |
homepage | |
repository | https://github.com/bepri/png2t |
max_upload_size | |
id | 999407 |
size | 66,679 |
Who needs a GUI anyways?
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!
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!
It's cool!
cargo
to your systemVisit https://rustup.rs/ for installation instructions!
ffmpeg
Debian-based:
sudo apt install -y ffmpeg
Fedora-based:
sudo dnf install -y ffmpeg
git clone git@github.com:bepri/png2t.git && cd png2t
cargo build --release
Resulting binary will be at target/release/png2t
cargo
on your system:rustup-init.exe
Downloads can be found at this link.
git clone git@github.com:bepri/png2t.git && cd png2t
cargo build --release
Resulting binary will be at target/release/png2t.exe