HNHacker News
TopNewBestAskShowJobs

LEGOlord208

49 karma · joined June 19, 2017

submissionscomments
LEGOlord208··on A Little Story About the `yes` Unix Command
There was a lot of things about Rust that made think it was weird before I actually gave in and tried it. Now I adore Rust. You should try it.
LEGOlord208··on Show HN: Termplay: Play videos in your terminal
Update: Sixels are now supported :)

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

LEGOlord208··on Show HN: Termplay: Play videos in your terminal
Update: Sixels now work. I just need to fix scaling. The image turns out REALLY small.
LEGOlord208··on Show HN: Termplay: Play videos in your terminal
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.

LEGOlord208··on Show HN: Termplay: Play videos in your terminal
Yep, it does avoid sync issues... well, partly. It doesn't know anything about the audio as that is handled by a pretty high level library. But it does make sure the frames goes at the speed they should. So assuming the audio isn't lagging behind or ahead (which I haven't encountered yet), the image and audio should be synced.
LEGOlord208··on Show HN: Termplay: Play videos in your terminal
Cool!

I think that playing YouTube in the terminal today is just a fun idea because the videos look so goofy. But like people say... Sixel... Everything is apparently possible!

Someday, somebody will make the whole YouTube platform.

LEGOlord208··on Show HN: Termplay: Play videos in your terminal
I was looking for image libraries. I couldn't really find more than /dev/fb0. Cool, I'll look into sixel!
LEGOlord208··on Show HN: Termplay: Play videos in your terminal
I'll look into it, thanks!

EDIT: Done :) https://github.com/legolord208/termplay/commit/2263a5c5e385c...