Class ScreenshotConverter
- java.lang.Object
-
- org.nuxeo.ecm.platform.video.convert.ScreenshotConverter
-
- All Implemented Interfaces:
Converter
public class ScreenshotConverter extends Object implements Converter
Extract a JPEG screenshot of the video at a given time offset (position).- Author:
- ogrisel
-
-
Field Summary
Fields Modifier and Type Field Description static StringFFMPEG_SCREENSHOT_COMMANDstatic Loglog
-
Constructor Summary
Constructors Constructor Description ScreenshotConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlobHolderconvert(BlobHolder blobHolder, Map<String,Serializable> parameters)Main method to handle the real Conversion Job.voidinit(ConverterDescriptor descriptor)Initializes the Converter.
-
-
-
Field Detail
-
FFMPEG_SCREENSHOT_COMMAND
public static final String FFMPEG_SCREENSHOT_COMMAND
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ScreenshotConverter
public ScreenshotConverter()
-
-
Method Detail
-
init
public void init(ConverterDescriptor descriptor)
Description copied from interface:ConverterInitializes the Converter.This can be used to retrieve some configuration information from the XMap Descriptor.
-
convert
public BlobHolder convert(BlobHolder blobHolder, Map<String,Serializable> parameters) throws ConversionException
Description copied from interface:ConverterMain method to handle the real Conversion Job.Returned
BlobHoldermust implementCachableBlobHolder, otherwise result won't be cached.- Specified by:
convertin interfaceConverter- Throws:
ConversionException
-
-