Paolo Pantaleo wrote:

> Well I need something like 5-10 fps. An issue is the comression
> method: MPEG and friends aren't good (I think) for compressing stuff
> with sharp borders. Maybe I could use A sequence of PNG images, but it
> isn't a great solution.

You probably want to use is VideoCapture for capturing digital video
from e.g. USB webcameras (videocapture.sourceforge.net), Twisted for
asynchronous sockets (twistedmatrix.com), and PyMedia for video and
audio codec (pymedia.org). For GUI and graphics there are a number of
candidates, e.g. PyGTK or PyGame.

Video conference is an I/O bound task (except for the audio/video
codec), and you will consequently gain nothing by using C++ over
Python. The only part that is CPU-bound part (where C++ could
theoretically be better) is the media codec, but you can leave that to
PyMedia's C extensions. Python will most likely not be the bottleneck!

Sure, you could use C++ instead. However, you would quickly be
frustrated with Windows' extremely complex native APIs. E.g. DirectShow
for digital video capture, Winsock for asynchronous sockets,
Microsoft's multimedia APIs for codec, and perhaps MFC for GUI. Using
Python is a good advice!

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to