[Image-SIG] quicktime movies using PIL
Andrew Straw
andrew.straw at adelaide.edu.au
Sat Aug 23 23:36:53 EDT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
There may be a pure-Python or other, simpler way (let me know if there
is), but:
I've just added support for QuickTime->OpenGL to the Vision Egg.
Transferring the data the way I've done it requires extraction to a
raw, uncompressed format. I think this all made it into the last
"bleeding edge" release I made (0.9.5b2), but if not, grab the CVS.
Anyhow, the most relevant files and least OpenGL (It should be fairly
easy to, for example, fill a Numeric array by modifying these files a
bit):
swig_src/gl_qt.c
swig_src/gl_qt.h
And less relevant and more OpenGL:
src/QuickTime.py
And showing it all in action with Python's (Carbon) QT module. (Maybe
available only on Macs?):
demo/quicktime.py
I've so far only used this on Mac OS X. I know there's a QuickTime SDK
for win32 and I'd like to port it, but I haven't found the time yet. I
think the QuickTime APIs are (nearly) the same for the two platforms,
but I haven't checked whether win32 Python has the Carbon.QT module.
(If it doesn't, you could actually look at an older revision of the
above files -- it was a later change to use Python's Carbon.Qt module.)
I hope this helps.
Cheers!
Andrew
charo wrote:
> Hi all,
>
> I need to do some simple calculations at every three frames in movies
> stored as quicktime. Is there any way to read quicktime movies using
> PIL? If it is not the case, does anybody know a way to export
> quicktime movies frame by frame to an uncompressed format?
>
> Thanks a lot,
>
> Rosario
-----BEGIN PGP SIGNATURE-----
iD8DBQE/R2bz1xWcCSPVbpgRAi6QAKDJ+IAzhXyxyALd/qx0qgeljSJULgCgsp7t
c0QCfr+d6+zILiBaym5X7TM=
=SvEz
-----END PGP SIGNATURE-----
More information about the Image-SIG
mailing list