Hot answers tagged

45 votes

How to stream video from Raspberry Pi camera and watch it live

The easiest way I have found, to get a live videofeed from an headless raspberry pi, with a raspberry pi camera. This solution works right out of the box, without installing additional software on ...
Per Hansen's user avatar
27 votes

How to start Motion in daemon mode on RPi running Raspbian Jessie

To enable motion to run as a daemon on startup do the following: Edit /etc/default/motion and change start_motion_daemon=no to start_motion_daemon=yes Next enable motion by entering the following ...
Steve Robillard's user avatar
24 votes

Raspberry Pi Camera Rev 1.3 is not detected

I just had this same problem. Here is what eventually worked after reading this (From the comments it looks like you had the same issue as I did): vcgencmd get_camera (Returned supported=1 detected=0)...
StarSweeper's user avatar
19 votes
Accepted

Pi camera v2 - fast, full sensor capture mode with downsampling

Let's start by looking at the camera modules themselves. The v1 camera module is capable of 2x2 and 4x4 binning (see the camera modes table); I've heard there's an 8x8 binning mode as well but the ...
Dave Jones's user avatar
  • 3,978
17 votes

No option to enable a camera in "sudo raspi-config"

The option to enable the camera is in the "Interfacing Options" submenu. It will be clearly labelled ("Enable/disable connection to the Raspberry Pi Camera").
goldilocks's user avatar
  • 58.7k
16 votes
Accepted

Failed to create MMAL component b'vc.ril.camera': Out of memory

This error was resolved when I disconnected and reconnected my camera module. Somehow my camera module must have been wiggled loose when I was working with it and the Pi was not able to detect the ...
Justin's user avatar
  • 432
12 votes
Accepted

VLC does not release webcam resource

rmmod bcm2835-v4l2 modprobe bcm2835-v4l2 Destroys and re-creates /dev/video0 Just ran into the same problem and that fixed it for me.
Michael's user avatar
  • 326
11 votes

RasPi Camera Board and Motion

to load the model after each reboot, use this setting sudo nano /etc/modules enter bcm2835-v4l2 exist and save the fle sudo reboot
jefwu's user avatar
  • 111
11 votes

How can I stream H.264 video from the Raspberry Pi camera module via a web server?

As of 2017 (or perhaps earlier) raspivid is no longer the preferred method, with the Pi devs recommending people use V4L2 instead. So this method allows you to stream H264 via RTP using V4L2 instead ...
Malvineous's user avatar
  • 1,864
9 votes

Looking for a starter kit for my 10 year old

There are a few things in addition to the pi itself that are required, and if you do not already have them, you would want a kit that includes them. Generally these are appropriately priced, but ...
goldilocks's user avatar
  • 58.7k
8 votes

Modern way to stream H.264 from the Raspberry Cam

I'm amazed there isn't more action on this thread, I've been chasing down the answer to this question for months. I stream from a Pi Camera (CSI) to a Janus server, and I found the best pipeline is ...
Ben Olayinka's user avatar
8 votes

RPi OCR or how to read a number from the camera

I recently used Tesseract which is an OCR software that's open source and it gives highly accurate results. To install it on pi, type in the command line: sudo apt-get install tesseract-ocr Then ...
Mero55's user avatar
  • 181
8 votes
Accepted

RPi camera v2.1 not working

I missed the all-important sudo rpi-update, which provided the firmware upgrade that I needed to run the camera. Everything's now up and running.
goobering's user avatar
  • 10.7k
8 votes

How do I detect the type of camera installed?

None of the above. Take advantage of the v4l driver (modprobe bcm2835-v4l2), and either use the v4l2-ctl command from the CLI, or, if you want to get fancy, use the v4l2 libraries from python or C: #...
JayEye's user avatar
  • 1,878
7 votes
Accepted

Raspistill slow to trigger?

You need to have the camera process running all the time. This is the only way I could acheive results of (on average) 50ms. I looked everywhere for a solution. 1 second was just too slow for my ...
Entryton's user avatar
  • 106
7 votes
Accepted

how to forward specific port from wlan0 to eth0

Assuming you're running trusty ol' iptables on your Pi (i.e. you haven't replaced it with something else), run this command (either as root or with sudo) on your Pi: iptables -t nat -A PREROUTING -p ...
Kromey's user avatar
  • 348
7 votes
Accepted

Camera gets hot, how much power should it dissipate?

According to the Specs The official documentation doesn't actually contain a power spec. https://www.raspberrypi.org/documentation/hardware/camera/README.md The FAQ's do offer some guidance: https://...
Kelton Temby's user avatar
7 votes

Camera module not getting detected

I would double check that the camera is correctly connected at both ends and not loose, and that it is enabled via the RPI config menu. The RPi+ camera draws about 260 mA more current than the board ...
Robotbugs's user avatar
  • 261
7 votes
Accepted

Unable to detect cam module in raspberry pi 3 b+

You need to run sudo raspi-config and enable the camera from there before you can use it. The main menu should have an "Interfacing Options" submenu (probably #5). From there the option to ...
goldilocks's user avatar
  • 58.7k
6 votes

Using other camera modules to build custom webcams

Iphone camera modules use MIPI CSI-2 interface. MIPI CSI-2 cameras could be interfaced using USB camera controller chip. Such chips are widely used in webcameras, notebook cameras, IP cameras and some ...
Georgy Moshkin's user avatar
6 votes

Modern way to stream H.264 from the Raspberry Cam

The only modern way to stream H264 to a browser is with UV4L: no latency, no configuration, with optional audio, optional two-way audio/video. No magic GStreamer sauce, yet it's possible to extend its ...
prinxis's user avatar
  • 276
6 votes

Want to put a variable into os.system command on Python 3, but it doesn't work

Use format strings. 'raspistill -o image{0:02d}.jpg'.format(thenumber) The {0:02d} formats the parameter to format as a 2 digit integer with leading zeros. I also recommend using the subprocess ...
Craig's user avatar
  • 3,014
6 votes
Accepted

Camera on Raspberry Pi Zero

No. There is no way to connect the camera board's CSI output to the GPIO pins that will leave you with a functional camera.
goobering's user avatar
  • 10.7k
6 votes
Accepted

"Failed to open video device /dev/video0 no such file or directory" with normal working usb camera in motion

Problem Solved!! What I did was: 1) Removed Motion from Raspberry Pi using sudo apt-get --purge remove motion 2) Disabled Raspberry Pi Camera in raspi-config and rebooted the Pi 3) Installed ...
Alok Naushad's user avatar
6 votes
Accepted

How to capture images from 2 webcams parallely using raspberry pi?

import subprocess p1 = subprocess.Popen("sudo fswebcam -d /dev/video0 -r 1280x960 image.jpg", shell=True); p1 = subprocess.Popen("sudo fswebcam -d /dev/video0 -r 1280x960 image2.jpg", shell=True); p1....
JayEye's user avatar
  • 1,878
6 votes

Python script in rc.local is not running and log file is not updated

One of the reasons, this usually occurs is because one or more of your library/modules are not globally installed. So it's not accessible by admin(or root in linux). Solution: So you can install it ...
sbsohrabi's user avatar
6 votes
Accepted

"Raspberry Pi Zero W" version Help

The Pi Zero W v1.1 does come with the 15-pin MIPI camera interface (CSI) connector - it is just not labelled as it is on the Pi Zero v1.3. Notice that this is the Pi Zero without WiFi, thus there is ...
Ghanima's user avatar
  • 15.8k
6 votes

Trim camera cable for pi 2 for Raspberry pi zero

The CSI port of the Zero W is smaller than that of the Pi 2 and 3. You will need an adapter cable to make it fit. I'd say it's rather complicated to DIY that. See e.g. here: Raspberry Pi Zero Camera ...
Ghanima's user avatar
  • 15.8k
6 votes
Accepted

ERROR: *** unrecognised codec libav ***

You need to install the full libcamera-apps package, Raspberry Pi OS Lite only ships with libcamera-apps-lite. libav based functionality got removed from libcamera-apps-lite because it pulls in X11 ...
hirnsushi's user avatar
5 votes

How to increase the camera exposure time?

Although raspberry camera has lot of limitations it is possible to take pictures in very dark environment. My best night mode for raspberry pi camera is with this settings: raspistill -w 2592 -h ...
vlk's user avatar
  • 291

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