peterkirn
Junior Member
Offline
Posts: 54
NY
Re: JMyron issues
Reply #4 - Aug 9th , 2007, 3:23am
Right, this happens because it's getting the wrong dimensions when copying to the pixels array. Note that you can avoid the problem entirely if you avoid generic references to width and height and manually copy over pixels, which may actually be useful for some projects when you want to creatively interpret that pixel data (as in a number of the Processing video library examples). Note that getForcedWidth and getForcedHeight will not work on Mac; it'll throw an exception. So take those lines out when going to Mac. Incidentally, I find it's worth playing with 0125 as the capture examples, etc., have been updated and expanded. I've used Flash video, as well. Input is great and it's what you'll need if you're deploying to the web. But you won't be able to do nearly as much with the data once you've captured it, and what you can do is much, much slower in ActionScript than in Java. I do think Flash should be a model for the kind of basic capture and playback Java should support, and I'm not alone. http://www.oreillynet.com/onjava/blog/2006/12/rebooting_java_media_act_i_set.html http://www.oreillynet.com/onjava/blog/2006/12/rebooting_java_media_act_ii_de.html http://www.oreillynet.com/onjava/blog/2007/01/rebooting_java_media_part_iii.html That goes into some Flash vs. Java issues, and further illustrates that part of the frustration here is that there's stuff you can do with Java that you can't with Flash. (Worth reading, in fact, if you're playing with JMyron just to get a broader perspective ... and with Processing, anyway, you could duplicate and perhaps improve upon that Flash example, just not easily in a browser!) But anyway, go enjoy JMyron -- you'll find it and Processing's native libraries to be FAR more fun and satisfying than Flash, which only underlines Chris Adamson's argument about why media is cool!