Video grabbing quality mystery
Hi all
I'm new-ish to Max/MSP/Jitter and have come across a problem. I was using
iStopMotion for time-lapse capture but need to capture from more than one source
simultaneously and in-sync so I decided to write a patch in Max/MSP/Jitter.
I cant seem to get it to capture at the same quality as iStopMotion even though
I have maxed out the quality settings to "lossless" and tried all 3 vmode
settings and am capturing from a canon HV20 in DV mode at 720x576 (native PAL DV
resolution).
The attached jpeg shows the difference in quality using the same camera at
native DV resolution. The left image is from iStopMotion and the right grabbed
with the jit.qt.grab object.
Any clues?
R-)
[img]index.php?t=getfile&id=1666&private=0[/img]
switch interpolation on
Quote: richard.bolam@tesco.net wrote on Tue, 27 May 2008 04:05
----------------------------------------------------
> The attached jpeg shows the difference in quality using the same camera at
> native DV resolution. The left image is from iStopMotion and the right grabbed
> with the jit.qt.grab object.
>
> Any clues?
you might want to post your patch. are you explicitly using the correct resolution in your grab and record objects? post the patch, we can see it then.
Hi Joshua
Thanks for your response.
I'll tidy it up and post it but it's just an adapted patch based on the help patch for jit.qt.grab.
Thanks for the suggestion jaz but switching on interpolation makes no significant difference. It looks as though it is only grabbing every other line?
The quality is ok but I want to capture at the best quality I can and having seen how good it can be nothing else will do.
R-)
did you try sending massages to grab object
Solved!
Thanks for the help.
Here is some info that might help other newbies.
I changed the patch to grab to a jit.window so that I could see the live capture at full DV PAL resolution.
From the documentation of jit.qt.grab I tried changing various parameters but found that the "singlefield" parameter was key. Setting this to 0 solved the problem. The singlefield parameter tells the digitizer to grab just one field per frame and double it up to full resolution, hence the low quality. Setting it to "0" i.e. off solved the problem.
HOWEVER, the improved quality was not apparent until I changed the "codecquality" attribute. (I was clutching at straws at this point and just going through all the quality settings to see what the difference was). It seemed that it the codecquality setting needs to be refreshed for the singlefield attribute to take effect.
I also found that the "codecquality" attribute applies to "vmode" 1 even though the documentation says it only applies to vmode 2.
Switching interpolation on made no discernible difference but it might help in certain circumstances.
To summarize: use vmode 2 to capture, use codecquality of max or lossless and make sure that the singlefield parametre is set to off (i guess this only applies to interlaced sources?).
Thanks to the forum for the help.
R-)