I've got an inconsistent error triggered, it seems, by Ess, every so often:
Exception in thread "Animation Thread" java.lang.ArrayIndexOutOfBoundsException: -46
at krister.Ess.FFT.getLevel(FFT.java:126)
at Performative_v25$VisualsB.render(Performative_v25.java:585)
at Performative_v25.draw(Performative_v25.java:165)
at processing.core.PApplet.handleDraw(PApplet.java:1631)
at processing.core.PApplet.run(PApplet.java:1530)
at java.lang.Thread.run(Thread.java:680)
This is the line of code that's always highlighted as the source of the error:
float audioLevel = myFFT.getLevel(myInput);
I'm just using FFT to get the volume level of the audio input. myInput is an AudioInput object instantiated as:
myInput = new AudioInput(512);
FFT is instantiated as:
myFFT = new FFT(512);
I'd include all the code, but it's quite extensive. Any ideas on what might trigger this error? The out of bounds index value changes (-46 above, could be -93, who knows).
GSVideo's DrawingMovie examples works on my machine (OS X 10.6.8, Processing 1.5.1).
I've copied and pasted the code from the example exactly into my own sketch. Yet, in my sketch, no video recording file is generated. All seems well, no errors, and the println() statements of queued/dropped frames appear, so it seems the MovieMaker object has been instantiated and is running, yet after I exit the sketch, there is no "video.ogg" file in the sketch folder. I am using the default renderer (not sure what it is in 1.5.1).
at quicktime.std.StdQTException.checkError(StdQTException.java:40)
at quicktime.std.movies.Movie.createMovieFile(Movie.java:116)
at processing.video.MovieMaker.initMovie(MovieMaker.java:219)
at processing.video.MovieMaker.<init>(MovieMaker.java:209)
at processing.video.MovieMaker.<init>(MovieMaker.java:159)
at Performative_v24.setup(Performative_v24.java:119)
at processing.core.PApplet.handleDraw(PApplet.java:1608)
at processing.core.PApplet.run(PApplet.java:1530)
at java.lang.Thread.run(Thread.java:680)
Any thoughts on how to diagnose this? Or, if MM is broken, what are some alternatives? I just need to export a QuickTime movie file. I have looked into these alternatives:
The GSVideo library, which is great, but does not seem to support any of QT's default codecs, as MM does (like H264). Is there a way to get GSVideo to export with standard QT codecs?
Processing 2.0 will have improved video support (derived from GSVideo), but I have examined 2.0a1, and the MovieMaker class seems to be gone. Has it been renamed?
In a 2D sketch, it's easy to use a PImage as the background, and have everything drawn on top of it.
I'm doing something in 3D with the OpenGL renderer, which seems to want to position everything in space. Is there way to tell OpenGL to use a PImage as a "flat" backdrop, meaning the image would always render in relationship to the sketch window, while any other elements would render "on top" or "in front" of that, per normal OpenGL/3D rules?
My current workaround is to place the PImage in 3D space, but tweak the camera settings so it looks like it's lined up with the sketch window.
I've used the OpenCV library for several projects using face detection to great effect. But I'm trying to get lower body detection working, to no avail. Specifically, I'm using the lower body profile, as in:
opencv.cascade(OpenCV.CASCADE_LOWERBODY);
Does anyone else have experience with OpenCV for lower/upper/full body detection? I'm not able to get it to identify anything, no matter how much I tweak my room lighting, contrast, brightness, etc. Thanks!