comparison src/com/aurellem/capture/hello/HelloVideo.java @ 10:4c5fc53778c1

moved randelshofer stuff to rightfull place, enabled XuggleVideoRecorder
author Robert McIntyre <rlm@mit.edu>
date Wed, 26 Oct 2011 09:38:27 -0700
parents 5dfc9e768816
children d10f4d4ff15a
comparison
equal deleted inserted replaced
9:5dfc9e768816 10:4c5fc53778c1
3 import java.io.File; 3 import java.io.File;
4 import java.io.IOException; 4 import java.io.IOException;
5 5
6 import com.aurellem.capture.Capture; 6 import com.aurellem.capture.Capture;
7 import com.aurellem.capture.IsoTimer; 7 import com.aurellem.capture.IsoTimer;
8 import com.aurellem.capture.video.AVIVideoRecorder;
9 import com.aurellem.capture.video.AbstractVideoRecorder; 8 import com.aurellem.capture.video.AbstractVideoRecorder;
10 import com.jme3.app.SimpleApplication; 9 import com.jme3.app.SimpleApplication;
11 import com.jme3.material.Material; 10 import com.jme3.material.Material;
12 import com.jme3.math.ColorRGBA; 11 import com.jme3.math.ColorRGBA;
13 import com.jme3.math.Vector3f; 12 import com.jme3.math.Vector3f;
14 import com.jme3.renderer.ViewPort;
15 import com.jme3.scene.Geometry; 13 import com.jme3.scene.Geometry;
16 import com.jme3.scene.shape.Box; 14 import com.jme3.scene.shape.Box;
17 15
18 /** Recording Video from an application suitable for upload to youtube.*/ 16 /** Recording Video from an application suitable for upload to youtube.*/
19 public class HelloVideo extends SimpleApplication { 17 public class HelloVideo extends SimpleApplication {
20 18
21 /*File staticVideo = 19 /*File staticVideo =
22 new File("/home/r/bullshit.avi"); 20 new File("/home/r/bullshit.avi");
23 */ 21 */
24 File movingVideo = 22 File movingVideo =
25 new File("/home/r/tmp/bullshit2.avi"); 23 new File("/home/r/tmp/bullshit2.flv");
26 24
27 AbstractVideoRecorder movingRecorder ; 25 AbstractVideoRecorder movingRecorder ;
28 26
29 public static void main(String[] args){ 27 public static void main(String[] args){
30 HelloVideo app = new HelloVideo(); 28 HelloVideo app = new HelloVideo();