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

today's howtos

Software: LibreELEC 8.0.1 (Kodi), MKVToolnix 10.0.0, Claws Mail 3.15)

  • LibreELEC (Krypton) v8.0.1 MR
    LibreELEC (Krypton) v8.0.1 MR is available bringing Kodi v17.1, hardware support for the Raspberry Pi Zero W, improved software HEVC decoding on RPi3/CM3 hardware, driver support for Fe Pi audio cards, and support for Cirrus Logic DAC audio cards (thanks to @HiassofT). The bump to Kodi v17.1 resolves several upgrade and user-experience issues we have seen with the initial Kodi v17.0 release, and happiness is enhanced for users wearing an official LibreELEC tee-shirt or hoodie.
  • LibreELEC 8.0.1 Is Out Based on Kodi 17.1, Adds Support for Raspberry Pi Zero W
    LibreELEC developers announced the release and general availability of the first maintenance update to the major LibreELEC 8.0 stable series of the Linux-based operating system built around the Kodi open-source media center.
  • NetworkManager 1.8 to Support Handling of PINs for PKCS#11 Tokens as Secrets
    Lubomir Rintel announced that the development of the NetworkManager 1.8 major release has kicked off with the availability of the first snapshot, versioned 1.7.2, for public testing.
  • MKVToolnix 10.0.0 Open-Source MKV Manipulator Improves H.264 and H.265 Parsers
    MKVToolnix developer Moritz Bunkus released a new major branch of his popular, open-source and cross-platform MKV (Matroska) manipulation software, versioned 10.0.0.
  • Claws Mail 3.15.0
    Claws Mail is a GTK+ based, user-friendly, lightweight, and fast email client.
  • Claws Mail 3.15 Open-Source Email Client Brings New Hidden Preferences, Bugfixes
    Claws Mail, the lightweight and open-source GTK+ based email client for Linux, UNIX, and Windows operating systems, was updated recently to version 3.15.0, a maintenance update that adds new functionalities and addresses a lot of bugs. Claws Mail 3.15.0 comes more than four months after the first point release to the 3.14 series of the application, and among the new features implemented we can mention a bunch of options that should help users configure Claws Mail when opening a selected message, such as checkboxes on the Display and Summaries page of Preferences.

Games for GNU/Linux

  • It looks like we may be getting a Planescape Torment Enhanced Edition
    Back in January Beamdog was looking for testers on a new game. Now the Planescape website has a countdown timer. It's legitimate too, as tweeted by the Beamdog and the D&D twitter accounts.
  • RTS game 'Deadhold' could come to Linux, considering an experimental Beta
    The developers of Deadhold [Steam, Official Site] want to support Linux and they are thinking about releasing an experimental Linux Beta.
  • Ten amazing Linux games you can play without WINE
    Those of us who have taken up the mantle of a Linux gamer know that our path is rarely easy. For a long time, few games were released for our chosen platform. Those that were shipped riddled with bugs, compatibility issues and rarely worked out of the box. Getting games to work require using WINE and deeply complex almost arcane workarounds to force windows games to work on our quirky systems. Unfortunately, games rarely worked well and usually required hours of complex tweaking in order to get them to function properly. To top this all of, there were graphics driver problems, optimization issues, peripherals rarely worked out of the box and our lives were generally difficult.

Ubuntu-Based LXLE 16.04.2 Gets an RC Build, Promises to Be the Best Release Ever

LXLE 16.04.2 is on its way to becoming the best release ever of the Ubuntu-based distribution built around the lightweight LXDE desktop environment, and it just received a Release Candidate (RC) build. Continuing to get all the goodies from Ubuntu 16.04.2 LTS (Xenial Xerus), LXLE 16.04.2 Release Candidate is here only two weeks after the last Beta milestone, and adds quite a bunch of improvements and bug fixes. These include a reconfigured menu layout to be less cluttered for navigation, and a revamped Control Menu to act as a dynamic Control Panel. Read more