Language Selection

English French German Italian Portuguese Spanish

MiniTutor: MPlayer and Video Output

Filed under
Howtos

'There are dozen of available video output drivers and video output options, it will take at least several pages to explain everything about them, but as you can always read more complete manuals and also the MPlayer man pages, the current minitutor is only shows some important and interesting video output you can use to play around your favorite movies and files.

The MPlayer offers dozen of video output options you can use to change the way the video file is showed such as '-brightness', '-contrast', '-fs' fullscreen playback, '-geometry', '-saturation' and more. For example, you can play a video file by setting its color to grayscale and fullscreen by using 'mplayer -fs -saturation -100 file.mpeg'.
Some of these video output options can be also used to video output drivers, you need to read the man page to see what you can use.

The MPlayer video output drivers (-vo) are interfaces to different video ouput facilities, and the syntax to use with -vo option is '-vo driver1:suboption1=value'. The options you can use are great not only to get a better displayed image but also to play around and get pieces of your video file, or even play video out of X Server.

Play video out of X, out of the graphical mode, it's a very important feature we have on MPlayer. In order to play a video file out of X you can use some video output options, such as 'vesa' and fbdev'. The 'fbdev' plays your video file by using the kernel framebuffer and a device you may or may not specify at command line, for example 'mplayer -vo fbdev file.mpeg'.

Another great feature are the options to save the video output to a non video file, for example images and/or an animated gif. In order to save a video file to an animated gif you need to use the option 'gif89a', for example you can use a line like 'mplayer -vo gif89a:15.0:movie.gif file.mpeg'. In the example we change the default output filename which is out.gif to movie.gif and also set the framerate to 15.0 instead of use the default 5.0.

There are also drivers for X you can use to get a better image of your video file, such as 'sdl' which uses the SDL library and 'gl' to use OpenGL driver. Also you can use the 'null' to produces no video output and some others.

One very interesting driver is 'aa', the ASCII art video output driver that works on a text console. You can get very intriguing pictures from your video in ASCII art (picture below). It's really an impressive driver specially because it has several options you can count such as 'extended' which uses all 256 characters, 'driver' which is used to select the aalib driver (X11, curses, linux), and more. The ASCII Art MPlayer accepts rendering options, dithering options, monitor parameters, size options, attributes, font options, and others. It almost a player inside the player. An example: mplayer -vo aa:bold:driver=curses:contrast=50 file.mpeg.

The video output options and video output drivers are only a small percent of the MPlayer's power.
Read the man page and search for other options you can use, and also do not forget to take a look at Mencoder, the MPlayer video encoder.

You have a powerful video and audio player, fell free to play and play around it.

The MPlayer homepage: HERE
Minitutor from: GoblinX Minitutors

More in Tux Machines

Android Leftovers

Leftovers: OSS

  • OpenStack Summit Tokyo 2015: Presentation
  • Common problems in open source communities (and how to solve them)
    In her Texas Linux Fest keynote, Joan Touzet talked to us about how to improve our open source communities. Joan's talk was a series of stories about communities who have faced a crisis and then rose above it.
  • OpenStack Was Key To Building Servers.Com
    When XBT Holding S.A. decided to simplify how its subsidiaries provided global hosting, network solutions, and web development they turned to the open source cloud infrastructure platform OpenStack. By consolidating the offerings under a single service provider, Servers.com, customers can more easily browse, mix, compare and choose the most suitable services.
  • ZeroStack Comes Out of Stealth, Focused on Private Clouds
    There is another OpenStack-focused startup on the scene, and you have to appreciate its creative name: ZeroStack. The cloud computing company has come out of stealth mode to introduce a private cloud solution that it claims is easier to configure, consume and manage than any other technology on the market.
  • Apache Ignite, a Big Data Tool, Graduates as a Top-Level Project
    Only a few days ago, Apache, which is the steward for and incubates more than 350 Open Source projects, announced that Apache Lens, an open source Big Data and analytics tool, has graduated from the Apache Incubator to become a Top-Level Project (TLP). Now, the ASF has announced that Apache Ignite is to become a top-level project. It's an open source effort to build an in-memory data fabric that was driven by GridGain Systems and WANdisco.
  • Funding the Cloud: Top VCs Aim for the Silver Lining
  • How Apache Spark Is Transforming Big Data Processing, Development
  • PiwigoPress release 2.31
    I just pushed a new release of PiwigoPress (main page, WordPress plugin dir) to the WordPress servers. This release incorporates new features for the sidebar widget, and better interoperability with some Piwigo galleries.
  • How to teach student sys admins
    Students spend the 16-week long course learning practical skills using real tools. To support their systems, students learn about using support tickets and documentation by using RT and MediaWiki. To deploy and maintain their systems, they learn about configuration management using Puppet, system monitoring using Nagios, and backup and recovery using Bacula. But the broad concepts are more important than the specific software packages I just mentioned. The point is to learn, for example, configuration management, not to be trained to use Puppet. The software used by Clark is used because it works for him, but the software is flexible and changeable.
  • ownCloud beefing up security with bounty program
    ownCloud Inc. have announced a partnership with HackerOne to help with the newly created Security Bug Bounty Program in an effort to find vulnerabilities and fix them before they become an issue for users.
  • National Science Foundation Commits $6 Million to Secure IoT
  • Schiphol Airport working on open innovation
    ...open data and an open programming interface...
  • How open film project Cosmos Laundromat made Blender better
    If you're not familiar with the string of open projects that the Blender Institute has kicked out over the years, you might not be familiar with the term "open movie." Simply put, not only is Cosmos Laundromat produced using free and open source tools like Blender, GIMP, Krita, and Inkscape, but the film itself, and all of its assets—models, textures, character rigs, animations, all of it—are available under a Creative Commons Attribution (CC-BY) license. Want to see what a production character rig looks like? Or know how that giant color tornado was created? How about actually using a character (or just a prop) in your own project? Maybe you even want to redo the entire film to your own tastes. It's an open movie! You can!
  • Making strides in container integration, and more OpenStack news
  • The thin line between good and bad automation
    I don't like automation -- I love it. I whisper sweet nothings, come 'round with flowers, and buy milkshakes for automation. I've even stood outside the window with a boombox for automation. I will go out of my way to automate tasks that, while they are not terribly tedious, I don't want to have to remember exactly how to do them somewhere down the road, when months have gone by since the last time I had to relearn them.
  • The new IT is all about the customer
    Open source code. GitHub and other cloud repositories enable developers to share and consume code for almost any purpose imaginable. This reflects today's practical, non-ideological open source culture: Why code it yourself if someone else is offering it free under the most liberal license imaginable?

Leftovers: BSD

  • Coming Soon to OpenBSD/amd64: A Native Hypervisor
    Earlier today, Mike Larkin (mlarkin@) published a teaser for something he's been working on for a while.
  • the peculiar libretunnel situation
    The author of stunnel has (once, twice) asserted that stunnel may not be used with LibreSSL, only with OpenSSL. This is perhaps a strange thing for free software to do, and it creates the potential for some very weird consequences. First, some background. The OpenSSL license and the GPL are both free software licenses, but they are different flavors of freedom, meaning you can’t mix them. It would be like mixing savory and sweet. Can’t do it. Alright, so maybe technically you can do it, but you’re not supposed to. The flavor, er, freedom police will come get you. One workaround is for the GPL software to say, oh, but maybe wait, here’s an exception. (Does this make the software more or less free?) Here’s a longer explanation with sample exception.
  • FreeBSD on Beagle Bone Black (with X11)
    X11 clients on the Beagle Bone Black .. that’s X11 over the network, with the X Server elsewhere. No display as yet. The FreeBSD wiki notes that there’s no (mini) HDMI driver yet. So I built some X11 programs, xauth(1) and xmessage(1), and installed them on the Bone. Since I bought a blue case for the Bone, and it is the smallest computer in the house (discounting phones .. let’s call it the smallest hackable computer in the house) the kids decided to call it smurf. Here’s a screenshot of poudriere’s text console as it builds packages.

OpenSSL Security: A Year in Review

Over the last 10 years, OpenSSL has published advisories on over 100 vulnerabilities. Many more were likely silently fixed in the early days, but in the past year our goal has been to establish a clear public record. Read more Also: Tuesday's security advisories Linux Foundation publishes best practices for secure workstations