|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.googlecode.fascinator.transformer.ffmpeg.FfmpegTransformer
public class FfmpegTransformer
This plugin is used for converting audio and video media to web-friendly versions using FFmpeg library.
https://fascinator.usq.edu.au/trac/wiki/Fascinator/Documents/Plugins/ Transformer/Ffmpeg
| Constructor Summary | |
|---|---|
FfmpegTransformer()
Basic constructor |
|
FfmpegTransformer(Ffmpeg ffmpeg)
Instantiate the transformer with an existing instantiation of Ffmpeg |
|
| Method Summary | |
|---|---|
Payload |
createFfmpegErrorPayload(DigitalObject object)
Create ffmpeg error payload |
Payload |
createFfmpegPayload(DigitalObject object,
File file)
Create converted ffmpeg payload |
String |
getId()
Get Transformer id |
String |
getName()
Get Transformer name |
PluginDescription |
getPluginDetails()
Gets a PluginDescription object relating to this plugin. |
void |
init(File jsonFile)
Init method to initialise Ffmpeg transformer |
void |
init(String jsonString)
Init method to initialise Ffmpeg transformer |
void |
shutdown()
Shut down the transformer plugin |
DigitalObject |
transform(DigitalObject object,
String jsonConfig)
Transforming digital object method |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FfmpegTransformer()
public FfmpegTransformer(Ffmpeg ffmpeg)
ffmpeg - already instaniated ffmpeg installation| Method Detail |
|---|
public void init(File jsonFile)
throws PluginException
init in interface PluginjsonFile -
IOException
PluginException
public void init(String jsonString)
throws PluginException
init in interface PluginjsonString -
IOException
PluginException
public DigitalObject transform(DigitalObject object,
String jsonConfig)
throws TransformerException
transform in interface TransformerTransformerException - if the transformation fails
public Payload createFfmpegErrorPayload(DigitalObject object)
throws StorageException,
FileNotFoundException,
UnsupportedEncodingException
object - : DigitalObject to store the payload
FileNotFoundException - if the file provided does not exist
UnsupportedEncodingException - for encoding errors in the message
StorageException
public Payload createFfmpegPayload(DigitalObject object,
File file)
throws StorageException,
FileNotFoundException
object - DigitalObject to store the payloadfile - File to be stored as payload
StorageException - if there is a problem trying to store
FileNotFoundException - if the file provided does not existpublic String getId()
getId in interface Pluginpublic String getName()
getName in interface Pluginpublic PluginDescription getPluginDetails()
getPluginDetails in interface Plugin
public void shutdown()
throws PluginException
shutdown in interface PluginPluginException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||