Difference between revisions of "Compile Mplayer For Using With Video API.Ru"
Line 1: | Line 1: | ||
{{ru|en=Compile Mplayer For Using With Video API|cn=Compile Mplayer For Using With Video API.cn}} | {{ru|en=Compile Mplayer For Using With Video API|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/ | |
− | + | Also it is necessary to download the source code of LiveMedia: http://www.live555.com/liveMedia/public/ | |
− | + | Compile the LiveMedia code: | |
<nowiki>$./genMakefiles linux | <nowiki>$./genMakefiles linux | ||
$make</nowiki> | $make</nowiki> | ||
− | + | 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: | |
<nowiki>$./configure --with-livelibdir=/home/mai/prj/live --enable-live</nowiki> | <nowiki>$./configure --with-livelibdir=/home/mai/prj/live --enable-live</nowiki> | ||
− | + | 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): | |
<nowiki>#make install</nowiki> | <nowiki>#make install</nowiki> |
Revision as of 14:09, 23 December 2005
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