DEV Community

Cover image for DevOps fun #1: if you're cool enough to watch video in console?
DevOps Pass AI for DevOps Pass AI

Posted on β€’ Originally published at devopspass-ai.com on

1

DevOps fun #1: if you're cool enough to watch video in console?

Hey folks, its time for a good content!

If you're cool enough to watch your favourite anime in console?

Story

Ok, some story first. In 1997 (sic!) released first version of aa-lib, library which been allowing to display images In console for MS-DOS and Unix like systems. That day world has been changed!

Actually not, but I have a feeling that Wachowski bro... (you know) saw aa-lib demo called bb, before thay started with Matrix:

If you want to check it locally, on Ubuntu/Debian (if not use Docker):

sudo apt install bb
bb
Enter fullscreen mode Exit fullscreen mode

For MacOS you can build it from sources - https://github.com/artyfarty/bb-osx or run Ubuntu in Docker and run command above, finally it all working in console!

AA-project home could be found here - https://aa-project.sourceforge.net/

How to play video in console?!

Back to Naruto...the best player in the world - mplayer, has not very well known that days feature - do video output in different output destinations, for example console:

What? CACA? AA, BB now CACA? Yes :D

libCACA is a next iteration of AA, because AA had no colors, group enthusiasts around 2010 used the same idea, but added console colors.

CACA will help you to output video like on the first image of article.

CACA_GEOMETRY=200x70  mplayer naruto-shippuden_Ep1.mp4 -vo caca
Enter fullscreen mode Exit fullscreen mode

As small bonus, you can have a cool tool to make ASCII versions of your photos and images:

# Install CACA Utils
sudo apt install caca-utils

# decrease console font size with Ctrl+Mouse_Scroll
img2txt -W 300 favicon.512x512.png
Enter fullscreen mode Exit fullscreen mode

logo2

Support Us, Contact Us

Give us a start, we’re kitties ;)

If you like this post, support us, download, try and give us feedback!

Give us a star 🌟 on GitHub or join our community on Slack.

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

Cloudinary image

Need to crop and overlay a logo on 999.999 web images?

No problem! Combine hundreds of advanced image effects directly through an API. Discover all you can do with Cloudinary Image and Video APIs.

Discover

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay