ArticleslgStudy

computer science

MPlayer

MPlayer is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand MPlayer rather than just read about it. In short: MPlayer is a free and open-source media player software application. It is available for Linux, OS X and Windows.

MPlayer — main illustration
MPlayer — illustration

Key takeaways

  • MPlayer belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect MPlayer to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of MPlayer from memory before moving on to harder problems.

Reference excerpt

MPlayer is a free and open-source media player software application. It is available for Linux, OS X and Windows. Versions for legacy systems such as OS/2 and AmigaOS were previously available, but are no longer actively maintained. A port for MS-DOS using DJGPP is also available. Versions for the Wii Homebrew Channel and Kindle have also been developed.

History Development of MPlayer began in 2000. The original author, Hungarian Árpád Gereöffy, started the project because he was unable to find any satisfactory video players for Linux after XAnim stopped development in 1999. The first version was titled mpg12play v0.1 and was initially prototyped using libmpeg3 from Cinelerra-HV. After mpg12play v0.95pre5, the code was merged with an AVI player based on avifile's Win32 DLL loader to form MPlayer v0.3 in November 2000. Gereöffy was soon joined by many other programmers, in the beginning mostly from Hungary, but later worldwide. Alex Beregszászi has maintained MPlayer since 2003 when Gereöffy left MPlayer development to begin work on a second generation MPlayer. The MPlayer G2 project was abandoned, and all the development effort was put on MPlayer 1.0. MPlayer was previously called "MPlayer - The Movie Player for Linux" by its developers but this was later shortened to "MPlayer - The Movie Player" after it became commonly used on other operating systems.

Video acceleration There are various SIP blocks that can accelerate video decoding computation in several formats, including PureVideo, UVD, QuickSync Video, TI Ducati and others. Hardware acceleration for MPlayer was implemented in the 2000s for several chipsets. However, newer forks such as mpv now provide more modern and active support for hardware decoding for MPlayer, including for specific mobile device architectures.

Capabilities and classification MPlayer supports a broad range of media formats, leveraging FFmpeg libraries for decoding and playback. However, users seeking support for modern codecs and streaming protocols often use mpv, which builds upon MPlayer's foundation and can also save all streamed content to a file locally. A companion program, called MEncoder, can take an input stream, file or a sequence of picture files, and transcode it into several different output formats, optionally applying various transforms along the way. A variety of command-line parameters allows changing the appearance of the player, including -speed [number], -af scaletempo for changing audio speed while maintaining the pitch, -ss (start at x seconds), -sb (start at x bytes), -endpos (stop playing at x seconds), -novideo for only playing the audio track of a video, and -loop [number] for looping.

Media formats

MPlayer can play many formats, including:

Physical media: CDs, DVDs, Video CDs, Blu-ray discs Container formats: 3GP, AVI, ASF, FLV, Matroska, MOV (QuickTime), MP4, NUT, Ogg, OGM, RealMedia, Bink Video formats: Cinepak, DV, H.263, H.264/MPEG-4 AVC, HuffYUV, Indeo, MJPEG, MPEG-1, MPEG-2, MPEG-4 Part 2, RealVideo, Sorenson, Theora, WMV, Bink Audio formats: AAC, AC3, ALAC, AMR, DTS, FLAC, Intel Music Coder, Monkey's Audio, MP3, Musepack, RealAudio, Shorten, Speex, Vorbis, WMA, Bink Subtitle formats: AQTitle, ASS/SSA, CC, JACOsub, MicroDVD, MPsub, OGM, PJS, RT, Sami, SRT, SubViewer, VOBsub, VPlayer Image formats: BMP, JPEG, MNG, PCX, PTX, TGA, TIFF, SGI, Sun Raster Protocols: RTP, RTSP, HTTP, FTP, MMS, Netstream (mpst://), SMB, ffmpeg:// (Uses FFmpeg's protocol implementations) MPlayer can also use a variety of output driver protocols to display video, including VDPAU, the X video extension, OpenGL, DirectX, Direct3D, Quartz Compositor, VESA, Framebuffer, SDL and rarer ones such as ASCII art (using AAlib and libcaca) and Blinkenlights. It can also be used to display TV from a TV card using the device tv://channel, or play and capture radio channels via radio://channel|frequency. Since version 1.0RC1, Mplayer can decode subtitles in ASS/SSA subtitle format, using libass.

