Better HN
topnewbestaskshowjobs
Log inSign up

LEGOlord208

49 karma · joined Jun 19, 2017 (9y ago) · 9 submissions

Submissions

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

Update: Sixels are now supported :)

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

comment 9y ago · link · parent

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

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

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

comment 9y ago · link · parent

I'll look into it, thanks!

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

9.

Show HN: Termplay: Play videos in your terminal(github.com ↗)

101 points · by LEGOlord208 · 9y ago · 20 comments