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

From ElphelWiki
Jump to: navigation, search
Ilya (talk | contribs)
← Older edit
Ilya (talk | contribs)
Newer edit →
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}}
  
Исходный код mplayer и ffmpeg можно взять по адресу : http://www.mplayerhq.hu/MPlayer/cvs/   
+
You can take the MPlayer and ffmpeg source codes at the address: http://www.mplayerhq.hu/MPlayer/cvs/   
  
Так же необходимо скачать код liveMedia : http://www.live555.com/liveMedia/public/
+
Also it is necessary to download the source code of LiveMedia: http://www.live555.com/liveMedia/public/
  
Откомпилируйте код liveMedia:  
+
Compile the LiveMedia code:  
 
  <nowiki>$./genMakefiles linux
 
  <nowiki>$./genMakefiles linux
 
$make</nowiki>
 
$make</nowiki>
  
Скопируйте в каталог с разархивированным кодом mplayer следующие каталоги из пакета ffmpeg : '''libavformat, libavcodec, libavutil'''.
+
To copy into directory with unpacked MPlayer source code the next directories from ffmpeg package: '''libavformat, libavcodec, libavutil'''.
  
Дальше необходимо сконфигурировать mplayer перед компиляцией. Нужно указать ключи, требующие включить в код liveMedia. Команда может выглядеть приблизительно так :  
+
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>
  
Если компиляция прошла успешно, то в текущем каталоге будут созданы исполнимые файлы mplayer и mencoder. По желанию можно проинсталлировать mplayer, так чтобы он был доступен всем пользователям компьютера (для этого нужны права '''root'''):
+
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 15: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