You are here

public function TranscoderBase::getAvailableCodecs in Video 8.2

Get the transcoder supported codecs.

Return value

array Array of supported codes.

File

modules/video_transcode/src/TranscoderBase.php, line 73
Provides Drupal\video_transcode\TranscoderBase.

Class

TranscoderBase

Namespace

Drupal\video_transcode

Code

public function getAvailableCodecs() {
  return [
    'encode' => [
      'video' => [
        'h264' => 'H.264',
        'vp8' => 'VP8',
        'theora' => 'Theora',
        'vp6' => 'VP6',
        'mpeg4' => 'MPEG-4',
        'wmv' => 'WMV',
      ],
      'audio' => [
        'aac' => 'AAC',
        'mp3' => 'MP3',
        'vorbis' => 'Vorbis',
        'wma' => 'WMA',
      ],
    ],
    'decode' => [],
  ];
}