A silly thought, but is /dev/video a directory and /dev/video0 the device you want? Ottavio Campana wrote:
On Thu, Mar 27, 2003 at 02:12:54PM -0700, Steve Miller wrote:MAP_SHARED requires the file to be writeable, you've opened it as read only.changing the source to: fd=open("/dev/video",O_RDWR); doesn't make it works. I always have got the same problem.... When I run it I get "mmap: Invalid argument" and then segfault. What is invalid for mmap? Thank you.