AVCSequenceParameterSetReader example

$lengthSizeMinusOne         = getid3_lib::BigEndian2Int(substr($FLVvideoHeader,  7, 1));
                                $numOfSequenceParameterSets = getid3_lib::BigEndian2Int(substr($FLVvideoHeader,  8, 1));

                                if (($numOfSequenceParameterSets & 0x1F) != 0) {
                                    // there is at least one SequenceParameterSet                                     // read size of the first SequenceParameterSet                                     //$spsSize = getid3_lib::BigEndian2Int(substr($FLVvideoHeader, 9, 2));                                     $spsSize = getid3_lib::LittleEndian2Int(substr($FLVvideoHeader, 9, 2));
                                    // read the first SequenceParameterSet                                     $sps = $this->fread($spsSize);
                                    if (strlen($sps) == $spsSize) {    // make sure that whole SequenceParameterSet was red                                         $spsReader = new AVCSequenceParameterSetReader($sps);
                                        $spsReader->readData();
                                        $info['video']['resolution_x'] = $spsReader->getWidth();
                                        $info['video']['resolution_y'] = $spsReader->getHeight();
                                    }
                                }
                            }
                            // end: moysevichØgmail*com
                        } elseif ($info['flv']['video']['videoCodec'] == GETID3_FLV_VIDEO_H263) {

                            $PictureSizeType = (getid3_lib::BigEndian2Int(substr($FLVvideoHeader, 3, 2))) >> 7;
                            
Home | Imprint | This part of the site doesn't use cookies.