ogg:// - 오디오 스트림

ogg:// - 오디오 스트림


설명

ogg:// 래퍼를 통해 읽기 위해 열린 파일은 OGG/Vorbis 코덱을 사용하여 인코딩된 압축 오디오로 처리됩니다. 마찬가지로 ogg:// 래퍼를 통해 쓰기 또는 추가를 위해 열린 파일은 압축된 오디오 데이터로 기록됩니다. stream_get_meta_data()는 읽기용으로 열린 OGG/Vorbis 파일에서 사용될 때 vendor 태그, 포함된 comments, channels 수, 샘플링 rate 및 다음으로 설명된 인코딩 속도 범위를 포함하여 스트림에 대한 다양한 세부 정보를 반환합니다. bitrate_lower, bitrate_upper, bitrate_nominalbitrate_window.

ogg:// (PECL)

참고: 이 래퍼는 기본적으로 활성화되어 있지 않습니다.

ogg:// 래퍼를 사용하려면 » PECL에서 제공되는 » OGG/Vorbis 확장 프로그램을 설치해야 합니다.


용법

  • ogg://soundfile.ogg
  • ogg:///path/to/soundfile.ogg
  • ogg://http://www.example.com/path/to/soundstream.ogg

옵션

Wrapper Summary

Attribute Supported
Restricted by allow_url_fopen No
Allows Reading Yes
Allows Writing Yes
Allows Appending Yes
Allows Simultaneous Reading and Writing No
Supports stat() No
Supports unlink() No
Supports rename() No
Supports mkdir() No
Supports rmdir() No

Context options

Name Usage Default Mode
pcm_mode PCM encoding to apply while reading, one of: OGGVORBIS_PCM_U8, OGGVORBIS_PCM_S8, OGGVORBIS_PCM_U16_BE, OGGVORBIS_PCM_S16_BE, OGGVORBIS_PCM_U16_LE, and OGGVORBIS_PCM_S16_LE. (8 vs 16 bit, signed or unsigned, big or little endian) OGGVORBIS_PCM_S16_LE Read
rate Sampling rate of input data, expressed in Hz 44100 Write/Append
bitrate When given as an integer, the fixed bitrate at which to encode. (16000 to 131072) When given as a float, the variable bitrate quality to use. (-1.0 to 1.0) 128000 Write/Append
channels The number of audio channels to encode, typically 1 (Mono), or 2 (Stereo). May range as high as 16. 2 Write/Append
comments An array of string values to encode into the track header.   Write/Append