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

Compact, rugged IoT gateway runs Linux on Quark

Adlink’s “Matrix MXE-100i” gateway runs Wind River’s Linux-based IDP XT IoT gateway stack on an Intel Quark processor, and offers multiple wireless options. The Matrix MXE-100i is a spinoff of the Matrix MXE-200i gateway computer announced by Adlink in February. Like the MXE-200i, the identically sized, 120 x 100 x 55mm MXE-100i comes preloaded with a Linux-based Internet of Things gateway software stack from Intel subsidiary Wind River, called Wind River Intelligent Device Platform XT. Read more

Media player mini-PC runs Android on 64-bit octa-core SoC

We no longer cover every Android media player or HDMI stick that comes around, but the new Tronsmart “Orion R68″ certainly caught our attention. (So did its similar predecessor, the quad-core Rockchip RK3288 based Orion R28). First, it runs Android 5.1, a bug-fixed and more secure version of Android 5.0 Lollipop, on a new Rockchip RK3368 system-on-chip, which combines eight Cortex-A53 cores clocked at up to 1.5GHz. Read more

Red Hat and Fedora

  • Red Hat Gluster, Ceph storage roadmaps laid out at Red Hat Summit
    During the Red Hat Summit last week, the vendor provided roadmaps for its Ceph and Gluster storage software products including unified management technology and expanded protocol support for Ceph. Red Hat demonstrated the new unified capabilities that will allow users to install, manage and monitor Red Hat's Gluster and Ceph storage. Additional capabilities targeted next year for Red Hat Ceph Storage include support for iSCSI and NFS and improved multi-site capabilities, according to Neil Levine, a Red Hat director of product management.
  • Red Hat – Software Partnership Shakes Up Mobile Software Market
  • The open organization on main street
  • Analysts Evaluation on Red Hat, Inc. (NYSE:RHT)
  • Red Hat Inc (NYSE:RHT) a Buy: Oppenheimer
    According to Wall Street, Red Hat, Inc. (NYSE:RHT) is expected to report earnings per share for the current fiscal quarter of $0.29. This is the consensus mean estimate based on the individual covering sell-side analysts’ reported numbers. The company last reported earnings for the period ending on 2015-05-31 of $0.31.
  • Call for applications for Fedora Diversity Advisor (A Volunteer Position)
    Fedora is a big community that includes contributors and users from many different countries, each with their own experiences and historical backgrounds that contribute to a diverse mix of cultural, educational, and behavioral norms. To continuously create and foster an inclusive environment in the Fedora community, it’s important to respond to the needs of existing contributors and users, and welcome new contributors and users from diverse backgrounds.
  • Post Filtering
    In order to prevent users from being overwhelmed by a fire hose of notifications from the hubs they’re subscribed to and from all the other apps connected to Fedora Hubs, we decided to design a filtering system.

Btrfs In Linux 4.2 Brings Quota Updates, Many Fixes

Adding to the already lengthy list of new features for Linux 4.2 is the Btrfs file-system updates that were sent in today by Facebook's Chris Mason. The Btrfs file-system update for Linux 4.2 includes sub-volume quota updates, sysfs improvements, device management improvements, and various other changes. In total around 1,700 lines of Btrfs code were touched for this merge window. Read more Also: XFS Will Get DAX Support In The Linux 4.2 Kernel