org.silverpeas.media.video.ffmpeg
Class FFmpegThumbnailExtractor

java.lang.Object
  extended by org.silverpeas.media.video.ffmpeg.FFmpegThumbnailExtractor
All Implemented Interfaces:
VideoThumbnailExtractor

@Named(value="videoThumbnailExtractor")
public class FFmpegThumbnailExtractor
extends Object
implements VideoThumbnailExtractor

This class extract 5 thumbnails from a video file using FFmpeg

Author:
ebonnet

Method Summary
 void generateThumbnailsFrom(File video)
          This method must generate 5 thumbnails of the video given in parameter
static FFmpegThumbnailExtractor getInstance()
          Gets the singleton instance.
 boolean isActivated()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static FFmpegThumbnailExtractor getInstance()
Gets the singleton instance.

Returns:

isActivated

public boolean isActivated()
Specified by:
isActivated in interface VideoThumbnailExtractor
Returns:
true if this feature is activated, false else if

generateThumbnailsFrom

public void generateThumbnailsFrom(File video)
Description copied from interface: VideoThumbnailExtractor
This method must generate 5 thumbnails of the video given in parameter

Specified by:
generateThumbnailsFrom in interface VideoThumbnailExtractor
Parameters:
video - the video from which we extract thumbnails


Copyright © 2016 Silverpeas. All Rights Reserved.