getid3_mpeg
extends getid3_handler
in package
Table of Contents
- AUDIO_START = "\x00\x00\x01\xc0"
- START_CODE_BASE = "\x00\x00\x01"
- VIDEO_EXTENSION_START = "\x00\x00\x01\xb5"
- VIDEO_GROUP_START = "\x00\x00\x01\xb8"
- VIDEO_PICTURE_START = "\x00\x00\x01\x00"
- VIDEO_SEQUENCE_END = "\x00\x00\x01\xb7"
- VIDEO_SEQUENCE_ERROR = "\x00\x00\x01\xb4"
- VIDEO_SEQUENCE_HEADER = "\x00\x00\x01\xb3"
- VIDEO_USER_DATA_START = "\x00\x00\x01\xb2"
- $data_string : string
- String to analyze.
- $data_string_flag : bool
- Analyzing filepointer or string.
- $data_string_length : int
- String length.
- $data_string_position : int
- Seek position in string.
- $getid3 : getID3
- $dependency_to : string
- __construct() : mixed
- getid3_handler constructor.
- Analyze() : bool
- Analyze from file pointer.
- AnalyzeString() : mixed
- Analyze from string instead.
- chromaFormatTextLookup() : string
- pictureStructureTextLookup() : string
- saveAttachment() : string|null
- scalableModeTextLookup() : string
- setStringMode() : mixed
- systemNonOverheadPercentage() : float|int
- videoAspectRatioLookup() : float
- videoAspectRatioTextLookup() : string
- videoFormatTextLookup() : string
- videoFramerateLookup() : float
- error() : bool
- feof() : bool
- fgets() : string|false
- fread() : string|false
- fseek() : int
- ftell() : int|bool
- isDependencyFor() : bool
- notice() : mixed
- warning() : bool
- readBitsFromStream() : bool|int
Constants
AUDIO_START
public
mixed
AUDIO_START
= "\x00\x00\x01\xc0"
START_CODE_BASE
public
mixed
START_CODE_BASE
= "\x00\x00\x01"
VIDEO_EXTENSION_START
public
mixed
VIDEO_EXTENSION_START
= "\x00\x00\x01\xb5"
VIDEO_GROUP_START
public
mixed
VIDEO_GROUP_START
= "\x00\x00\x01\xb8"
VIDEO_PICTURE_START
public
mixed
VIDEO_PICTURE_START
= "\x00\x00\x01\x00"
VIDEO_SEQUENCE_END
public
mixed
VIDEO_SEQUENCE_END
= "\x00\x00\x01\xb7"
VIDEO_SEQUENCE_ERROR
public
mixed
VIDEO_SEQUENCE_ERROR
= "\x00\x00\x01\xb4"
VIDEO_SEQUENCE_HEADER
public
mixed
VIDEO_SEQUENCE_HEADER
= "\x00\x00\x01\xb3"
VIDEO_USER_DATA_START
public
mixed
VIDEO_USER_DATA_START
= "\x00\x00\x01\xb2"
Properties
$data_string
String to analyze.
protected
string
$data_string
= ''
$data_string_flag
Analyzing filepointer or string.
protected
bool
$data_string_flag
= \false
$data_string_length
String length.
protected
int
$data_string_length
= 0
$data_string_position
Seek position in string.
protected
int
$data_string_position
= 0
$getid3
protected
getID3
$getid3
$dependency_to
private
string
$dependency_to
Methods
__construct()
getid3_handler constructor.
public
__construct(getID3 $getid3[, string $call_module = null ]) : mixed
Parameters
- $getid3 : getID3
- $call_module : string = null
Return values
mixed —Analyze()
Analyze from file pointer.
public
Analyze() : bool
Return values
bool —AnalyzeString()
Analyze from string instead.
public
AnalyzeString(string $string) : mixed
Parameters
- $string : string
Return values
mixed —chromaFormatTextLookup()
public
static chromaFormatTextLookup(int $chroma_format) : string
Parameters
- $chroma_format : int
Return values
string —pictureStructureTextLookup()
public
static pictureStructureTextLookup(int $picture_structure) : string
Parameters
- $picture_structure : int
Return values
string —saveAttachment()
public
saveAttachment(string $name, int $offset, int $length[, string $image_mime = null ]) : string|null
Parameters
- $name : string
- $offset : int
- $length : int
- $image_mime : string = null
Tags
Return values
string|null —scalableModeTextLookup()
public
static scalableModeTextLookup(int $scalable_mode) : string
Parameters
- $scalable_mode : int
Return values
string —setStringMode()
public
setStringMode(string $string) : mixed
Parameters
- $string : string
Return values
mixed —systemNonOverheadPercentage()
public
static systemNonOverheadPercentage(int $VideoBitrate, int $AudioBitrate) : float|int
Parameters
- $VideoBitrate : int
- $AudioBitrate : int
Return values
float|int —videoAspectRatioLookup()
public
static videoAspectRatioLookup(int $rawaspectratio[, int $mpeg_version = 1 ], int $width, int $height) : float
Parameters
- $rawaspectratio : int
- $mpeg_version : int = 1
- $width : int
- $height : int
Return values
float —videoAspectRatioTextLookup()
public
static videoAspectRatioTextLookup(int $rawaspectratio[, int $mpeg_version = 1 ]) : string
Parameters
- $rawaspectratio : int
- $mpeg_version : int = 1
Return values
string —videoFormatTextLookup()
public
static videoFormatTextLookup(int $video_format) : string
Parameters
- $video_format : int
Return values
string —videoFramerateLookup()
public
static videoFramerateLookup(int $rawframerate) : float
Parameters
- $rawframerate : int
Return values
float —error()
protected
error(string $text) : bool
Parameters
- $text : string
Return values
bool —feof()
protected
feof() : bool
Return values
bool —fgets()
protected
fgets() : string|false
Tags
Return values
string|false —fread()
protected
fread(int $bytes) : string|false
Parameters
- $bytes : int
Tags
Return values
string|false —fseek()
protected
fseek(int $bytes[, int $whence = SEEK_SET ]) : int
Parameters
- $bytes : int
- $whence : int = SEEK_SET
Tags
Return values
int —ftell()
protected
ftell() : int|bool
Return values
int|bool —isDependencyFor()
protected
final isDependencyFor(string $module) : bool
Parameters
- $module : string
Return values
bool —notice()
protected
notice(string $text) : mixed
Parameters
- $text : string
Return values
mixed —warning()
protected
warning(string $text) : bool
Parameters
- $text : string
Return values
bool —readBitsFromStream()
private
readBitsFromStream(string &$bitstream, int &$bitstreamoffset, int $bits_to_read[, bool $return_singlebit_as_boolean = true ]) : bool|int
Parameters
- $bitstream : string
- $bitstreamoffset : int
- $bits_to_read : int
- $return_singlebit_as_boolean : bool = true