com.day.cq.dam.video
Class FFMpegTranscodeProcess

java.lang.Object
  extended by com.day.cq.dam.commons.process.AbstractAssetWorkflowProcess
      extended by com.day.cq.dam.video.AbstractFFMpegProcess
          extended by com.day.cq.dam.video.FFMpegTranscodeProcess
All Implemented Interfaces:
WorkflowProcess

@Service
@Properties(value=@Property(name="process.label",value="Transcode Video",propertyPrivate=true))
public class FFMpegTranscodeProcess
extends AbstractFFMpegProcess

Workflow process that calls FFMPEG on the command line to create thumbnails of the image. You can specify the dimension of the thumbnails to be created

For example, using the following workflow step arguments:

    [140x100],[48x48]
 

Will create thumbnails of size 140x100 and 48x48 with a black letterbox/pillarbox

This will only happen for assets having a video-based mime-type, others are ignored.


Nested Class Summary
static class FFMpegTranscodeProcess.Arguments
          The available arguments to this process implementation.
 
Field Summary
 
Fields inherited from class com.day.cq.dam.video.AbstractFFMpegProcess
locator, log, mimeTypeService, PROP_WORKING_DIR
 
Fields inherited from class com.day.cq.dam.commons.process.AbstractAssetWorkflowProcess
APPLICATION_OCTET_STREAM_MIMETYPE, TYPE_JCR_PATH
 
Constructor Summary
FFMpegTranscodeProcess()
           
 
Method Summary
 String[] buildArguments(MetaDataMap metaData)
           
 String[] getThumbnailConfigs(MetaDataMap metaData)
          Reads the thumbnail configurations from the given meta data.
 String[] getVideoProfiles(MetaDataMap metaData)
           
protected  void processVideo(MetaDataMap metaData, Asset asset, File tmpFile, WorkflowSession wfSession)
           
 
Methods inherited from class com.day.cq.dam.video.AbstractFFMpegProcess
activate, createTempDir, execute, getWorkingDir
 
Methods inherited from class com.day.cq.dam.commons.process.AbstractAssetWorkflowProcess
getAssetFromPayload, getAssetHandler, getAssetManager, getMimetype, getNodeFromPayload, getResourceResolver, getValuesFromArgs, isNotReadyForProcessing, recheck, safeGetPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FFMpegTranscodeProcess

public FFMpegTranscodeProcess()
Method Detail

processVideo

protected void processVideo(MetaDataMap metaData,
                            Asset asset,
                            File tmpFile,
                            WorkflowSession wfSession)
                     throws IOException,
                            RepositoryException
Throws:
IOException
RepositoryException

getThumbnailConfigs

public String[] getThumbnailConfigs(MetaDataMap metaData)
Reads the thumbnail configurations from the given meta data.

Parameters:
metaData -
Returns:
String[] of thumbnail configurations.

getVideoProfiles

public String[] getVideoProfiles(MetaDataMap metaData)

buildArguments

public String[] buildArguments(MetaDataMap metaData)


Copyright © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.