Live data from Hacker News

Show HN: Termplay: Play videos in your terminal

github.com

21–22 of 22 posts

Re: Show HN: Termplay: Play videos in your terminal

#21
post #7

I see these every so often, but they never mention Sixels, which could be used to display videos with much more detail (like with https://github.com/saitoha/FFmpeg-SIXEL ). Sixels aren't widely supported, and the implementations I tried were lacking in stability, but they offer some interesting possibilities, like embedding images into your text browser (and not with a hack like w3m uses), or playing Battle for Wesno…

I was looking for image libraries. I couldn't really find more than /dev/fb0. Cool, I'll look into sixel!

Update: Sixels now work. I just need to fix scaling. The image turns out REALLY small.

Re: Show HN: Termplay: Play videos in your terminal

#22

Earlier quoted context omitted.

xterm and Konsole allow to display images in the terminal. To check it out, install w3m with the w3m-img patch (in Debian, the "w3m-img" package; in Arch Linux, the "w3m" and "imlib2" packages) and open a webpage that contains plain tags. Example screenshot from Konsole: https://imgur.com/a/D98Kl (showing https://en.wikipedia.org/wiki/xterm ) The rendering is really buggy. Images glitch away all the time, possibly un…

You could do like the "fbi" tool, which uses the framebuffer (/dev/fb0) to draw to the screen. And that works for the TTY, but doesn't in Konsole. Others have also told me about Sixels, so I'll probably add support for that at least.

Update: Sixels are now supported :)

Try it out with one of the terminals listed in https://github.com/saitoha/libsixel#terminal-requirements

Post reply on HN