how to stream a webcam with python
I'm trying to stream/view a webcam via a python app. I've tried pygame and it works great with an actual pci capture card but v4l complains with even a well known can like logitech. Xawtv works fine with the logitech though.
In pygame I get SystemError: ioctl(VIDIOC_S_FMT) failure: no supported formats for the logitech cam. Other than using an external app like xawtv is there any known ways to view via a python app? I don't want to record just view in 2 sizes 320x240 and 640x480 hopefully with command line switches. here is the small view app using pygame Code:
#!/usr/bin/env python |
Hello,
I came across this for you - http://webcamspy.sourceforge.net/ Would that help? Let me know man. Cheers, Josh |
mplayer
I just decided to use mplayer as a subproc. it works fine and quality is good.
thanks |
All times are GMT -5. The time now is 01:45 AM. |