Available plugins XMMS plugins Avisynth

Interface and graphical front-ends

Like GStreamer, MPlayer has only command line interface and there are a couple of front-ends available, which use GUI widgets of GTK, Qt or some other widget library. When not using these front-ends, mplayer can still display video in a window (with no visible controls on it), and is controlled using a keyboard. MPlayer itself is a command-line based player, but various third-party front-ends have been developed over time. Active and popular front-ends include SMPlayer (Qt-based), while others such as Gnome-MPlayer and MPlayerX are no longer actively maintained.

Forks mplayer2 was a GPLv3-licensed fork of MPlayer, largely the work of Uoti Urpala, who was excluded from the MPlayer project in May 2010 due to "long standing differences" with the MPlayer Team. The main changes from MPlayer were improved pause handling, Matroska support, seeking, and support for Nvidia VDPAU; enabling multithreading by default; and the removal of MEncoder, the GUI interface, and various video drivers and bundled libraries, such as ffmpeg, relying instead on shared libraries. The developers also indicated intentions to enable MPlayer2 to use Libav as an alternative to ffmpeg. The first release, 2.0, was published in March 2011. Mplayer2 development has ceased, and its goals have largely been continued by mpv, an actively developed fork. mpv is a GPLv2-licensed fork of mplayer2. Since June 2015, mpv has worked to relicense its code as LGPL v2.1 or above. MPlayer, MPlayer2 and mpv all use incompatible EDL formats.

Legal controversy In January 2004, the MPlayer website was updated with an allegation that the Danish DVD player manufacturer, Kiss Technology, were marketing DVD players with firmware that included parts of MPlayer's GPL-licensed code. The implication was that Kiss was violating the GPL, since Kiss did not release its firmware under the GPL license. The response from the managing director of Kiss, Peter Wilmar Christensen, countered that the similarities between the two pieces of code indicate that the MPlayer team had in fact used code from Kiss's firmware. However, the Kiss DVD player, released in 2003, used a subtitle file format that is specific to MPlayer, which was designed by an MPlayer developer in 2001.

… excerpt ends here. Continue reading the full article.

Illustrations

MPlayer illustration
MPlayer illustration
MPlayer: MPlayer being run via command line in Microsoft Windows.
MPlayer being run via command line in Microsoft Windows.
MPlayer: Gnome-MPlayer v1.0.9 on GNOME
Gnome-MPlayer v1.0.9 on GNOME

Worked examples

Example 1 — a first encounter with MPlayer

Start with the simplest possible case. Write down what MPlayer claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to MPlayer before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about MPlayer ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of MPlayer

In research
MPlayer appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses MPlayer in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
MPlayer is common in secondary-school and first-year university syllabi. It links to neighbouring topics 2000 software, Amiga media players, Cross-platform free software, so understanding it makes those chapters shorter.
In everyday life
Look for MPlayer outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “MPlayer” →

How to study MPlayer in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what MPlayer means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain MPlayer out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is MPlayer in simple terms?

MPlayer is a free and open-source media player software application. It is available for Linux, OS X and Windows.

Why does MPlayer matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study MPlayer?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on MPlayer.

Tags

  • 2000 software
  • Amiga media players
  • Cross-platform free software
  • Free media players
  • Free music software
  • Free software programmed in C
  • Free video software
  • Linux DVD players
  • Linux media players
  • MacOS media players
  • Portable software
  • SVGAlib programs

Keep exploring