x264 をインストール
ffmpeg フォルダの中に x264 フォルダを作ってそこで作業する。まずは git でソースをゲット。
paraches@debian:~/myTest/ffmpeg$ mkdir x264 paraches@debian:~/myTest/ffmpeg$ cd x264/ paraches@debian:~/myTest/ffmpeg/x264$ git clone git://git.videolan.org/x264.git Initialized empty Git repository in /home/paraches/myTest/ffmpeg/x264/x264/.git/ remote: Counting objects: 11184, done. remote: Compressing objects: 100% (2762/2762), done. remote: Total 11184 (delta 9045), reused 10378 (delta 8382) Receiving objects: 100% (11184/11184), 2.72 MiB | 597 KiB/s, done. Resolving deltas: 100% (9045/9045), done. paraches@debian:~/myTest/ffmpeg/x264$ ls x264 paraches@debian:~/myTest/ffmpeg/x264$ cd x264 paraches@debian:~/myTest/ffmpeg/x264/x264$ ls AUTHORS Makefile config.sub encoder muxers.h version.sh x264dll.c COPYING common configure extras output x264.c Doxyfile config.guess doc input tools x264.h
次に configure & make
paraches@debian:~/myTest/ffmpeg/x264/x264$ ./configure Platform: X86_64 System: LINUX asm: yes avs input: no lavf input: no ffms input: no mp4 output: no pthread: yes debug: no gprof: no PIC: no shared: no visualize: no You can run 'make' or 'make fprofiled' now. paraches@debian:~/myTest/ffmpeg/x264/x264$ make <長いので省略> paraches@debian:~/myTest/ffmpeg/x264/x264$
最後に checkinstall でインストール
paraches@debian:~/myTest/ffmpeg/x264/x264$ sudo checkinstall --pkgname=x264 --pkgversion "1:0.svn'date +%Y%m%d'" --backup=no --default checkinstall 1.6.1, Copyright 2002 Felipe Eduardo Sanchez Diaz Duran このソフトウェアはGNU GPLの下でリリースしています。 ***************************************** **** Debian package creation selected *** ***************************************** *** Warning: The package version "1:0.svndate +%Y%m%d" is not a *** Warning: debian policy compliant one. Please specify an alternate one このパッケージは以下の内容で構成されます: 0 - Maintainer: [ root@debian ] 1 - Summary: [ Package created with checkinstall 1.6.1 ] 2 - Name: [ x264 ] 3 - Version: [ 0 ] 4 - Release: [ 1 ] 5 - License: [ GPL ] 6 - Group: [ checkinstall ] 7 - Architecture: [ amd64 ] 8 - Source location: [ x264 ] 9 - Alternate source location: [ ] 10 - Requires: [ ] 11 - Provides: [ x264 ] 変更するものの番号を入力してください。Enterで続行します: Installing with make...Installing with install... ========================= インストールの結果 =========================== install -d /usr/local/bin install -d /usr/local/include install -d /usr/local/lib install -d /usr/local/lib/pkgconfig install -m 644 x264.h /usr/local/include install -m 644 libx264.a /usr/local/lib install -m 644 x264.pc /usr/local/lib/pkgconfig install x264 /usr/local/bin ranlib /usr/local/lib/libx264.a ======================== インストールに成功しました ========================== Copying documentation directory... ./ ./COPYING ./doc/ ./doc/ratecontrol.txt ./doc/vui.txt ./doc/standards.txt ./doc/regression_test.txt ./doc/threads.txt ./AUTHORS grep: /var/tmp/tmp.akEnbARoDR/newfile: そのようなファイルやディレクトリはありません tempディレクトリにファイルをコピー..OK Stripping ELF binaries and libraries...OK manページを圧縮..OK ファイルリストを作成..OK Debianパッケージを作成..OK Debianパッケージをインストール..OK tempファイルを削除..OK temp dirを削除..OK ********************************************************************** Done. The new package has been installed and saved to /home/paraches/myTest/ffmpeg/x264/x264/x264_0-1_amd64.deb You can remove it from your system anytime using: dpkg -r x264 ********************************************************************** paraches@debian:~/myTest/ffmpeg/x264/x264$