getid3_mpeg
extends getid3_handler
in package
Table of Contents
Constants
- 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"
Properties
- $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
Methods
- __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
Analyze()
Analyze from file pointer.
public
Analyze() : bool
Return values
boolAnalyzeString()
Analyze from string instead.
public
AnalyzeString(string $string) : mixed
Parameters
- $string : string
chromaFormatTextLookup()
public
static chromaFormatTextLookup(int $chroma_format) : string
Parameters
- $chroma_format : int
Return values
stringpictureStructureTextLookup()
public
static pictureStructureTextLookup(int $picture_structure) : string
Parameters
- $picture_structure : int
Return values
stringsaveAttachment()
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|nullscalableModeTextLookup()
public
static scalableModeTextLookup(int $scalable_mode) : string
Parameters
- $scalable_mode : int
Return values
stringsetStringMode()
public
setStringMode(string $string) : mixed
Parameters
- $string : string
systemNonOverheadPercentage()
public
static systemNonOverheadPercentage(int $VideoBitrate, int $AudioBitrate) : float|int
Parameters
- $VideoBitrate : int
- $AudioBitrate : int
Return values
float|intvideoAspectRatioLookup()
public
static videoAspectRatioLookup(int $rawaspectratio[, int $mpeg_version = 1 ][, int $width = 0 ][, int $height = 0 ]) : float
Parameters
- $rawaspectratio : int
- $mpeg_version : int = 1
- $width : int = 0
- $height : int = 0
Return values
floatvideoAspectRatioTextLookup()
public
static videoAspectRatioTextLookup(int $rawaspectratio[, int $mpeg_version = 1 ]) : string
Parameters
- $rawaspectratio : int
- $mpeg_version : int = 1
Return values
stringvideoFormatTextLookup()
public
static videoFormatTextLookup(int $video_format) : string
Parameters
- $video_format : int
Return values
stringvideoFramerateLookup()
public
static videoFramerateLookup(int $rawframerate) : float
Parameters
- $rawframerate : int
Return values
floaterror()
protected
error(string $text) : bool
Parameters
- $text : string
Return values
boolfeof()
protected
feof() : bool
Tags
Return values
boolfgets()
protected
fgets() : string|false
Tags
Return values
string|falsefread()
protected
fread(int $bytes) : string|false
Parameters
- $bytes : int
Tags
Return values
string|falsefseek()
protected
fseek(int $bytes[, int $whence = SEEK_SET ]) : int
Parameters
- $bytes : int
- $whence : int = SEEK_SET
Tags
Return values
intftell()
protected
ftell() : int|bool
Tags
Return values
int|boolisDependencyFor()
protected
final isDependencyFor(string $module) : bool
Parameters
- $module : string
Return values
boolnotice()
protected
notice(string $text) : mixed
Parameters
- $text : string
warning()
protected
warning(string $text) : bool
Parameters
- $text : string
Return values
boolreadBitsFromStream()
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