Ubuntu 11.04 에서 x264 최신 버 전과 ffmpeg 0.6.1 을 컴 파일 하고 설치 합 니 다.

이 문 제 는 분명히 여러분 을 괴 롭 혔 을 것 입 니 다. 어쨌든 저 는 엉망 이 었 습 니 다. ffmpeg 0.6.1 을 컴 파일 할 때 항상 libx 264 not find!!!!
오랫동안 북 돋 우 어 마침내 이 문제 가 해결 되 었 습 니 다. 네티즌 여러분 께 감 사 드 립 니 다!다음은 제 가 설치 하고 컴 파일 하 는 과정 을 알려 드 리 겠 습 니 다. 한편 으로 는 여러분 을 도 울 수 있 기 를 바 랍 니 다. 다른 한편 으로 는 제 가 다음 에 컴 파일 할 때 또 오래된 문제 에 부 딪 히 는 것 을 방지 하기 위해 해결 방법 을 잊 었 습 니 다!
1. 이전에 x264, libx264 - dev, ffmpeg 를 설치 했다 면 먼저 마 운 트 해제 하고 X 터미널 이나 콘 솔 을 열 어 아래 명령 을 실행 하 십시오.
sudo apt-get purge ffmpeg x264 libx264-dev

2. 의존 소프트웨어 및 기타 컴 파일 에 필요 한 소프트웨어 설치:
sudo apt-get install build-essential subversion git-core checkinstall yasm texi2html libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev libvorbis-devlibx11-dev libxfixes-dev libxvidcore-dev zlib1g-dev nasm yasm libbz2-dev 

3. faad 2 설치:
다운로드 주소:http://sourceforge.net/projects/faac/files/faad2-src/faad2-2.7/faad2-2.7.tar.gz/download faad 2 의 설치 가 가장 간단 합 니 다. 직접 압축 을 풀 고...
sudo ./configure && make && sudo make install

됐어.
4. faac 설치:
다운로드 주소:
http://sourceforge.net/projects/faac/files/faac-src/faac-1.28/faac-1.28.tar.gz/download
압축 해제 후 파일 수정:
vi +123 ./common/mp4v2/mpeg4ip.h

123 줄 부터 이 파일 mpeg 4 ip. h 를 수정 하여 129 줄 이 끝 날 때 까지 합 니 다.
   :

#ifdef __cplusplus

extern "C" {

#endif

char *strcasestr(const char *haystack, const char *needle);

#ifdef __cplusplus

}

#endif 

   :

#ifdef __cplusplus

extern "C++" {

#endif

const char *strcasestr(const char *haystack, const char *needle);

#ifdef __cplusplus

}

#endif 

그리고 기본 설치:
sudo ./configure && make && sudo make install

5. lame 설치:
다운로드 주소:
http://sourceforge.net/projects/lame/files/lame/3.98.4/lame-3.98.4.tar.gz/download?use_mirror=ncu
압축 해제 후:
./configure --enable-nasm --disable-shared && make && sudo make install 

6. 최신 버 전의 x264 를 가 져 오고 컴 파일 하여 설치 합 니 다. git 명령 을 통 해 가 져 옵 니 다.
git clone git://git.videolan.org/x264.git
cd x264
./configure --enable-shared
   make && sudo make install
7.  ffmpeg0.6.1
http://www.ffmpeg.org/releases/ffmpeg-0.6.1.tar.gz
   ,  :
./configure --enable-gpl --enable-nonfree --enable-pthreads --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libx264
make && make install
  ,        ,                ,       ,  ,     ,       ......



==========================================================================================================

, qq ! linux C ,shell , , , , 。。。。 QQ:213622826

==========================================================================================================

   

좋은 웹페이지 즐겨찾기