ogg://
ogg:// — 音频流
说明
通过包装器 ogg:// 读取的文件,
是作为 OGG/Vorbis
格式的压缩音频编码。
同样,通过包装器 ogg:// 写入或追加的数据格式也是压缩音频。
当 stream_get_meta_data() 用于一个打开读取的 OGG/Vorbis
文件时,会返回关于数据流的详细信息,包含了 vendor
标签、任何内含的
comments
、
channels
数字、采样率(rate
),以及
用 bitrate_lower
、bitrate_upper
、
bitrate_nominal
和 bitrate_window
描述的可变比特率范围。
ogg:// (PECL)
注意: 该封装器默认未激活
要使用 ogg:// 封装器,您必须安装 » OGG/Vorbis 扩展。 可以在 » PECL 上找到。
用法
- ogg://soundfile.ogg
- ogg:///path/to/soundfile.ogg
- ogg://http://www.example.com/path/to/soundstream.ogg
范例

User Contributed Notes 1 note
martin dot leese at stanfordalumni dot org ¶
14 years ago
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.