#freeze
* [[QuickTime SDK:http://developer.apple.com/quicktime/]] による開発 (Windows) [#xe95b406]

** 開発環境構築 [#oa8efcc6]

1. 下にあるリンク集の「QuickTimeのトップページ」から、QuickTimePlayer?をダウンロードし、インストールを行う。

2. 同じ「QuickTimeのトップページ」から、3gppコンポーネントをインストールする。

3.「QuickTimeDeveloper?のトップページ」から、QuickTime 6 SDKをダウンロードしてインストールする。QTDevWin?というフォルダ内に、インクルードファイルやライブラリなどが入っているので、コンパイルやリンク時にこの下を参照するように、VCなどに設定しておく。

4. 必要であれば、サンプルなどをインストールしておくこと。サンプルは、SDKと同じページの左にある「ADC Resources」と囲われた部分にリンクがある。

*** 市販ライブラリ [#n5b49de1]
- Intel Integrated Performance Primitives -- http://www.xlsoft.com/jp/products/intel/perflib/ipp.html

>>AACやAMR、MPEG4などのコーデックを自前で作る場合に便利かもしれない。28,000円で購入できる模様。ランタイムの再配布はフリー。ただし、コーデックそのもののライセンスは別途払う必要あり。

** QuickTime6.3SDKと3gpp [#f0e559f7]

*** できること [#l4f8784a]

    * *.3gpファイル(画:MPEG4/音:なし)→AVIファイル(画:cinepak/音:なし)
    * *.3gpファイル(画:MPEG4/音:AAC)→AVIファイル(画:cinepak/音:非圧縮)
    * AVIファイル(画:cinepak/音:なし)→*.3gpファイル(画:MPEG4/音:なし)

*** できないこと [#kb398e2b]

    * *.3gpファイル(画:MPEG4/音:AMR)→AVIファイル(画:cinepak/音:非圧縮)

これはできるような気もするのだが、動作させるとアクセスバイオレーションを
起こして異常終了する。QTSDKのサンプル(qtdataexchange.win)を使っても
同様の現象になる。ひょっとしたら、バグの可能性も・・・。

    * AVIファイル(画:cinepak/音:非圧縮)→*.3gpファイル(画:MPEG4/音:AAC)

これは、QTPlayer6.3Pro+3gppでなければできない。たとえ、Proが
インストールされていても、QTのライブラリにはAACのライセンスがないため、
QTのライブラリを使用したアプリでは変換できない。

    * AVIファイル(画:cinepak/音:非圧縮)→*.3gpファイル(画:MPEG4/音:AMR)

これも上記と同じ理由による。QTPlayer6.3Proそのものでは、変換が可能。
その他、AUのフォーマット(*.amc)を扱うことも、今のところ不可能

** Windows版SDKでAACコーデックの音声を出力するには [#qbbb53ce]

Windows版では標準ではAACコーデックの音声が出力できない。

http://developer.apple.com/qa/qa2001/qa1347.html 
にWindows上でSDKを使って開発した人からの質問とその回答が載っている。

Q: I'm trying to create MPEG-4 (.mp4), 3GPP (.3gp) and/or 3GPP2 (.3g2) format files
on my Windows PC using the ConvertMovieToFile function.
The resulting files always contain valid video, but no audio.
No errors are being returned from this function. What am I doing wrong?

A: The AAC and AMR compressors that ship with QuickTime are only available
to licensed applications via a private Software Development Kit (SDK) on Windows.
Therefore, you can't use any of the QuickTime movie exporter functions such as
ConvertMovieToFile from your own application to encode audio to the AMR or AAC formats
without first obtaining a patent license from one of the following licensing organizations:

	Contact Via Licensing Corporation for AAC licensing information.

	Contact VoiceAge for AMR licensing information.

However, you can encode audio to the AMR or AAC formats using QuickTime Pro on Windows.
Once the patent license is obtained, contact Apple Software Licensing for the appropriate SDK license.
When contacting Apple Software Licensing please indicate which SDK license
you're interested in, the full company name, address and contact email address.
On Macintosh, applications can create content with these formats without the requirements mentioned above.

SDKを使って開発したアプリケーションで Audio Codec : AAC or AMR の動画を出力する場合、
Windows の場合、AAC, AMRのライセンスを取得し、それからAppleのライセンス担当に
連絡しないとダメなようだ。
但し、COLOR(#3333aa){Mac OS X'' なら上記ライセンスがなくても生成できる。}

** サンプルソース [#z77e0785]
-[[Sample Code: QuickTime for Windows:http://developer.apple.com/samplecode/QuickTime/idxQuickTimeforWindows-date.html]]
>「[[MoviePlayer - C#:http://developer.apple.com/samplecode/MoviePlayerCSharp/MoviePlayerCSharp.zip]]」「[[CreateMovie - C#:http://developer.apple.com/samplecode/CreateMovieCSharp/CreateMovieCSharp.zip]]」が参考になる。

-[[Scripting the COM/ActiveX Control in QuickTime7 for Windows:http://developer.apple.com/quicktime/activexcontrol.html]]



* QuickTime SDKによる開発 (Mac OS X) [#h486e46f]

QuickTime Kitで提供される主なクラスの概念図

http://pcweb.mycom.co.jp/photo/articles/2005/05/06/qtkit/images/019l.jpg

* ドキュメント [#b49fcdd1]
-[[QuickTime Import and Export Guide:http://developer.apple.com/documentation/QuickTime/RM/ImportExport/DataExchange/index.html]]

* メーリングリスト [#d897f41c]
-[[QuickTime API ML:http://lists.apple.com/mailman/listinfo/quicktime-api]]

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS