Class FFmpegSilenceDetector
java.lang.Object
org.opencastproject.silencedetection.ffmpeg.FFmpegSilenceDetector
Find silent sequences in audio stream using Gstreamer.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFFmpegSilenceDetector(Properties properties, org.opencastproject.mediapackage.Track track, org.opencastproject.workspace.api.Workspace workspace) Create nonsilent sequences detection pipeline. -
Method Summary
Modifier and TypeMethodDescriptionorg.opencastproject.silencedetection.api.MediaSegmentsReturns found media segments.static voidinit(org.osgi.framework.BundleContext bundleContext) Update FFMPEG binary path if set in configuration.
-
Field Details
-
FFMPEG_BINARY_CONFIG
- See Also:
-
FFMPEG_BINARY_DEFAULT
- See Also:
-
-
Constructor Details
-
FFmpegSilenceDetector
public FFmpegSilenceDetector(Properties properties, org.opencastproject.mediapackage.Track track, org.opencastproject.workspace.api.Workspace workspace) throws org.opencastproject.silencedetection.api.SilenceDetectionFailedException, org.opencastproject.mediapackage.MediaPackageException, IOException Create nonsilent sequences detection pipeline. Parse audio stream and store all positions, where the volume level fall under the threshold.- Parameters:
properties-track- source track- Throws:
org.opencastproject.silencedetection.api.SilenceDetectionFailedExceptionorg.opencastproject.mediapackage.MediaPackageExceptionIOException
-
-
Method Details
-
init
public static void init(org.osgi.framework.BundleContext bundleContext) Update FFMPEG binary path if set in configuration.- Parameters:
bundleContext-
-
getMediaSegments
public org.opencastproject.silencedetection.api.MediaSegments getMediaSegments()Returns found media segments.- Returns:
- nonsilent media segments
-