Mac で MP4Box をビルドする
大まかな手順
- GPAC | Multimedia Open Source Project ←ここから、ソースをダウンロード
- 解凍
- configure
- make apps
- 仕上げ
詳細
ソースをダウンロード
そのときの最新版をダウンロードしてください
$ wget http://downloads.sourceforge.net/gpac/gpac-0.4.4-rc2.zip
解凍
unzip します。tar.gz をダウンロードした場合は tar xvfz で
$ unzip gpac-0.4.4-rc2.zip
configure
configure は chmod しないとダメだった
$ cd gpac $ chmod 755 configure $ ./configure
make apps
src/utils/os_net.c の u_long という型を unsigned long int に変更しないと make とおりません
$ vim src/utils/os_net.c $ make apps
仕上げ
bin/gcc/MP4Box に出来ています。
libgpac.dylib を移動させます。
MP4Box をパスの通ったところに移動させます。
$ otool -L bin/gcc/MP4Box bin/gcc/MP4Box: /usr/local/lib/libgpac.dylib (compatibility version 0.0.0, current version 0.0.0) /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.0.0) $ sudo mv bin/gcc/libgpac.dylib /usr/local/lib/ $ sudo mv bin/gcc/MP4Box /usr/bin/
完成
はい完成!
$ MP4Box MP4Box [option] input [option] -h general: general options help -h hint: hinting options help -h import: import options help -h encode: encode options help -h meta: meta handling options help -h extract: extraction options help -h dump: dump options help -h swf: Flash (SWF) options help -h crypt: ISMA E&A options help -h format: supported formats help -nodes: lists supported MPEG4 nodes -node NodeName: gets MPEG4 node syntax and QP info -xnodes: lists supported X3D nodes -xnode NodeName: gets X3D node syntax -snodes: lists supported SVG nodes -snode NodeName: gets SVG node syntax -languages: lists supported ISO 639 languages -quiet: quiet mode -v: verbose mode -version: gets build version