AMFStream example

$info['video']['pixel_aspect_ratio'] = $info['video']['resolution_x'] / $info['video']['resolution_y'];
                        }
                    }
                    break;

                // Meta tag                 case GETID3_FLV_TAG_META:
                    if (!$found_meta) {
                        $found_meta = true;
                        $this->fseek(-1, SEEK_CUR);
                        $datachunk = $this->fread($DataLength);
                        $AMFstream = new AMFStream($datachunk);
                        $reader = new AMFReader($AMFstream);
                        $eventName = $reader->readData();
                        $info['flv']['meta'][$eventName] = $reader->readData();
                        unset($reader);

                        $copykeys = array('framerate'=>'frame_rate', 'width'=>'resolution_x', 'height'=>'resolution_y', 'audiodatarate'=>'bitrate', 'videodatarate'=>'bitrate');
                        foreach ($copykeys as $sourcekey => $destkey) {
                            if (isset($info['flv']['meta']['onMetaData'][$sourcekey])) {
                                switch ($sourcekey) {
                                    case 'width':
                                    case 'height':
                                        
Home | Imprint | This part of the site doesn't use cookies.