org.gcube.datatransformation.datatransformationlibrary.programs.video
Class MEncoderWrapper
java.lang.Object
File2FileProgram
org.gcube.datatransformation.datatransformationlibrary.programs.video.MEncoderWrapper
public class MEncoderWrapper
- extends File2FileProgram
- Author:
- Dimitris Katris, NKUA
|
Method Summary |
static void |
main(java.lang.String[] args)
Tests MEncoderWrapper program. |
java.io.File |
transformFile(java.io.File sourceFile,
java.util.List<Parameter> programParameters,
ContentType targetContentType,
java.lang.String targetContentPath)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MEncoderWrapper
public MEncoderWrapper()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Tests MEncoderWrapper program.
- Parameters:
args - source and target files.
- Throws:
java.lang.Exception - If conversion could not be performed.
transformFile
public java.io.File transformFile(java.io.File sourceFile,
java.util.List<Parameter> programParameters,
ContentType targetContentType,
java.lang.String targetContentPath)
throws java.lang.Exception
- Parameters:
sourceFile - The source file.programParameters - The parameters of the Program.targetContentType - The ContentType in which the DataElement will be transformed.targetContentPath - The path for the transformed content.
- Returns:
- The file with the transformed content.
- Throws:
java.lang.Exception - If the Program is not capable to transform DataElements.- See Also:
org.gcube.datatransformation.datatransformationlibrary.programs.File2FileProgram#transformFile(java.io.File, java.util.List, org.gcube.datatransformation.datatransformationlibrary.model.ContentType, java.lang.String)