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
$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
ClosestStandardMP3Bitrate()
public
static ClosestStandardMP3Bitrate(float|int $bit_rate) : int|float|string
Parameters
- $bit_rate : float|int
Return values
int|float|stringdecodeMPEGaudioHeader()
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
boolFreeFormatFrameLength()
public
FreeFormatFrameLength(int $offset[, bool $deepscan = false ]) : int|false
Parameters
- $offset : int
- $deepscan : bool = false
Return values
int|falsegetOnlyMPEGaudioInfo()
public
getOnlyMPEGaudioInfo(int $avdataoffset[, bool $BitrateHistogram = false ]) : bool
Parameters
- $avdataoffset : int
- $BitrateHistogram : bool = false
Return values
boolgetOnlyMPEGaudioInfoBruteForce()
public
getOnlyMPEGaudioInfoBruteForce() : bool
Return values
boolGuessEncoderOptions()
public
GuessEncoderOptions() : string
Return values
stringLAMEmiscSourceSampleFrequencyLookup()
public
static LAMEmiscSourceSampleFrequencyLookup(int $SourceSampleFrequencyID) : string
Parameters
- $SourceSampleFrequencyID : int
Return values
stringLAMEmiscStereoModeLookup()
public
static LAMEmiscStereoModeLookup(int $StereoModeID) : string
Parameters
- $StereoModeID : int
Return values
stringLAMEpresetUsedLookup()
public
static LAMEpresetUsedLookup(array<string|int, mixed> $LAMEtag) : string
Parameters
- $LAMEtag : array<string|int, mixed>
Return values
stringLAMEsurroundInfoLookup()
public
static LAMEsurroundInfoLookup(int $SurroundInfoID) : string
Parameters
- $SurroundInfoID : int
Return values
stringLAMEvbrMethodLookup()
public
static LAMEvbrMethodLookup(int $VBRmethodID) : string
Parameters
- $VBRmethodID : int
Return values
stringMPEGaudioBitrateArray()
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|falseMPEGaudioFrequencyArray()
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
boolMPEGaudioHeaderDecode()
public
static MPEGaudioHeaderDecode(string $Header4Bytes) : array<string|int, mixed>|false
Parameters
- $Header4Bytes : string
Return values
array<string|int, mixed>|falseMPEGaudioHeaderValid()
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
boolMPEGaudioLayerArray()
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
boolsaveAttachment()
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|nullsetStringMode()
public
setStringMode(string $string) : mixed
Parameters
- $string : string
XingVBRidOffset()
public
static XingVBRidOffset(string $version, string $channelmode) : int
Parameters
- $version : string
- $channelmode : string
Return values
interror()
protected
error(string $text) : bool
Parameters
- $text : string
Return values
boolfeof()
protected
feof() : bool
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
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