Difference between revisions of "Compile Mplayer For Using With Video API"

From ElphelWiki
Jump to: navigation, search
Line 9: Line 9:
 
$make</nowiki>
 
$make</nowiki>
  
In the directory with unpacked MPlayer source code, copy the following directories from the ffmpeg package: '''libavformat, libavcodec, libavutil'''.
+
Copy the following directories from the ffmpeg package: '''libavformat, libavcodec, libavutil''' into the directory with unpacked MPlayer source code.
  
The next step - you must configure MPlayer before compilation. You should specify the prefixes which are necessary for enabling the LiveMedia code. This command looks like:
+
The next step is - you must configure MPlayer before compilation. You should specify the prefixes which are necessary for enabling the LiveMedia code. This command looks like:
 
  <nowiki>$./configure --with-livelibdir=/home/mai/prj/live --enable-live</nowiki>
 
  <nowiki>$./configure --with-livelibdir=/home/mai/prj/live --enable-live</nowiki>
  

Revision as of 09:16, 29 December 2005

in English | [[{{{de}}}|deutsch]] | [[{{{fr}}}|français]] | по-русски | автоперевод | 中文版 | 机械翻译


You can take the MPlayer and ffmpeg source code from 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

Copy the following directories from the ffmpeg package: libavformat, libavcodec, libavutil into the directory with unpacked MPlayer source code.

The next step is - you must configure MPlayer before compilation. You should specify the prefixes which are necessary for enabling the LiveMedia code. This command looks like:

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

Now compile:

$make

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

#make install