Show HN: Termplay: Play videos in your terminal
1–10 of 22 posts
Re: Show HN: Termplay: Play videos in your terminal
#2Re: Show HN: Termplay: Play videos in your terminal
#3 $ CACA_DRIVER=ncurses mplayer -quiet -vo caca video.avi
Here's the Silicon Valley intro in glorious ASCII: http://i.imgur.com/YKP6nfP.pngI 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
#4Re: Show HN: Termplay: Play videos in your terminal
#5Mplayer 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
#6Great! Now can we get this integrated with Lynx so that can be my default browser?
Re: Show HN: Termplay: Play videos in your terminal
#7Sixels 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
#8I 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…
Re: Show HN: Termplay: Play videos in your terminal
#9Here'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
#10Mplayer 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 --vo tct https://www.youtube.com/watch\?v\=PA4InNa0NSQ
[1]: https://mpv.io/manual/master/#video-output-drivers-tct