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

GNU Binutils 2.25 Released With Port To Andes NDS32

The Binutils 2.25 changes include support for the Andes NDS32 architecture and new --data, --include-all-whitespace, and --dump-section options. Among the changes for GNU ld in Binutils 2.25 is support for the Andes NDS32 architecture, support for the OpenRISC and OR32 has been replaced with the OR1K port. Gas for Binutils 2.25 has support for AVR Tiny micro-controllers, support for the NDS32, and enhanced ARM support. The NDS32 enablement within the GNU stack has been going on for a while with last year GCC seeing a port to this architecture, etc. The NDS32 from Andes Technology is a 32-bit CPU architecture designed for embedded environments using the AndeStar ISA and the SoC processors are marketed under the AndesCore brand. Read more

2014 Year-End NVIDIA Linux Benchmark Comparison

For this article today, the major driver releases of the year for their mainline driver were benchmarked while ignoring some of the later drivers in each series that just shipped bug-fixes or new kernel / xorg-server support after a new driver series was already in beta or stable. The tested NVIDIA drivers for this article include the 331.38, 334.16, 337.12, 337.19, 340.17, 343.13, 343.22, 346.16, and 346.22 Linux x86_64 drivers. The 331 series was the last driver series from late 2013 for reference. The graphics card used for today's testing was a GeForce GTX 780 Ti (Kepler) graphics card as being a high performance GPU that's compatible with all of the driver releases tested throughout the year. Read more

Quadcopter drone packs first all-Linux APM autopilot

Erle Robotics launched a ROS-enabled, open source “Erle-brain” autopilot that runs APM directly on Linux. The device also powers an “Erle-copter” drone. Over the last year, Spanish firm Erle Robotics S.L. has been working with 3DRobotics to develop an open source BeaglePilot autopilot for drones that can run Linux on 3DR’s popular, Arduino-based APM (ArduPilot Mega) platform. The APM Linux port was developed by both companies, as well as several academic institutions. The BeagleBone-based “Erle-brain” autopilot is built into the $490-and-up Erle-copter quadcopter. Read more

Seven Tips To Get The Most From Your New Android Smartphone

With applications able to run in the background and sync as they see fit, Android can rapidly eat through your cellular data allowance if you are not careful. While it’s fine to let the data run free on wi-fi, you’ll want to restrict your data usage when out and about. Short of switching off mobile data (which defeats the purpose of a smartphone), look under the options in the Data Usage part of the settings. Here you’ll find my wallet’s favourite Android setting of ‘restrict background data’. Now when using cellular data, apps will only pull down data when they are in the foreground and you can see them doing so. If a smartphone is all about being in control, this is the option that gives you confidence. Read more