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, Track track, Workspace workspace) Create nonsilent sequences detection pipeline. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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, Track track, Workspace workspace) throws SilenceDetectionFailedException, 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:
SilenceDetectionFailedExceptionMediaPackageExceptionIOException
-
-
Method Details
-
init
public static void init(org.osgi.framework.BundleContext bundleContext) Update FFMPEG binary path if set in configuration.- Parameters:
bundleContext-
-
getMediaSegments
Returns found media segments.- Returns:
- nonsilent media segments
-