Note that although "ogg:" is the wrapper name, the stream is restricted to Ogg files containing a single stream encoded using the Vorbis audio codec. An Ogg container can, in fact, contain multiple streams: audio, video, anything. (Also, the audio streams in an Ogg contaner can use codecs such as FLAC and OggPCM.) The wrapper name is therefore misleading.
ogg://
ogg:// — オーディオストリーム
説明
ogg:// ラッパー経由で読み込みモードでオープンされた
ファイルは、OGG/Vorbis コーデックでエンコードされた圧縮音声ファイルとして
扱われます。同様に、ogg:// ラッパー経由で書き込みモード
あるいは追記モードでオープンされたファイルは、圧縮音声データとして
書き込まれます。読み込みモードでオープンした OGG/Vorbis ファイルに対して
stream_get_meta_data() を適用した場合、以下のような
さまざまな情報を返します。
vendor タグ、comments、
多くの channels、サンプリングレート
rate 、
および以下のパラメータで指定されるエンコーディングレート。
bitrate_lower、bitrate_upper、
bitrate_nominal、bitrate_window
ogg:// PHP 4.3.0 and up (PECL)
注意: このラッパーはデフォルトでは有効になっていません
ogg:// ラッパーを使用するには、 » PECL から » OGG/Vorbis 拡張モジュールを インストールする必要があります。
オプション
- ogg://soundfile.ogg
- ogg:///path/to/soundfile.ogg
- ogg://http://www.example.com/path/to/soundstream.ogg
例
martin dot leese at stanfordalumni dot org
18-Feb-2008 10:04
