getID3::GetFileFormatArray() – Return array containing information about all supported formats.

You appear to be a bot. Output may be restricted

Description

Return array containing information about all supported formats.

Usage

$array = getID3::GetFileFormatArray();

Parameters

Returns

array

Source

File name: wordpress/wp-includes/ID3/getid3.php


Lines:

1 to 100 of 613
  public function GetFileFormatArray() {
    static $format_info = array();
    if (empty($format_info)) {
      $format_info = array(

        // Audio formats

        // AC-3   - audio      - Dolby AC-3 / Dolby Digital
        'ac3'  => array(
              'pattern'   => '^\\x0B\\x77',
              'group'     => 'audio',
              'module'    => 'ac3',
              'mime_type' => 'audio/ac3',
            ),

        // AAC  - audio       - Advanced Audio Coding (AAC) - ADIF format
        'adif' => array(
              'pattern'   => '^ADIF',
              'group'     => 'audio',
              'module'    => 'aac',
              'mime_type' => 'audio/aac',
              'fail_ape'  => 'WARNING',
            ),

/*
				// AA   - audio       - Audible Audiobook
				'aa'   => array(
							'pattern'   => '^.{4}\\x57\\x90\\x75\\x36',
							'group'     => 'audio',
							'module'    => 'aa',
							'mime_type' => 'audio/audible',
						),
*/
        // AAC  - audio       - Advanced Audio Coding (AAC) - ADTS format (very similar to MP3)
        'adts' => array(
              'pattern'   => '^\\xFF[\\xF0-\\xF1\\xF8-\\xF9]',
              'group'     => 'audio',
              'module'    => 'aac',
              'mime_type' => 'audio/aac',
              'fail_ape'  => 'WARNING',
            ),


        // AU   - audio       - NeXT/Sun AUdio (AU)
        'au'   => array(
              'pattern'   => '^\\.snd',
              'group'     => 'audio',
              'module'    => 'au',
              'mime_type' => 'audio/basic',
            ),

        // AMR  - audio       - Adaptive Multi Rate
        'amr'  => array(
              'pattern'   => '^\\x23\\x21AMR\\x0A', // #!AMR[0A]
              'group'     => 'audio',
              'module'    => 'amr',
              'mime_type' => 'audio/amr',
            ),

        // AVR  - audio       - Audio Visual Research
        'avr'  => array(
              'pattern'   => '^2BIT',
              'group'     => 'audio',
              'module'    => 'avr',
              'mime_type' => 'application/octet-stream',
            ),

        // BONK - audio       - Bonk v0.9+
        'bonk' => array(
              'pattern'   => '^\\x00(BONK|INFO|META| ID3)',
              'group'     => 'audio',
              'module'    => 'bonk',
              'mime_type' => 'audio/xmms-bonk',
            ),

        // DSF  - audio       - Direct Stream Digital (DSD) Storage Facility files (DSF) - https://en.wikipedia.org/wiki/Direct_Stream_Digital
        'dsf'  => array(
              'pattern'   => '^DSD ',  // including trailing space: 44 53 44 20
              'group'     => 'audio',
              'module'    => 'dsf',
              'mime_type' => 'audio/dsd',
            ),

        // DSS  - audio       - Digital Speech Standard
        'dss'  => array(
              'pattern'   => '^[\\x02-\\x08]ds[s2]',
              'group'     => 'audio',
              'module'    => 'dss',
              'mime_type' => 'application/octet-stream',
            ),

        // DSDIFF - audio     - Direct Stream Digital Interchange File Format
        'dsdiff' => array(
              'pattern'   => '^FRM8',
              'group'     => 'audio',
              'module'    => 'dsdiff',
              'mime_type' => 'audio/dsd',
            ),

        // DTS  - audio       - Dolby Theatre System
        'dts'  => array(

 View on GitHub View on Trac