I can pinpoint with some certainty that the performance bottleneck is
the conversion of YUV to RGB done by Quicktime. Use one of the QT YUV
pixel formats in QTNewGWorldFromPtr() and the matching Apple YCbCr GL
formats for texturing. This is easily a 400% speed improvement, and I
have had G5s playing 1920x1080 clips textured onto hundreds of quads,
spheres, etc with no problem.
Also, if you need the highest possible real-time performance, Sorenson
is one of the worst choices for codecs (WMV is worse). Try Photo-Jpeg
or one of the Apple DV or HD codecs and avoid RGB. Remember video is
not computer graphics so don't treat it as such.
On Nov 30, 2004, at 9:15 AM, Lorenzo wrote:
I have just used and tested that code at http://onesadcookie.is-a-geek.net/svn/repos/QTValuePak
but the result is almost the same. The quality of the color is better
but
when the movies are 2 on two simple QUADs, the animation slows down
and the
G5 air-conditioning begins to run...
I supposed that a G5 dual 2GHz with 2GB RAM with "2" x 1GHz bus and a
ATI
9800 Pro with 256 MB were enough to animate 2 movies 480 x 360 Sorenson
Video 3, 25 FPS. But it seems to be not so. And even with 1 movie only,
sometimes I note a very little strange trembling in the movie frame.
It's
like it skips one frame. With my old code this never happened. My
animation
runs at 60 FPS in sync with the video.
I ask to myself, am I really using both the 2 bus or should I use them
specifically writing some code?
If I really can run one movie only, and if I knew that, I should not
have
bought a G5...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden