Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Hot answers tagged

55

You can access the camera board on /dev/video0 by running the command: sudo modprobe bcm2835-v4l2 This will have to be run on every boot of the device. Or you can put modprobe bcm2835-v4l2 in /etc/rc.local to make it run on every boot automatically.


7

to load the model after each reboot, use this setting sudo nano /etc/modules enter bcm2835-v4l2 exist and save the fle sudo reboot


6

You're correct that you can't add a build-dependency on libraspberrypi-dev to the Debian package, since there is no such package in Debian. You can't even limit the build-dependency to an architecture since both Debian and Raspbian use armhf (albeit with slightly different definitions). Technically, it should be possible to provide a Raspbian-specific ...


5

The standard motion dosn't work with the RPI camera. There is a variant called motion-mmal in development which works with the RPI camera http://www.raspberrypi.org/phpBB3/viewtopic.php?t=44966&p=379561#p374790 is a forum chat on setting it up http://www.codeproject.com/Articles/665518/Raspberry-Pi-as-low-cost-HD-surveillance-camera this is a guide on ...


2

First I recommend recording all time (not motion only) while You are driving. Second, it is important where Your raspberry pi is placed. If it is attached to a window, so that if the car crashes, Your PI can just fly somewhere (And cables may unplug automatically). If you want to be safer, You need an additional battery for PI (this means that You need some ...


2

(from https://raspberrypi.stackexchange.com/a/18214/12486) You will be able to access to the raspi camera like other V4L2 device using : the official kernel V4L2 driver bcm2835-v4l2 sudo modprobe bcm2835-v4l2 the unofficial userspace V4L2 driver for the Raspberry Pi Camera Module uv4l --driver raspicam --auto-video_nr


2

to get motion to work(out of the box) you can install the Userspace Video4Linux2 It will create the /dev/video0 device node correctly on the Raspberry Pi. I have just followed the install instructions and not only does motion just work, the example(optional) motion.conf sets up the Pi as a streaming server so that you can access it remotely in a browser. ...


2

Might be a bit late on this, but I had a similar problem. I think your problem lies with you instantiating picamera.PiCamera() again. i.e. inside your with statement you are instantiating a PiCamera() class each time it executes. Just move the instantiation outside of the while loop and use it from within the loop like this: - camera = picamera.PiCamera() ...


1

OK, I fixed it. I hope this helps someone... I had used ~/path/to/file.py as the directory to which I wanted to store the footage taken by my Python code. I replaced this with absolute reference: /home/pi/path/to/file.py and that solved it.


1

Undefined reference errors have gone when include the vc_vchi_gencmd.h file with extern "C"... declaration; extern "C" { #include "interface/vmcs_host/vc_vchi_gencmd.h" }


1

This appears to be code for "you haven't assigned enough memory to the GPU". Using the raspivid command in this situation resulted in: mmal: mmal_vc_component_enable: failed to enable component: ENOSPC mmal: camera component couldn't be enabled mmal: main: Failed to create camera component mmal: Only 64M of gpu_mem is configured. Try running "sudo raspi-...


1

Install motion from github and build it yourself. This is how to do it: sudo mkdir motion sudo cd motion sudo apt-get install autoconf automake build-essential pkgconf libtool libzip-dev libjpeg-dev git libavformat-dev libavcodec-dev libavutil-dev libswscale-dev libavdevice-dev libwebp-dev gettext libmicrohttpd-dev git clone https://github.com/Motion-...


1

Burnt camera module. Happened to me once, I had killed the cam although I was super careful.I ran all troubleshooting possible. Apparently, it got fried when I pulled it out while the pi was still on. Happened with my class mate too. Better order a new one, RIP cam.


1

I had the same problem. I tried this, it set up /dev/video0 OK but it did not work with motion: http://www.linux-projects.org/modules/sections/index.php?op=viewarticle&artid=16 But then found this blog which seems to work: http://rbnrpi.wordpress.com/project-list/setting-up-wireless-motion-detect-cam/ Note that the motion-mmal apparently only supports ...


1

The raspberry pi should be shut down correctly, simply cutting off the power can cause corruption of the file system. Even if you record up to the last moment there's no guarantee that the file will be readable if you don't implement a UPS. All you need is to implement a battery or capacitor UPS for a few seconds so data can be flushed to the flash and the ...


1

You have -t 1000 in there, which will wait 1 second before taking the photo. -t 0 will reduce the call by 1 second


Only top voted, non community-wiki answers of a minimum length are eligible