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

From ElphelWiki
Jump to: navigation, search
 
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{{en|ru=Compile Mplayer For Using With Video API.Ru|cn=Compile Mplayer For Using With Video API.cn}}
 
{{en|ru=Compile Mplayer For Using With Video API.Ru|cn=Compile Mplayer For Using With Video API.cn}}
  
You can take the MPlayer and ffmpeg source codes at the address: http://www.mplayerhq.hu/MPlayer/cvs/   
+
You can take the MPlayer source code from the address: http://www.mplayerhq.hu/design7/dload.html  
  
 
Also it is necessary to download the source code of LiveMedia: http://www.live555.com/liveMedia/public/
 
Also it is necessary to download the source code of LiveMedia: http://www.live555.com/liveMedia/public/
Line 9: Line 9:
 
$make</nowiki>
 
$make</nowiki>
  
To copy into directory with unpacked MPlayer source code the next directories from ffmpeg package: '''libavformat, libavcodec, libavutil'''.
+
Next you must configure MPlayer before compilation, by telling it where the LiveMedia Code we just made is located. This command looks like:
 
+
  <nowiki>$./configure --with-livelibdir=/home/*yourusername+/*path_to_where_you_placed_the_LiveMedia_Files/live --enable-live</nowiki>
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:
 
  <nowiki>$./configure --with-livelibdir=/home/mai/prj/live --enable-live</nowiki>
 
  
 
Now compile:
 
Now compile:
 
  <nowiki>$make</nowiki>
 
  <nowiki>$make</nowiki>
  
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):
+
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):
 
  <nowiki>#make install</nowiki>
 
  <nowiki>#make install</nowiki>

Latest revision as of 06:50, 20 November 2008

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


You can take the MPlayer source code from the address: http://www.mplayerhq.hu/design7/dload.html

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

Compile the LiveMedia code:

$./genMakefiles linux
$make

Next you must configure MPlayer before compilation, by telling it where the LiveMedia Code we just made is located. This command looks like:

$./configure --with-livelibdir=/home/*yourusername+/*path_to_where_you_placed_the_LiveMedia_Files/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