Class PrepareAVWorkflowOperationHandler
java.lang.Object
org.opencastproject.workflow.api.AbstractWorkflowOperationHandler
org.opencastproject.workflow.handler.composer.PrepareAVWorkflowOperationHandler
- All Implemented Interfaces:
WorkflowOperationHandler
The
prepare media operation will make sure that media where audio and video track come in separate files
will be muxed prior to further processing.-
Nested Class Summary
Nested classes/interfaces inherited from class org.opencastproject.workflow.api.AbstractWorkflowOperationHandler
AbstractWorkflowOperationHandler.Configuration -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the muxing encoding profilestatic final StringName of audio muxing configuration keystatic final StringName of the 'rewrite' configuration keystatic final StringName of the 'encode to audio only prepared copy' encoding profilestatic final StringName of the 'encode to a/v prepared copy' encoding profilestatic final StringName of the 'encode to video only prepared copy' encoding profileFields inherited from class org.opencastproject.workflow.api.AbstractWorkflowOperationHandler
description, id, serviceRegistry, SOURCE_FLAVOR, SOURCE_FLAVORS, SOURCE_TAG, SOURCE_TAGS, TARGET_FLAVOR, TARGET_FLAVORS, TARGET_TAG, TARGET_TAGS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidsetComposerService(ComposerService composerService) Callback for the OSGi declarative services configuration.voidsetServiceRegistry(ServiceRegistry serviceRegistry) Sets the service registry.voidsetWorkspace(Workspace workspace) Callback for declarative services configuration that will introduce us to the local workspace service.start(WorkflowInstance workflowInstance, JobContext context) Runs the workflow operation on thisWorkflowInstance.Methods inherited from class org.opencastproject.workflow.api.AbstractWorkflowOperationHandler
activate, applyTargetTagsToElement, asList, createResult, createResult, createResult, createResult, destroy, equals, getCfg, getConfig, getConfig, getConfig, getDescription, getFileNameFromElements, getId, getOptConfig, getOptConfig, getTagsAndFlavors, hashCode, setJobBarrierPollingInterval, skip, toString, waitForStatus, waitForStatus
-
Field Details
-
PREPARE_AV_PROFILE
Name of the 'encode to a/v prepared copy' encoding profile- See Also:
-
MUX_AV_PROFILE
Name of the muxing encoding profile- See Also:
-
PREPARE_AONLY_PROFILE
Name of the 'encode to audio only prepared copy' encoding profile- See Also:
-
PREPARE_VONLY_PROFILE
Name of the 'encode to video only prepared copy' encoding profile- See Also:
-
OPT_REWRITE
Name of the 'rewrite' configuration key- See Also:
-
OPT_AUDIO_MUXING_SOURCE_FLAVORS
Name of audio muxing configuration key- See Also:
-
-
Constructor Details
-
PrepareAVWorkflowOperationHandler
public PrepareAVWorkflowOperationHandler()
-
-
Method Details
-
setComposerService
Callback for the OSGi declarative services configuration.- Parameters:
composerService- the local composer service
-
setWorkspace
Callback for declarative services configuration that will introduce us to the local workspace service. Implementation assumes that the reference is configured as being static.- Parameters:
workspace- an instance of the workspace
-
start
public WorkflowOperationResult start(WorkflowInstance workflowInstance, JobContext context) throws WorkflowOperationException Runs the workflow operation on thisWorkflowInstance. If the execution fails for some reason, this must throw aWorkflowOperationExceptionin order to handle the problem gracefully. Runtime exceptions will cause the entire workflow instance to fail.- Specified by:
startin interfaceWorkflowOperationHandler- Specified by:
startin classAbstractWorkflowOperationHandler- Parameters:
workflowInstance- the workflow instancecontext- the job context- Returns:
- the
WorkflowOperationResultcontaining a potentially modified MediaPackage and whether to put the workflow instance into a wait state. - Throws:
WorkflowOperationException- If the workflow operation fails to execute properly, and the default error handling should be invoked.- See Also:
-
setServiceRegistry
Description copied from class:AbstractWorkflowOperationHandlerSets the service registry. This method is here as a convenience for developers that need the registry to do job waiting.- Overrides:
setServiceRegistryin classAbstractWorkflowOperationHandler- Parameters:
serviceRegistry- the service registry
-