class FFmpeg in Video 8.2
Provides Ffmpeg.
Plugin annotation
@Transcoder(
id = "ffmpeg",
name = @Translation("FFmpeg"),
isExternal = false
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\video_transcode\TranscoderBase implements ContainerFactoryPluginInterface, TranscoderInterface
- class \Drupal\video_transcode\Plugin\video\Transcoder\FFmpeg
- class \Drupal\video_transcode\TranscoderBase implements ContainerFactoryPluginInterface, TranscoderInterface
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\TranscoderView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FFmpeg:: |
public | function |
Get the transcoded files. Overrides TranscoderInterface:: |
|
FFmpeg:: |
public | function |
Get the video thumbnails. Overrides TranscoderInterface:: |
|
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
3 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
TranscoderBase:: |
protected | property | File object to transcode | |
TranscoderBase:: |
protected | property | An http client. | |
TranscoderBase:: |
public static | function |
Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface:: |
|
TranscoderBase:: |
public | function | Get the transcoder supported codecs. | |
TranscoderBase:: |
public | function | Get the transcoder supported formats. | |
TranscoderBase:: |
protected | function | Get the ID of the video. | |
TranscoderBase:: |
public | function | Get the Plugin label. | |
TranscoderBase:: |
public | function |
Create a plugin with the given input. Overrides PluginBase:: |