tools
Class FFmpegIO

java.lang.Object
  extended by tools.FFmpegIO

public class FFmpegIO
extends java.lang.Object

Author:
jasonkb

Constructor Summary
FFmpegIO(javax.swing.JProgressBar pb)
           
 
Method Summary
 void decomposeVideo(java.lang.String videoPath, java.lang.String workingDirectory, java.lang.String imageType)
          Call this method to break a video file down into individual frames.
 double[] getProperties(java.lang.String videoPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FFmpegIO

public FFmpegIO(javax.swing.JProgressBar pb)
Method Detail

getProperties

public double[] getProperties(java.lang.String videoPath)
Parameters:
videoPath -
Returns:
Vector with position 0 the time in seconds and position 1 the FPS

decomposeVideo

public void decomposeVideo(java.lang.String videoPath,
                           java.lang.String workingDirectory,
                           java.lang.String imageType)
Call this method to break a video file down into individual frames.

Parameters:
videoPath - Absolute path to video that will be decomposed into individual frames
workingDirectory - Directory to dump grabbed frames
imageType - Type of file format that images will be stored as. PNG default