com.aurellem.capture.video
Class XuggleVideoRecorder

java.lang.Object
  extended by com.aurellem.capture.video.AbstractVideoRecorder
      extended by com.aurellem.capture.video.XuggleVideoRecorder
All Implemented Interfaces:
VideoRecorder, com.jme3.app.state.AppState, com.jme3.post.SceneProcessor

public class XuggleVideoRecorder
extends AbstractVideoRecorder

Handles writing video files using Xuggle.

Author:
Robert McIntyre

Constructor Summary
XuggleVideoRecorder(java.io.File output)
           
 
Method Summary
 void finish()
          Closes the video file, writing appropriate headers, trailers, etc.
 void initVideo()
           
 void record(java.awt.image.BufferedImage rawFrame)
          Write this image to video, disk, etc.
 
Methods inherited from class com.aurellem.capture.video.AbstractVideoRecorder
cleanup, getFps, initialize, initialize, isEnabled, isInitialized, pause, postFrame, postQueue, postRender, preFrame, render, reshape, setEnabled, setFps, start, stateAttached, stateDetached, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XuggleVideoRecorder

public XuggleVideoRecorder(java.io.File output)
                    throws java.io.IOException
Throws:
java.io.IOException
Method Detail

initVideo

public void initVideo()

record

public void record(java.awt.image.BufferedImage rawFrame)
Description copied from interface: VideoRecorder
Write this image to video, disk, etc.

Parameters:
rawFrame - the image to write

finish

public void finish()
Description copied from interface: VideoRecorder
Closes the video file, writing appropriate headers, trailers, etc. After this is called, no more recording can be done.