descriptionScripts to build MPlayer together with needed libraries
homepage URLhttp://www.mplayer2.org/
owneruoti.urpala@pp1.inet.fi
last changeSat, 9 Mar 2013 12:40:34 +0000 (9 14:40 +0200)
content tags
add:
readme
This repository contains scripts to help build mplayer2 together with
some dependencies that many platforms will not have a new enough
version of. This makes it easy to compile the player against
up-to-date  library versions without needing to manually compile the
libraries first. More specifically, the scripts first compile Libav
and libass and then build the player statically linked against those.

If you downloaded the tarball version of the repository then most
of the sections below do not apply. In that case see only the
following sections:
"Prerequisites"
"Basic use" (leave out the "./init" part, the tarball does not need that)
"Building"
"Giving configure options to mplayer2 and Libav".

CHANGES FROM EARLIER VERSIONS OF THIS FILE (2011-09-01):
List new libfribidi requirement for latest libass in the Prerequisites section.
(2011-08-30):
Changed mentions of FFmpeg-mt/FFmpeg to Libav and removed the separate
documentation of threading. Libav has the threading support developed in
FFmpeg-mt, and mplayer2 uses a number of threads equal to CPU cores by
default.
(2010-12-20):
FFmpeg-mt is now enabled by default in new installs (updating doesn't
change selection), player selects thread count automatically



Prerequisites

This section lists some system packages you need to have installed in
addition to a basic build environment.

The libass build system uses autotool packages (autoconf, automake, libtool).
If you compile from git you must have those installed; tarball exports
contain pregenerated files and those are not necessary.
Libass also requires libfribidi development files.
Libav needs the Yasm assembler.

Compiling with full features requires development files for several
external libraries. Below is a list of some important requirements.
Libraries specific to particular video output methods
(you'll want at least one of VDPAU, GL or Xv):
 - libvdpau (for VDPAU output, best choice for NVIDIA cards)
 - libGL (OpenGL output)
 - libXv (XVideo output)
general:
 - libasound   (ALSA audio output)
 - various general X development libraries
 - libfreetype
 - libfontconfig
 - libfribidi (required by current libass)



Basic use

Assuming you have required system components installed, the following
commands should be enough to build the player:
$ ./init --shallow
$ make -j 6
$ make install
You can also run it like "mplayer/mplayer some_file.mkv" without doing
the last install step.
For more details see below.



Initializing the repo

First you need to download the actual sources, using either:

./init
or
./init --shallow

The latter form creates only partial git repositories which do not
have full history data. This reduces the amount of data you need to
download but reduces the development-related functionality of the
repositories. If you only want to simply build mplayer2 it should
usually be enough.



Building

You can build mplayer2 with just 'make'. There is no separate
configure step because the mplayer2 configure depends on included
library sources being configured _and_ built first. If you want to
give configuration options see the section below.



Giving configure options to mplayer2 and Libav

You can specify extra options that will be passed to mplayer2's
configure script by placing them in a file called "mplayer_options" in
this directory. There's a corresponding file called "libav_options"
for Libav. Options in file "common_options" will be passed to both
mplayer2 and Libav; this mainly makes sense for generic options like
"-cc=gcc-4.4'. Place each option on its own line without any quoting.



Helper scripts included in this repo:

./init
Prepare the repository by downloading actual sources. You need to run
this at least once before you can build anything. With the --shallow
argument creates shallow git repositories that require less bandwidth
to download.

./update
Download the latest version of the sources.

./clean
Remove all generated or extra files from build directories and
restore them to their original state. Running this between builds is
probably a good idea.
shortlog
2013-03-09 Uoti UrpalaUpdate libav submodulemaster
2013-03-09 Uoti UrpalaUpdate mplayer submodule
2013-03-09 Uoti UrpalaUpdate libass submodule
2013-02-21 Uoti UrpalaUpdate mplayer submodule
2013-02-21 Uoti UrpalaUpdate libav submodule
2013-01-24 Uoti UrpalaUpdate mplayer submodule
2013-01-24 Uoti UrpalaUpdate libav submodule
2013-01-24 Uoti UrpalaUpdate libass submodule
2013-01-13 Uoti UrpalaUpdate libav submodule
2013-01-13 Uoti UrpalaUpdate mplayer submodule
2013-01-10 Uoti UrpalaUpdate libass submodule
2013-01-09 Uoti UrpalaUpdate libav submodule
2012-12-20 Uoti UrpalaUpdate libav submodule
2012-12-11 Uoti UrpalaUpdate libav submodule
2012-11-28 Uoti UrpalaUpdate mplayer submodule
2012-11-28 Uoti UrpalaUpdate libav submodule
...
heads
3 years ago master