Class MediaInspector
java.lang.Object
org.opencastproject.inspection.ffmpeg.MediaInspector
Contains the business logic for media inspection. Its primary purpose is to decouple the inspection logic from all
OSGi/MH job management boilerplate.
-
Constructor Summary
ConstructorsConstructorDescriptionMediaInspector(org.opencastproject.workspace.api.Workspace workspace, String ffprobePath) -
Method Summary
Modifier and TypeMethodDescriptionorg.opencastproject.mediapackage.MediaPackageElementenrich(org.opencastproject.mediapackage.MediaPackageElement element, boolean override, Map<String, String> options) Enriches the given element's mediapackage.org.opencastproject.mediapackage.TrackinspectTrack(URI trackURI, Map<String, String> options) Inspects the element that is passed in as uri.
-
Constructor Details
-
MediaInspector
-
-
Method Details
-
inspectTrack
public org.opencastproject.mediapackage.Track inspectTrack(URI trackURI, Map<String, String> options) throws org.opencastproject.inspection.api.MediaInspectionExceptionInspects the element that is passed in as uri.- Parameters:
trackURI- the element uri- Returns:
- the inspected track
- Throws:
org.opencastproject.inspection.api.MediaInspectionException- if inspection fails
-
enrich
public org.opencastproject.mediapackage.MediaPackageElement enrich(org.opencastproject.mediapackage.MediaPackageElement element, boolean override, Map<String, String> options) throws org.opencastproject.inspection.api.MediaInspectionExceptionEnriches the given element's mediapackage.- Parameters:
element- the element to enrichoverride-trueto override existing metadata- Returns:
- the enriched element
- Throws:
org.opencastproject.inspection.api.MediaInspectionException- if enriching fails
-