logoalt Hacker News

mikkupikkutoday at 4:12 PM2 repliesview on HN

mplayer, mpv and I think VLC can do it, with the right output driver settings (libcaca or a few other choices.)


Replies

tptacektoday at 4:17 PM

You can just use ffmpeg to extract frames, and then just render the raw images with unicode blocks.

(There's Kitty Graphics too, but I couldn't figure out how to make terminal UI layout work with it.)

show 1 reply
chadrstoday at 4:21 PM

yeah I remember learning this trick in like 2007 with libaa and later caca for color.

It looks like this app is shelling out to ffmpeg to get the bitmap of a frame and then shelling to something called chafa to covert to nice terminal-friendly video.

https://github.com/hpjansson/chafa/