Live data from Hacker News

Show HN: Termplay: Play videos in your terminal

github.com

1–10 of 22 posts

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

#3
Mplayer can do this by default e.g.

    $ CACA_DRIVER=ncurses mplayer -quiet -vo caca video.avi
Here's the Silicon Valley intro in glorious ASCII: http://i.imgur.com/YKP6nfP.png

I had some audio sync issues with mplayer, and it sounds like termplay avoids that. I'm also not sure if there's a way to use true colour with mplayer.

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

#5

Mplayer can do this by default e.g. $ CACA_DRIVER=ncurses mplayer -quiet -vo caca video.avi Here's the Silicon Valley intro in glorious ASCII: http://i.imgur.com/YKP6nfP.png I had some audio sync issues with mplayer, and it sounds like termplay avoids that. I'm also not sure if there's a way to use true colour with mplayer.

Yeah the mplayer colors are pretty bad. TRUE COLOR MASTER RACE

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

#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 Wesnoth inside your terminal [ https://github.com/saitoha/libsixel ]

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

#8
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…

Honestly, the main reason I like this is the way videos look with huge pixels.

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

#9
You should allow the user to specify a pixel ratio that describes the width/height of each character of their terminal font. Otherwise, your images will be distorted, because your output pixels are not square.

Here's a screenshot demonstrating this issue, when converting a GIF to text in a terminal:

https://monosnap.com/file/HwrGbSHEwxWlTQCCeXyd9qcFxwL38V.png

On the left, the original image. In the center, a ratio-perserved resized render in a terminal On the left, a pixel-ratio aware resized render.

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

#10

Mplayer can do this by default e.g. $ CACA_DRIVER=ncurses mplayer -quiet -vo caca video.avi Here's the Silicon Valley intro in glorious ASCII: http://i.imgur.com/YKP6nfP.png I had some audio sync issues with mplayer, and it sounds like termplay avoids that. I'm also not sure if there's a way to use true colour with mplayer.

mpv has a true color terminal renderer.[1] It's not the fastest though: http://i.imgur.com/919Rez5.png

  $ mpv --vo tct https://www.youtube.com/watch\?v\=PA4InNa0NSQ
[1]: https://mpv.io/manual/master/#video-output-drivers-tct
Post reply on HN