Class WaveformServiceImpl

java.lang.Object
org.opencastproject.job.api.AbstractJobProducer
org.opencastproject.waveform.ffmpeg.WaveformServiceImpl
All Implemented Interfaces:
JobProducer, WaveformService, org.osgi.service.cm.ManagedService

public class WaveformServiceImpl extends AbstractJobProducer implements WaveformService, org.osgi.service.cm.ManagedService
This service creates a waveform image from a media file with at least one audio channel. This will be done using ffmpeg.
  • Field Details

    • logger

      protected static final org.slf4j.Logger logger
      The logging facility
    • binary

      protected String binary
      Path to the executable
    • WAVEFORM_JOB_LOAD_CONFIG_KEY

      public static final String WAVEFORM_JOB_LOAD_CONFIG_KEY
      The key to look for in the service configuration file to override the DEFAULT_WAVEFORM_JOB_LOAD
      See Also:
    • DEFAULT_WAVEFORM_JOB_LOAD

      public static final float DEFAULT_WAVEFORM_JOB_LOAD
      The default job load of a waveform job
      See Also:
    • FFMPEG_BINARY_CONFIG_KEY

      public static final String FFMPEG_BINARY_CONFIG_KEY
      The key to look for in the service configuration file to override the DEFAULT_FFMPEG_BINARY
      See Also:
    • DEFAULT_FFMPEG_BINARY

      public static final String DEFAULT_FFMPEG_BINARY
      The default path to the ffmpeg binary
      See Also:
    • DEFAULT_WAVEFORM_SCALE

      public static final String DEFAULT_WAVEFORM_SCALE
      The default waveform image scale algorithm
      See Also:
    • WAVEFORM_SCALE_CONFIG_KEY

      public static final String WAVEFORM_SCALE_CONFIG_KEY
      The key to look for in the service configuration file to override the DEFAULT_WAVEFORM_SCALE
      See Also:
    • DEFAULT_WAVEFORM_SPLIT_CHANNELS

      public static final boolean DEFAULT_WAVEFORM_SPLIT_CHANNELS
      The default value if the waveforms (per audio channel) should be renderen next to each other (if true) or on top of each other (if false)
      See Also:
    • WAVEFORM_SPLIT_CHANNELS_CONFIG_KEY

      public static final String WAVEFORM_SPLIT_CHANNELS_CONFIG_KEY
      The key to look for in the service configuration file to override the DEFAULT_WAVEFORM_SPLIT_CHANNELS
      See Also:
    • DEFAULT_WAVEFORM_COLOR

      public static final String[] DEFAULT_WAVEFORM_COLOR
      The default waveform colors per audio channel
    • WAVEFORM_COLOR_CONFIG_KEY

      public static final String WAVEFORM_COLOR_CONFIG_KEY
      The key to look for in the service configuration file to override the DEFAULT_WAVEFORM_COLOR
      See Also:
    • DEFAULT_WAVEFORM_FILTER_MODE

      public static final String DEFAULT_WAVEFORM_FILTER_MODE
      See Also:
    • WAVEFORM_FILTER_MODE_CONFIG_KEY

      public static final String WAVEFORM_FILTER_MODE_CONFIG_KEY
      See Also:
    • DEFAULT_WAVEFORM_FILTER_PRE

      public static final String DEFAULT_WAVEFORM_FILTER_PRE
      The default filter to be optionally prepended to the showwavespic filter
    • WAVEFORM_FILTER_PRE_CONFIG_KEY

      public static final String WAVEFORM_FILTER_PRE_CONFIG_KEY
      The key to look for in the service configuration file to override the DEFAULT_WAVEFORM_FILTER_PRE
      See Also:
    • DEFAULT_WAVEFORM_FILTER_POST

      public static final String DEFAULT_WAVEFORM_FILTER_POST
      The default filter to be optionally appended to the showwavespic filter
    • WAVEFORM_FILTER_POST_CONFIG_KEY

      public static final String WAVEFORM_FILTER_POST_CONFIG_KEY
      The key to look for in the service configuration file to override the DEFAULT_WAVEFORM_FILTER_POST
      See Also:
    • COLLECTION_ID

      public static final String COLLECTION_ID
      Resulting collection in the working file repository
      See Also:
  • Constructor Details

    • WaveformServiceImpl

      public WaveformServiceImpl()
  • Method Details