I made a terminal media player that plays media files as ASCII art inside the terminal window!

81 points max_codex

https://github.com/maxcurzi/tplay

https://crates.io/crates/tplay

Play any video/images (files, YouTube links, etc) from within any terminal window.

I know there's plenty of ASCII media players and I've built it mostly for fun, but I think this one is a bit more flexible than others, for example:

Imagine not being able to start a X11 or Wayland session, but you still really really need to watch something (maybe a YouTube tutorial on how to start a X11/Wayland session!): tplay has your back!

Simple install instructions (Ubuntu):

$ sudo apt install libopencv-dev clang libclang-dev libmpv1 libmpv-dev ffmpeg libavfilter-dev libavdevice-dev
$ cargo install tplay
$ tplay <your_media_file_or_youtube_link>

Check the README for usage and playback controls.

Best enjoyed on Linux or WSL.

The crate is by no means perfect and if there's something that's really bugging me is that it may not be straightforward to install all the dependencies (it's somewhat easy in Ubuntu but YMMV), especially on Windows.

I welcome all feedback!