ffmpeg を探してインストール
まずは簡単に MacPorts ffmpeg でググってみた。サクっと ffmpeg の port が見つかった。なにやら DarwinPorts の頃のページみたいだけど、port file の日付は新しいね。
って、別にわざわざググらなくても port search ffmpeg して port variants ffmpeg すれば port の有無も用意されてる variant もわかるんだけど…
powerbook-g4-15:~ paraches$ port search ffmpeg ffmpeg multimedia/ffmpeg 0.4.9-pre1 Digital VCR and streaming server powerbook-g4-15:~ paraches$ port variants ffmpeg ffmpeg has the variants: universal gpl postproc lame libogg vorbis theora faac faad xvid x264 a52 dts
MacPorts インストールする前に MacPorts で ffmpeg の port 用意されてるのかな?ってググったので。結果見つかったから MacPorts を入れたという順番。無ければ Fink に行く予定だったのだけど…。なぜ最初に MacPorts なのかは、前に DarwinPorts を使った事があるからってだけの理由。
で、ffmpeg のインストール。variant がたくさんあるのであれもこれもてんこもりでインストールを開始。
powerbook-g4-15:~ paraches$ sudo port install ffmpeg +lame +libogg +vorbis +theora +faac +faad +xvid +x264 +a52 +dts <長いので省略> ---> Fetching ffmpeg ---> Verifying checksum(s) for ffmpeg ---> Extracting ffmpeg ---> Configuring ffmpeg ---> Building ffmpeg with target all ---> Staging ffmpeg into destroot ---> Installing ffmpeg 0.4.9-pre1_1+a52+dts+faac+faad+lame+libogg+theora+vorbis+x264+xvid ---> Activating ffmpeg 0.4.9-pre1_1+a52+dts+faac+faad+lame+libogg+theora+vorbis+x264+xvid ---> Cleaning ffmpeg
なんだかんだで結構時間がかかったけどインストール終了。とりあえず起動もしたみたいだ。
powerbook-g4-15:~ paraches$ ffmpeg FFmpeg version SVN-r8743, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: --prefix=/opt/local --prefix=/opt/local --disable-vhook --mandir=/opt/local/share/man --enable-shared --enable-pthreads --enable-libmp3lame --enable-libogg --enable-libvorbis --enable-libtheora --enable-gpl --enable-libfaac --enable-libfaad --enable-xvid --enable-x264 --enable-liba52 --enable-libdts libavutil version: 49.4.0 libavcodec version: 51.40.3 libavformat version: 51.12.1 built on May 4 2007 05:53:54, gcc: 4.0.1 (Apple Computer, Inc. build 5367) usage: ffmpeg [[infile options] -i infile]... {[outfile options] outfile}... Hyper fast Audio and Video encoder <長いので省略>
めでたしめでたし。
あとは Cocoa で UI を作って友人のやりたい事それぞれをボタン一つでできるようにして終了。この UI 部分は他に AppleScript やらあれこれ手段はあるんだろうけど、他は知らないしなんとなく NSTask でダウンロード&エンコーディングさせながら NSProgressIndicator でバーを延ばすってのがやってみたかったから。