Parsed: 112294

  public static function CodecIDtoCommonName($codecid) {
    // http://www.matroska.org/technical/specs/codecid/index.html
    static $CodecIDlist = array();
    if (empty($CodecIDlist)) {
      $CodecIDlist['A_AAC']            = 'aac';
      $CodecIDlist['A_AAC/MPEG2/LC']   = 'aac';
      $CodecIDlist['A_AC3']            = 'ac3';
      $CodecIDlist['A_EAC3']           = 'eac3';
      $CodecIDlist['A_DTS']            = 'dts';
      $CodecIDlist['A_FLAC']           = 'flac';
      $CodecIDlist['A_MPEG/L1']        = 'mp1';
      $CodecIDlist['A_MPEG/L2']        = 'mp2';
      $CodecIDlist['A_MPEG/L3']        = 'mp3';
      $CodecIDlist['A_PCM/INT/LIT']    = 'pcm';       // PCM Integer Little Endian
      $CodecIDlist['A_PCM/INT/BIG']    = 'pcm';       // PCM Integer Big Endian
      $CodecIDlist['A_QUICKTIME/QDMC'] = 'quicktime'; // Quicktime: QDesign Music
      $CodecIDlist['A_QUICKTIME/QDM2'] = 'quicktime'; // Quicktime: QDesign Music v2
      $CodecIDlist['A_VORBIS']         = 'vorbis';
      $CodecIDlist['V_MPEG1']          = 'mpeg';
      $CodecIDlist['V_THEORA']         = 'theora';
      $CodecIDlist['V_REAL/RV40']      = 'real';
      $CodecIDlist['V_REAL/RV10']      = 'real';
      $CodecIDlist['V_REAL/RV20']      = 'real';
      $CodecIDlist['V_REAL/RV30']      = 'real';
      $CodecIDlist['V_QUICKTIME']      = 'quicktime'; // Quicktime
      $CodecIDlist['V_MPEG4/ISO/AP']   = 'mpeg4';
      $CodecIDlist['V_MPEG4/ISO/ASP']  = 'mpeg4';
      $CodecIDlist['V_MPEG4/ISO/AVC']  = 'h264';
      $CodecIDlist['V_MPEG4/ISO/SP']   = 'mpeg4';
      $CodecIDlist['V_VP8']            = 'vp8';
      $CodecIDlist['V_MS/VFW/FOURCC']  = 'vcm'; // Microsoft (TM) Video Codec Manager (VCM)
      $CodecIDlist['A_MS/ACM']         = 'acm'; // Microsoft (TM) Audio Codec Manager (ACM)
    }
    return (isset($CodecIDlist[$codecid]) ? $CodecIDlist[$codecid] : $codecid);
  }