Compile Mplayer For Using With Video API.Ru

From ElphelWiki
Revision as of 15:09, 23 December 2005 by Ilya (talk | contribs)
Jump to: navigation, search

in English | autotranslate | по-русски | 中文版

You can take the MPlayer and ffmpeg source codes at the address: http://www.mplayerhq.hu/MPlayer/cvs/

Also it is necessary to download the source code of LiveMedia: http://www.live555.com/liveMedia/public/

Compile the LiveMedia code:

$./genMakefiles linux
$make

To copy into directory with unpacked MPlayer source code the next directories from ffmpeg package: libavformat, libavcodec, libavutil.

The next step - you must configure MPlayer before compilation. You should specify the prefixes which are necessary for enabling the LiveMedia code. This command can to look as:

$./configure --with-livelibdir=/home/mai/prj/live --enable-live

Now compile:

$make

If compilation is done without errors, in the current directory will be created the executable files mplayer and mencoder. You can install MPlayer and all users will can to use it (you must have the root privileges for this operation):

#make install