[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] [ANN] PyVideoIO source release



Hi Riccardo,

Big thanks for sharing this, I works beautifully!

I had to slightly modify the setup.py to make it compile under my
environment here.
Please find attached my modified setup.py.NEW. Hope this help others.

Thanks again, great job!

--r

On Wed, 19 May 2004, rtrocca@libero.it wrote:

 | Hello, after a long time I'm releasing my extension to read AVI files, QuickTime
 | and connect to WebCameras under win32.
 | The extension allows to use PyGame surfaces in order to play movies or show webcam
 | I do not have much time to create a decent website by now, therefore I released
 | the sources and a binary for python 2.3 just to be prompted to do more.
 | If somebody will find this useful I'll be more than happy to add any
 | contribution I receive.
 |
 | the URL is:
 |
 | www.geocities.com/rtrocca/python
 |
 | Well, sorry for the lack of more information,
 | THe source package alsocontains the documentation.
 |
 | Take this as the first public release.
 | It has been tested with python 2.2 and 2.3
 |
 |
 |
 |
 | Riccardo
#!/usr/bin/env python

# To use:

#       python setup.py install

#

import os, sys, string, re

from glob import glob

if not hasattr(sys, 'version_info') or sys.version_info < (2,0,0,'alpha',0):

    raise SystemExit, "Python 2.0 or later required to build these extensions."

import distutils

from distutils.core import setup, Extension



headers = glob ( "*.h")

print headers





DX  = '../xLibs/DXSDK' ## DX9 SDK

QT  = '../QT6 SDK (Win)/Interfaces & Libraries/QTDevWin'

SDL = '../xLibs/SDL/SDL-1.2.7'

FI  = '../xLibs/FreeImage/FreeImage/Dist'



DX_INCL  = DX + '/Include' ## <dshow.h>

DX_INCL2 = DX + '/Samples/C++/DirectShow/BaseClasses' ## <streams.h>

QT_INCL  = QT + '/CIncludes'

SDL_INCL = SDL + '/include'

FI_INCL  = FI



MY_INCL = [DX_INCL, DX_INCL2, QT_INCL, SDL_INCL, FI_INCL]

MY_LIBS = [DX+'/Lib', QT+'/Libraries', SDL+'/lib', FI]



setup (name = "pyVideoIO",

       version = "1.0",

       maintainer = "Riccardo Trocca",

       maintainer_email = "rtrocca@inwind.it",

       description = "A collection of modules to manipulate video and image files in Python",

       url = "http://spazioinwind.libero.it/rtrocca/Python_Image_Processing.html";,



       packages = [''],

	   extra_path = "pyVideo",

	   package_dir={"": "pyVideo"},

       include_dirs= ['./','VideoIO/Include']+MY_INCL,

       

       ext_modules = [

	       Extension('AVIFileLib', ['SwigSrc/pyAviFileLib.cpp','VideoIO/src/AviFileLib.cpp','VideoIO/src/RImage.cpp'],libraries=['vfw32'],library_dirs=MY_LIBS),

		   Extension('RImagec', ['SwigSrc/pyRImageC.cpp','VideoIO/src/RImage.cpp','VideoIO/src/RImageBlitter.cpp'],libraries=['gdi32'],library_dirs=MY_LIBS),

		   Extension('WebCapc',['VideoIO/src/webcap.cpp','VideoIO/src/RImage.cpp','SwigSrc/pywebcap.cpp'],libraries=['strmiids','ole32', 'oleaut32','user32'],library_dirs=MY_LIBS),

		   Extension('QTMovieReaderLib',['VideoIO/src/QTMovieReaderLib.cpp','VideoIO/src/QTSupport.cpp','VideoIO/src/RImage.cpp','VideoIO/src/RImageGWorld.cpp','SwigSrc/pyQTMovieReaderLib.cpp'],libraries=['qtmlclient','user32','advapi32'],library_dirs=MY_LIBS),

		   Extension('RImageSDLc',['VideoIO/src/RImageSDL.cpp','SwigSrc/pyRImageSDL.cpp'],library_dirs=MY_LIBS),

		   Extension('RImageIO',['VideoIO/src/RImageIO.cpp','VideoIO/src/RImage.cpp','SwigSrc/pyRImageIO.cpp'],libraries=['FreeImage'],library_dirs=MY_LIBS)

		   

	       

		   ],

	   data_files=[('Lib/site-packages/pyVideo', ['distroDLL/FreeImage.dll']),

			   ('Lib/site-packages/pyVideo/Examples',['Examples/AVIpygame.pyw','Examples/AVISaveFrame.pyw','Examples/CameraApplication.pyw','Examples/ImageSource_pygame.pyw','Examples/QuickTimepygame.pyw','Examples/QuickTimeSaveFrame.pyw','Examples/WebCapPygame.pyw']),

			   ('Lib/site-packages/pyVideo/docs',['docs/pyVideo_AVIFile_manual.html','docs/pyVideoIO.html','videoIO/docs/VideoIO_reference.html'			

	])

						

						]

	

)