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. You can install cava much in the same way, through: $ sudo dnf install mplayer Watch a videoįinally, let's double down on our first tool, 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. Short for "console-based audio visualizer for ALSA" (although it supports more than just ALSA now), cava is a nice MIT-licensed terminal audio visualization tool that's fun to watch. If you want to do more than just listen, and get a visual representation of what you're listening to, try cava. MPlayer is open source under the GPLv3, and you can find out more about the project and download source code from the project's website. I wanted to listen to the local college radio station here in Raleigh ( 88.1 WKNC they're pretty good!), and so after grabbing the streaming URL from their website, all that took to get my radio up and running, no GUI or web player needed, was: $ mplayer -nocache -afm ffmpeg MPlayer has a slew of command-line options to set depending on your situation. On Fedora, I found it in RPM Fusion (be aware that this is not an "official" repository for Fedora, so exercise caution as you would with any unfamiliar binary source): $ sudo dnf install mplayer If MPlayer is not already installed, you can probably find it packaged for your distribution. MPlayer is a versatile multimedia player that will support just about any media format you throw at it. I originally profiled these tools as a part of my 24 Days of Linux Toys series on a user there suggested that you might choose mpv as a suitable mplayer replacement, but I'll leave that up to the reader to explore and decide. Today we're going to look at three tools for enjoying sound and video at your Linux terminal: youtube-dl, mplayer, and cava. Some of these tools work better than others, of course, but a lot of them are worth poking around to see if they work for you. If you poke around GitHub for long enough, you can find a command line utility to replace the graphical front end of just about every service out there, at least those with an accessible API. We all have a tool that we begrudge having to leave the command line to use, whether it's for a web browser or a desktop GUI application. PS: Made on Eclipse 3.0M4 with SWT 3.0, tested on Windows 2000 pro SP4 only.As a system administrator, you probably spend a lot of time at your terminal. I just wanted to do something back for this NG, which has helped me in the If you do think of a nice andĬlean way, please let me know. Look at the code, and you'll see what i mean. Implementing a method for executing arbitrary methods on the control, just But I haven't found a nice and clean way of (which i extracted using the snippet on the SWT snippets page) as static I've included all the properties and methods specified in it's type-library Same functionality without the sluggishness and memory hogging that WMP9 Slightly older 'brother' of this, I chose to use WMP6.4, as it provides the Apparently, there is much interest in using WMP9 for this as a I was interested in thisįunctionality as well, and started to experiment with the code some ppl had That MediaPlayer provides into an SWT app. Recently i read a thread on this NG regarding embedding the ActiveX control Search Help Register Login Home Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Embedding MPlayer in SWT Show: Today's Messages :: Show Polls :: Message Navigator
0 Comments
Leave a Reply. |