org.silverpeas.media.video.ffmpeg
Class FFmpegUtil

java.lang.Object
  extended by org.silverpeas.exec.ExternalExecution
      extended by org.silverpeas.media.video.ffmpeg.FFmpegUtil

public class FFmpegUtil
extends ExternalExecution

This class wrapp FFmpeg command line execution.

 ffmpeg -ss $i*$interval -i /path/to/video.mov -vframes 1 -filter:v scale="600:-1" /path/to/thumbnail_$i.jpg
 

Author:
ebonnet

Nested Class Summary
 
Nested classes/interfaces inherited from class org.silverpeas.exec.ExternalExecution
ExternalExecution.Config
 
Constructor Summary
FFmpegUtil()
           
 
Method Summary
static List<String> extractVideoThumbnail(File videoFile, File outputFile, int time)
           
static boolean isActivated()
           
 
Methods inherited from class org.silverpeas.exec.ExternalExecution
exec, exec
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FFmpegUtil

public FFmpegUtil()
Method Detail

isActivated

public static boolean isActivated()

extractVideoThumbnail

public static List<String> extractVideoThumbnail(File videoFile,
                                                 File outputFile,
                                                 int time)


Copyright © 2016 Silverpeas. All Rights Reserved.