Class VideoEditorServiceImpl
java.lang.Object
org.opencastproject.job.api.AbstractJobProducer
org.opencastproject.videoeditor.impl.VideoEditorServiceImpl
- All Implemented Interfaces:
JobProducer,VideoEditorService,org.osgi.service.cm.ManagedService
public class VideoEditorServiceImpl
extends AbstractJobProducer
implements VideoEditorService, org.osgi.service.cm.ManagedService
Implementation of VideoeditorService using FFMPEG
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected OrganizationDirectoryServiceThe organization directory serviceprotected SecurityServiceThe security servicestatic final Stringstatic final Stringprotected SmilServiceThe smil service.protected UserDirectoryServiceThe user directory serviceFields inherited from class org.opencastproject.job.api.AbstractJobProducer
ACCEPT_JOB_LOADS_EXCEEDING_PROPERTY, acceptJobLoadsExeedingMaxLoad, DEFAULT_ACCEPT_JOB_LOADS_EXCEEDING, executor, jobType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext context) OSGI activate method.protected voiddeactivate(org.osgi.service.component.ComponentContext context) protected OrganizationDirectoryServiceReturns a reference to the organization directory service.protected SecurityServiceReturns a reference to the security serviceprotected ServiceRegistryReturns a reference to the service registry.protected UserDirectoryServiceReturns a reference to the user directory serviceprotected Jobprotected StringAsks the overriding class to process the arguments using the given operation.protected TrackprocessSmil(Job job, Smil smil, String trackParamGroupId) Splice segments given by smil document for the given track to the new one.processSmil(Smil smil) Create Smil processingJobs to edit Tracks.voidsetMediaInspectionService(MediaInspectionService inspectionService) voidsetOrganizationDirectoryService(OrganizationDirectoryService organizationDirectoryService) voidsetSecurityService(SecurityService securityService) voidsetServiceRegistry(ServiceRegistry serviceRegistry) voidsetSmilService(SmilService smilService) voidsetUserDirectoryService(UserDirectoryService userDirectoryService) voidsetWorkspace(Workspace workspace) voidupdated(Dictionary<String, ?> properties) Methods inherited from class org.opencastproject.job.api.AbstractJobProducer
acceptJob, countJobs, finallyUpdateJob, getJobType, incident, isReadyToAccept, isReadyToAcceptJobs
-
Field Details
-
JOB_LOAD_KEY
- See Also:
-
SEGMENTS_MIN_DURATION_KEY
- See Also:
-
SEGMENTS_MIN_CUT_DURATION_KEY
- See Also:
-
organizationDirectoryService
The organization directory service -
securityService
The security service -
userDirectoryService
The user directory service -
smilService
The smil service.
-
-
Constructor Details
-
VideoEditorServiceImpl
public VideoEditorServiceImpl()
-
-
Method Details
-
processSmil
protected Track processSmil(Job job, Smil smil, String trackParamGroupId) throws ProcessFailedException Splice segments given by smil document for the given track to the new one.- Parameters:
job- processing jobsmil- smil document with media segments descriptiontrackParamGroupId-- Returns:
- processed track
- Throws:
ProcessFailedException- if an error occured
-
inspect
protected Job inspect(Job job, URI workspaceURI) throws MediaInspectionException, ProcessFailedException -
processSmil
Create Smil processingJobs to edit Tracks. Parse Smil document, extract Tracks to edit and split points where to cut.- Specified by:
processSmilin interfaceVideoEditorService- Parameters:
smil-- Returns:
- Processing Jobs
- Throws:
ProcessFailedException- if an error occures- See Also:
-
process
Description copied from class:AbstractJobProducerAsks the overriding class to process the arguments using the given operation. The result will be added to the associated job as the payload.- Specified by:
processin classAbstractJobProducer- Parameters:
job- the job to process- Returns:
- the operation result
- Throws:
Exception
-
getServiceRegistry
Description copied from class:AbstractJobProducerReturns a reference to the service registry.- Specified by:
getServiceRegistryin classAbstractJobProducer- Returns:
- the service registry
-
getSecurityService
Description copied from class:AbstractJobProducerReturns a reference to the security service- Specified by:
getSecurityServicein classAbstractJobProducer- Returns:
- the security service
-
getUserDirectoryService
Description copied from class:AbstractJobProducerReturns a reference to the user directory service- Specified by:
getUserDirectoryServicein classAbstractJobProducer- Returns:
- the user directory service
-
getOrganizationDirectoryService
Description copied from class:AbstractJobProducerReturns a reference to the organization directory service.- Specified by:
getOrganizationDirectoryServicein classAbstractJobProducer- Returns:
- the organization directory service
-
activate
public void activate(org.osgi.service.component.ComponentContext context) Description copied from class:AbstractJobProducerOSGI activate method.- Overrides:
activatein classAbstractJobProducer- Parameters:
context- OSGI component context
-
deactivate
protected void deactivate(org.osgi.service.component.ComponentContext context) -
updated
public void updated(Dictionary<String, ?> properties) throws org.osgi.service.cm.ConfigurationException- Specified by:
updatedin interfaceorg.osgi.service.cm.ManagedService- Throws:
org.osgi.service.cm.ConfigurationException
-
setMediaInspectionService
-
setServiceRegistry
-
setWorkspace
-
setSecurityService
-
setUserDirectoryService
-
setOrganizationDirectoryService
public void setOrganizationDirectoryService(OrganizationDirectoryService organizationDirectoryService) -
setSmilService
-