$ 0 0 Sounds like your camera device /dev/video0 is inaccessible to non-root users. Try to run with sudo.