getid3_ogg example

return true;
    }

    /** * @param string $BlockData * * @return bool */
    private function parseVORBIS_COMMENT($BlockData) {
        $info = &$this->getid3->info;

        $getid3_ogg = new getid3_ogg($this->getid3);
        if ($this->isDependencyFor('matroska')) {
            $getid3_ogg->setStringMode($this->data_string);
        }
        $getid3_ogg->ParseVorbisComments();
        if (isset($info['ogg'])) {
            unset($info['ogg']['comments_raw']);
            $info['flac']['VORBIS_COMMENT'] = $info['ogg'];
            unset($info['ogg']);
        }

        unset($getid3_ogg);

        
$this->warning('Unable to parse audio data ['.basename(__FILE__).':'.__LINE__.'] because CodecPrivate data does not contain "vorbis" keyword');
                                    break;
                                }
                                $vorbis_offset -= 1;

                                getid3_lib::IncludeDependency(GETID3_INCLUDEPATH.'module.audio.ogg.php', __FILE__, true);

                                // create temp instance                                 $getid3_temp = new getID3();

                                // analyze                                 $getid3_ogg = new getid3_ogg($getid3_temp);
                                $oggpageinfo['page_seqno'] = 0;
                                $getid3_ogg->ParseVorbisPageHeader($trackarray['CodecPrivate']$vorbis_offset$oggpageinfo);
                                if (!empty($getid3_temp->info['ogg'])) {
                                    $info['matroska']['track_codec_parsed'][$trackarray['TrackNumber']] = $getid3_temp->info['ogg'];
                                    if (isset($getid3_temp->info['audio']) && is_array($getid3_temp->info['audio'])) {
                                        foreach ($getid3_temp->info['audio'] as $sub_key => $value) {
                                            $track_info[$sub_key] = $value;
                                        }
                                    }
                                }

                                
Home | Imprint | This part of the site doesn't use cookies.