First of all, this is blog post #1234, so I decided to make a very simple one with mplayer, the video drivers aalib and libcaca.

https://i1.ytimg.com/vi/0DmL2wIAZTU/sddefault.jpg

Click to watch the clip

The commands:

mplayer -vo aa:driver=slang -monitorpixelaspect 0.5 -msglevel all=0 ~/tmp/\#1234.gif
CACA_DRIVER=ncurses mplayer -vo caca -msglevel all=0 ~/tmp/\#1234.gif
mplayer -vo aa -monitorpixelaspect 0.5 -msglevel all=0 ~/tmp/\#1234.gif

The GIF:

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEid19qHcSACTnKXZ9cYVQhpjhkQHJ9elz3qNJhxI0AYpPlzVj58NXA0eavsLbK6nEVwCtht9-m8XAJoo3iMynAfNPbZHRW1f13DVdY6I1t1wHLoHF66Udzwlb81u5U996qix-EVuFBHyYI/s800/%25231234.gif

My aalib was compiled with slang, if you don’t use that, you can use curses. For some reason, I need to specify -monitorpixelaspect 0.5 or aa driver wouldn’t render properly and still can’t use it within tmux. -msglevel to prevent any messages ruining the output.

libcaca is much easier, just CACA_DRIVER environment variable is enough to play in terminal. Without it, it’d be like the third command, a new window in X pops up to play the GIF.

If you want, you can use -loop 0 to have infinite loop, a GIF screensaver?