ZenphotoCMS 1.6.2

getid3_mp3 extends getid3_handler
in package

Table of Contents

Properties

$allow_bruteforce  : bool
Forces getID3() to scan the file byte-by-byte and log all the valid audio frame headers - extremely slow, unrecommended, but may provide data from otherwise-unusable files.
$mp3_valid_check_frames  : int
number of frames to scan to determine if MPEG-audio sequence is valid Lower this number to 5-20 for faster scanning Increase this number to 50+ for most accurate detection of valid VBR/CBR mpeg-audio streams
$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.
ClosestStandardMP3Bitrate()  : int|float|string
decodeMPEGaudioHeader()  : bool
FreeFormatFrameLength()  : int|false
getOnlyMPEGaudioInfo()  : bool
getOnlyMPEGaudioInfoBruteForce()  : bool
GuessEncoderOptions()  : string
LAMEmiscSourceSampleFrequencyLookup()  : string
LAMEmiscStereoModeLookup()  : string
LAMEpresetUsedLookup()  : string
LAMEsurroundInfoLookup()  : string
LAMEvbrMethodLookup()  : string
MPEGaudioBitrateArray()  : array<string|int, mixed>
MPEGaudioChannelModeArray()  : array<string|int, mixed>
MPEGaudioEmphasisArray()  : array<string|int, mixed>
MPEGaudioFrameLength()  : int|false
MPEGaudioFrequencyArray()  : array<string|int, mixed>
MPEGaudioHeaderBytesValid()  : bool
MPEGaudioHeaderDecode()  : array<string|int, mixed>|false
MPEGaudioHeaderValid()  : bool
MPEGaudioLayerArray()  : array<string|int, mixed>
MPEGaudioModeExtensionArray()  : array<string|int, mixed>
MPEGaudioVersionArray()  : array<string|int, mixed>
RecursiveFrameScanning()  : bool
saveAttachment()  : string|null
setStringMode()  : mixed
XingVBRidOffset()  : int
error()  : bool
feof()  : bool
fgets()  : string|false
fread()  : string|false
fseek()  : int
ftell()  : int|bool
isDependencyFor()  : bool
notice()  : mixed
warning()  : bool

Properties

$allow_bruteforce

Forces getID3() to scan the file byte-by-byte and log all the valid audio frame headers - extremely slow, unrecommended, but may provide data from otherwise-unusable files.

public bool $allow_bruteforce = \false

$mp3_valid_check_frames

number of frames to scan to determine if MPEG-audio sequence is valid Lower this number to 5-20 for faster scanning Increase this number to 50+ for most accurate detection of valid VBR/CBR mpeg-audio streams

public int $mp3_valid_check_frames = 50

$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

$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
bool

AnalyzeString()

Analyze from string instead.

public AnalyzeString(string $string) : mixed
Parameters
$string : string

ClosestStandardMP3Bitrate()

public static ClosestStandardMP3Bitrate(float|int $bit_rate) : int|float|string
Parameters
$bit_rate : float|int
Return values
int|float|string

decodeMPEGaudioHeader()

public decodeMPEGaudioHeader(int $offset, array<string|int, mixed> &$info[, bool $recursivesearch = true ][, bool $ScanAsCBR = false ][, bool $FastMPEGheaderScan = false ]) : bool
Parameters
$offset : int
$info : array<string|int, mixed>
$recursivesearch : bool = true
$ScanAsCBR : bool = false
$FastMPEGheaderScan : bool = false
Return values
bool

FreeFormatFrameLength()

public FreeFormatFrameLength(int $offset[, bool $deepscan = false ]) : int|false
Parameters
$offset : int
$deepscan : bool = false
Return values
int|false

getOnlyMPEGaudioInfo()

public getOnlyMPEGaudioInfo(int $avdataoffset[, bool $BitrateHistogram = false ]) : bool
Parameters
$avdataoffset : int
$BitrateHistogram : bool = false
Return values
bool

getOnlyMPEGaudioInfoBruteForce()

public getOnlyMPEGaudioInfoBruteForce() : bool
Return values
bool

GuessEncoderOptions()

public GuessEncoderOptions() : string
Return values
string

LAMEmiscSourceSampleFrequencyLookup()

public static LAMEmiscSourceSampleFrequencyLookup(int $SourceSampleFrequencyID) : string
Parameters
$SourceSampleFrequencyID : int
Return values
string

LAMEmiscStereoModeLookup()

public static LAMEmiscStereoModeLookup(int $StereoModeID) : string
Parameters
$StereoModeID : int
Return values
string

LAMEpresetUsedLookup()

public static LAMEpresetUsedLookup(array<string|int, mixed> $LAMEtag) : string
Parameters
$LAMEtag : array<string|int, mixed>
Return values
string

LAMEsurroundInfoLookup()

public static LAMEsurroundInfoLookup(int $SurroundInfoID) : string
Parameters
$SurroundInfoID : int
Return values
string

LAMEvbrMethodLookup()

public static LAMEvbrMethodLookup(int $VBRmethodID) : string
Parameters
$VBRmethodID : int
Return values
string

MPEGaudioBitrateArray()

public static MPEGaudioBitrateArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

MPEGaudioChannelModeArray()

public static MPEGaudioChannelModeArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

MPEGaudioEmphasisArray()

public static MPEGaudioEmphasisArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

MPEGaudioFrameLength()

public static MPEGaudioFrameLength(int|string &$bitrate, string &$version, string &$layer, bool $padding, int &$samplerate) : int|false
Parameters
$bitrate : int|string
$version : string
$layer : string
$padding : bool
$samplerate : int
Return values
int|false

MPEGaudioFrequencyArray()

public static MPEGaudioFrequencyArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

MPEGaudioHeaderBytesValid()

public static MPEGaudioHeaderBytesValid(string $head4[, bool $allowBitrate15 = false ]) : bool
Parameters
$head4 : string
$allowBitrate15 : bool = false
Return values
bool

MPEGaudioHeaderDecode()

public static MPEGaudioHeaderDecode(string $Header4Bytes) : array<string|int, mixed>|false
Parameters
$Header4Bytes : string
Return values
array<string|int, mixed>|false

MPEGaudioHeaderValid()

public static MPEGaudioHeaderValid(array<string|int, mixed> $rawarray[, bool $echoerrors = false ][, bool $allowBitrate15 = false ]) : bool
Parameters
$rawarray : array<string|int, mixed>
$echoerrors : bool = false
$allowBitrate15 : bool = false
Return values
bool

MPEGaudioLayerArray()

public static MPEGaudioLayerArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

MPEGaudioModeExtensionArray()

public static MPEGaudioModeExtensionArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

MPEGaudioVersionArray()

public static MPEGaudioVersionArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

RecursiveFrameScanning()

public RecursiveFrameScanning(int &$offset, int &$nextframetestoffset, bool $ScanAsCBR) : bool
Parameters
$offset : int
$nextframetestoffset : int
$ScanAsCBR : bool
Return values
bool

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
throws
Exception
throws
getid3_exception
Return values
string|null

setStringMode()

public setStringMode(string $string) : mixed
Parameters
$string : string

XingVBRidOffset()

public static XingVBRidOffset(string $version, string $channelmode) : int
Parameters
$version : string
$channelmode : string
Return values
int

error()

protected error(string $text) : bool
Parameters
$text : string
Return values
bool

feof()

protected feof() : bool
Return values
bool

fread()

protected fread(int $bytes) : string|false
Parameters
$bytes : int
Tags
throws
getid3_exception
Return values
string|false

fseek()

protected fseek(int $bytes[, int $whence = SEEK_SET ]) : int
Parameters
$bytes : int
$whence : int = SEEK_SET
Tags
throws
getid3_exception
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

warning()

protected warning(string $text) : bool
Parameters
$text : string
Return values
bool

        
On this page

Search results