Class FFmpegSilenceDetector

java.lang.Object
org.opencastproject.silencedetection.ffmpeg.FFmpegSilenceDetector

public class FFmpegSilenceDetector extends Object
Find silent sequences in audio stream using Gstreamer.
  • Field Details

  • 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.SilenceDetectionFailedException
      org.opencastproject.mediapackage.MediaPackageException
      IOException
  • 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