



If you just use MPlayer to launch the video from the command line as-is ( $ mplayer fireplace.mp4), it will play, but in a window all of its own not exactly what we were going for.įirst, I set my libcaca settings to force it to use ncurses as the display driver, keeping the output in my terminal, with: $ export CACA_DRIVER=ncurses If you didn't install MPlayer yesterday, go ahead and do that, and you may need to install libcaca for your system as well if you did not install it previously. I intentionally picked a short video, since long videos can get quite large! $ youtube-dl pec8P5K4s8c -o fireplace.mp4 For YouTube videos, you can download with the file ID alone, like this, and we'll specify an output file name as well. YouTube allows you to search by license, so today, we're going to take a look at a fireplace video from Gemmy's Videos available under a Creative Commons attribution license. For me, in Fedora, it was packaged in my repositories, so installation was as simple as: $ sudo dnf install youtube-dl First, install it using a method appropriate for your distribution. In its simplest form, we're going to use youtube-dl to grab a video for playback in our terminal.

There are some interesting legal opinions out there about where public domain dedication fits into the open source landscape, but it's generally considered compatible with existing open source licenses even by organizations who don't recommend its use. Youtube-dl is licensed under a public domain dedication known as the Unlicense that's similar to Creative Common's CC0. A note: please don't use youtube-dl in any context that would violate the copyright laws in your jurisdiction. Today we're going to double-down on yesterday's toy, MPlayer, and add in one more, youtube-dl.Īs its name would imply, youtube-dl is a command-line utility for downloading YouTube videos, but it can capture video from a number of other sites as well, and it's a really quite full-featured application with thorough documentation to make video acquisition easy. You'll find plenty of games, diversions, and oddities for your Linux terminal.Īnd while you may have seen some toys from our calendar before, we hope there’s at least one new thing for everyone. Hopefully, you've been following along, but if not, start back at the beginning and work your way through. We're almost to the end of our 24-day-long Linux command-line toys advent calendar. 10 command-line tools for data analysis in Linux.
