You are here

class FFmpeg in Video 8.2

Provides Ffmpeg.

Plugin annotation


@Transcoder(
  id = "ffmpeg",
  name = @Translation("FFmpeg"),
  isExternal = false
)

Hierarchy

Expanded class hierarchy of FFmpeg

File

modules/video_transcode/src/Plugin/video/Transcoder/Ffmpeg.php, line 20
Contains \Drupal\video_transcode\Plugin\video\Transcoder\Ffmpeg.

Namespace

Drupal\video_transcode\Plugin\video\Transcoder
View source
class FFmpeg extends TranscoderBase {

  /**
   * {@inheritdoc}
   */
  public function getOutputFiles() {
    return [
      [
        'format' => 'mpeg4',
        'url' => 'http://s3.amazonaws.com/bucket/video.mp4',
        'id' => 1,
      ],
    ];
  }

  /**
   * {@inheritdoc}
   */
  public function getVideoThumbnails() {
    return [
      [
        'id' => 1,
        'url' => 'http://s3.amazonaws.com/bucket/video/frame_0000.png',
      ],
    ];
  }

}

Members

Namesort descending Modifiers Type Description Overrides
FFmpeg::getOutputFiles public function Get the transcoded files. Overrides TranscoderInterface::getOutputFiles
FFmpeg::getVideoThumbnails public function Get the video thumbnails. Overrides TranscoderInterface::getVideoThumbnails
PluginBase::$configuration protected property Configuration information passed into the plugin. 1
PluginBase::$pluginDefinition protected property The plugin implementation definition. 1
PluginBase::$pluginId protected property The plugin_id.
PluginBase::DERIVATIVE_SEPARATOR constant A string which is used to separate base plugin IDs from the derivative ID.
PluginBase::getBaseId public function Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface::getBaseId
PluginBase::getDerivativeId public function Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface::getDerivativeId
PluginBase::getPluginDefinition public function Gets the definition of the plugin implementation. Overrides PluginInspectionInterface::getPluginDefinition 3
PluginBase::getPluginId public function Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface::getPluginId
PluginBase::isConfigurable public function Determines if the plugin is configurable.
TranscoderBase::$file protected property File object to transcode
TranscoderBase::$httpClient protected property An http client.
TranscoderBase::create public static function Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface::create
TranscoderBase::getAvailableCodecs public function Get the transcoder supported codecs.
TranscoderBase::getAvailableFormats public function Get the transcoder supported formats.
TranscoderBase::getInputFile protected function Get the ID of the video.
TranscoderBase::getLabel public function Get the Plugin label.
TranscoderBase::__construct public function Create a plugin with the given input. Overrides PluginBase::__construct