We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
JMyron issues (Read 3286 times)
JMyron issues
Nov 8th, 2006, 5:55pm
 
Hi there.

I'm having some issues with JMyron. It's the latest build, on Processing 0115 (tried on the latest P5 but it's still the same).

Anyway, the images is scrambled somehow. Like a region of the image is multiplied 5 times and put one next to eachother. This doesn't happen with the normal QT+WinVDIG setup.
http://www.10megatons.com/zzztemp/processing/crap.gif

The camera is a Sony VX2100E via firewire.
http://www.globalmediapro.com/video/products/Sony_DCRVX2100E_DV_Camcorder_PAL--1139.html


The thing is, I don't need anything special from JMyron route, but the performance of VDIG is utter crap, it's about 2-3 fps and a delay of about 0.5s. It's unusable. I don't get it, I don't know what else I could do. (*pulls hair*)

If you have any ideas, solutions, links, a hug, please let me know.

Thanks.

P.S.
How's Flash's video thing? Any good?
Re: JMyron issues
Reply #1 - Nov 8th, 2006, 9:53pm
 
I tried another basic Philips webcam and jmyron is working. The good thing is I tracked down the issue. It seams Jyron doesn't like some scene and camera sizes. The demo was with 320x240, and when I changed that to 640x480 it looked very similar to the problem I had. All this on Jmyron_Simple_camera sketck that comes with JMyron.

The native resolution of the firewire camera (the one that I really want to get going) is 720x586. I have no idea what size would JM like, o how I can go about finding out. I had look through the JM reference but didn't find anything.

Help please ?

Thx
Re: JMyron issues
Reply #2 - Nov 20th, 2006, 4:15pm
 
i have a Logitech QuickCam Chat and had the same problem using jmyron when i just discovered the use of this line in a sourcecode :

println("Forced Dimensions: " + m.getForcedWidth() + " " + m.getForcedHeight());

it gives you the real sized used by the webcam in order to get the good result with JMyron lib in Processing !!!

so i discovered i was obliged to use 352x288 instead of the usual 320x200 or else and now it works just fine!
Re: JMyron issues
Reply #3 - Jul 29th, 2007, 6:27pm
 
cosmin:
firewire DV pal is 720x576 - - jmyron works great with these settings and my DV cam.
best,
/j
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!
Re: JMyron issues
Reply #5 - Sep 25th, 2007, 10:47am
 
Hi although I'm new to JMyron, I developed these few useful lines to make it show up OK in win. Place them in setup() and have fun.
Andrea

Quote:


 //make a new instance of the object
 m = new JMyron();
 //start it with default w,h
 m.start(width,height);
 // let JMyron tell you the proper size
 int w = m.getForcedWidth();
 int h = m.getForcedHeight();
 //stop it
 m.stop();
 // set the proper size
 size(w,h);
 //and finally start it ok
 m.start(w,h);



Re: JMyron issues
Reply #6 - Apr 11th, 2010, 9:47am
 
Although this topic is old, here is a tip:

when using processing video lib, don't forget to include the P2D argument in the size method to get faster response.

ex.:

size(640, 480, P2D);
cam = new Capture(this, 640, 480, 30);
Page Index Toggle Pages: 1