@@ -45,8 +45,8 @@ METHODS
4545 MP3: mp3, mp2
4646 MP4: mp4, m4a, m4b, m4p, m4v, m4r, k3g, skm, 3gp, 3g2, mov
4747 AAC (ADTS): aac
48- Ogg: ogg, oga
49- FLAC: flc, flac, fla
48+ Ogg: ogg, oga, ogf
49+ FLAC: flc, flac, fla, ogf
5050 ASF: wma, wmv, asf
5151 Musepack: mpc, mpp, mp+
5252 Monkey's Audio: ape, apl
@@ -95,15 +95,16 @@ METHODS
9595 WAV, AIFF, Musepack, Monkey's Audio, WavPack
9696 Not yet supported by find_frame.
9797
98- find_frame_return_info( $mp4_path , $timestamp_in_ms )
99- The header of an MP4 file contains various metadata that refers to the
98+ find_frame_return_info( $path , $timestamp_in_ms )
99+ The header of an MP4 or OggFlac file contains various metadata that refers to the
100100 structure of the audio data, making seeking more difficult to perform.
101101 This method will return the usual $info hash with 2 additional keys:
102102
103103 seek_offset - The seek offset in bytes
104- seek_header - A rewritten MP4 header that can be prepended to the audio data
105- found at seek_offset to construct a valid bitstream. Specifically,
106- the following boxes are rewritten: stts, stsc, stsz, stco
104+ seek_header - A rewritten MP4/OggFlac header that can be prepended to the audio data
105+ found at seek_offset to construct a valid bitstream. Specifically, for MP4
106+ the following boxes are rewritten: stts, stsc, stsz, stco. For FLAC, the
107+ number of samples and md5 in STREAMINFO are zero'd
107108
108109 For example, to seek 30 seconds into a file and write out a new MP4 file
109110 seeked to this point:
@@ -332,13 +333,14 @@ OGG VORBIS
332333 TAGS
333334 Raw Vorbis comments are returned. All comment keys are capitalized.
334335
335- FLAC
336+ FLAC or OggFLAC
336337 INFO
337338 The following metadata about a file is returned:
338339
339340 channels
340341 samplerate (in kHz)
341342 bitrate (in bps)
343+ bitrage_ogg (in bps, calculate from ogg frames)
342344 file_size
343345 audio_offset (byte offset to first audio frame)
344346 audio_size
0 commit comments