2011/02/24

[ffmpeg-php install]

# http://ffmpeg-php.sourceforge.net/
# tar jxf ffmpeg-php-0.6.0.tbz2
# cd ffmpeg-php-0.6.0
# vi ffmpeg_frame.c
PIX_FMT_RGBA32 --> PIX_FMT_RGB32
# phpize
# ./configure
# make
# make install
...
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/
...


# vi /usr/local/lib/php.ini
extension_dir="/usr/local/lib/php/extensions/no-debug-non-zts-20060613"
extension=ffmpeg.so

or

# cp /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so /usr/local/lib/

[ffmpeg install]

# tar zxf ffmpeg-0.6.1.tar.gz
# cd ffmpeg-0.6.1
# export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

# ./configure --enable-shared --enable-gpl --enable-nonfree --enable-libx264 --enable-libmp3lame --enable-libfaac --enable-libfaad
# make
# make install

# vi /etc/ld.so.conf.d/ffmpeg-lib-path.conf
/usr/local/lib

# ldconfig

[h264 install]

http://www.videolan.org/developers/x264.html
# tar jxf last_x264.tar.bz2
# cd x264-snapshot-20110222-2245
# ./configure --enable-shared
# make
# make install

[gpac install]

http://gpac.wp.institut-telecom.fr/
tar zxf gpac-gpac.tar.gz
cd gpac
# ./configure
# make
# make install

[YASM Install]

http://www.tortall.net/projects/yasm/wiki/Download
# tar zxf yasm-1.1.0.tar.gz
# cd yasm-1.1.0
# ./configure
# make
# make install

[NASM Install]

http://www.nasm.us/pub/nasm/releasebuilds/
# tar jxf nasm-2.09.05.tar.bz2
# cd nasm-2.09.05
# ./configure
# make
# make install

[FAAD2/FAAC install]

http://www.audiocoding.com/downloads.html
# tar zxf faac-1.28.tar.gz
# cd faac-1.28
# ./configure
# make
# make install

# tar zxf faad2-2.7.tar.gz
# cd faad2-2.7
# ./configure
# make
# make install

[opencore-amr install]

http://sourceforge.net/projects/opencore-amr/
# tar zxf opencore-amr-0.1.2.tar.gz
# cd opencore-amr-0.1.2
# ./configure
# make
# make install

[Lame install]

http://sourceforge.net/projects/lame/files/lame/
# yum install gtk+ gtk+-devel
# tar zxf lame-3.98.4.tar.gz
# cd lame-3.98.4
# ./configure
# make
# make install

2011/02/22

【HDD取り外し時のエラー】

HDDをはずして起動させようとすると
fsck.ext3: Unable to resolve 'LABEL=/xxxxx'
とでるので、割り当てていたマウントを削除させる必要がある

メンテナンスモードでは読み込み専用になっているので
マウントしなおしてからファイルを編集

書き込み可能で最マウント
# mount -o remount,rw /

対象の行を削除
# vi /etc/fstab

【yum の高速化】

# yum -y install yum-fastestmirror

2011/02/20

【高速なブラウザ?】

PCスペック依存で快適な環境

1.RAMディスクを作成
 http://www10.atwiki.jp/gavotterd/
 http://www.iodata.jp/promo/soft/ram/ramphantom.htm
 などを使用してRAMドライブを作成する

 設定例)RAMドライブ:R:\\

2.Google Chrome PortableをRAMディスクにインストール
 http://portableapps.com/apps/internet/google_chrome_portable

 設定例)インストール先 R:\GoogleChromePortable\

3.Chromeの設定
 ショートカットを作成してプロパティを開き、キャッシュオプションを付け加える

 設定例)
  リンク先:R:\GoogleChromePortable\GoogleChromePortable.exe --disk-cache-dir="R:\ChromePortableCache"
  作業フォルダ:R:\GoogleChromePortable

4.最後に
・再起動するたびにRAMドライブに入っているものは消えてしまうのでフォルダを別のドライブにバックアップ
・フォルダをR:\GoogleChromePortable2、R:\GoogleChromePortable3などとコピーしてリンク先などを変更でブラウザゲームなど多重起動可能に。