quicktime-java

[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: legal pixel formats for QDGraphics jeremy . wood Mon Oct 13 20:00:47 2008

i'm trying to stream YUV from the MacBook Pro camera to an encoding process which is basically a pipe to ffmpeg.

problem is i'm getting the following exception -

quicktime.qd.QDException[QTJava: 7.5.5g],-157=cDepthErrInvalid,QT.vers:7558000

- with some pixel formats and i don't really know why. ideally i'd use kYVYU422PixelFormat or kUYVY422PixelFormat, or even kYUV411PixelFormat, but all of these throw the exception. in fact, almost anything that i specify which has a near match with ffmpeg's YUV support causes QT Java a problem!

i kinda settled on kYUVUPixelFormat, but this reproducibly crashes the VM after calling my SGDataProc a few times.

what's going on? any help appreciated.

Can you give us some more details about the exception you're seeing? (Does it occur when grabbing video, constructing an object, processing an image, etc.)

And/or sample code would be useful.

If you're trying to capture video from the built-in iSight camera, here's an example of how to do that with QTJ:

http://javagraphics.blogspot.com/2007/04/qtj-video-capture-in-swing-components.html

This particular example continually updates a BufferedImage that paints to a Swing component, but you could instead pipe that image data somewhere else (like ffmpeg, I assume).

(quiet in here...)
'
I can't speak for everyone, but personally I'm trying to avoid new QTJ projects as much as possible. Depending on your goals you may want to reconsider using QTJ... it's days are numbered.

Regards,
 - Jeremy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list      ([EMAIL PROTECTED])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-java/alexiscircle%40gmail.com

This email sent to [EMAIL PROTECTED]