Hot answers tagged

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,824
9 votes

RaspberryPi 3 B+: RPi restart whenever I tried to run two webcams simultaneously

No one is mentioning that the Maximum total USB peripheral current draw on a rpi 3b+ is 1.2A (power requirements) Having said that your current psu is enough. If the cameras are indeed drawing more ...
papatrexas's user avatar
7 votes

RPI2 USB webcam capture low FPS

Most probably, bottle neck in this case is CPU speed to process the feed. I use Rpi for some basic image processing based automation work and here is what I've noticed. Rpi 1 hardly gives 5 fps at ...
dhruvvyas90's user avatar
  • 2,853
7 votes
Accepted

Get h264 from Webcam Logitech C922

The problem is that the C922 does not advertise its H264 stream over UVC whereas the C920 does. This is because Logitech did not want to enable general use of the H264 for the C922, but instead wanted ...
Fred's user avatar
  • 86
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

Protect my motion webcam stream with a password (motion.conf)

To setup a username and password with motion, you need to edit motion configuration file. Steps Open terminal Type sudo nano /etc/motion/motion/conf Add in a new line stream_auth_method 1 Add in a ...
Chaf's user avatar
  • 61
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
5 votes

Raspberry Pi Recognizes Logitech C920 Webcam But Can't Do Anything

I spent a number of hours recently with my C920 and a Raspberry Pi 3 recently to make a babyCam that I could stream within my home network. I may be able to shed some light but also provide ...
Jim Russell's user avatar
5 votes

Unable to find a compatible palette format

You will most likely need the video4linux support libraries. Check if you have them already. locate v4l1compat.so In my case, the output is /usr/lib/x86_64-linux-gnu/libv4l/v4l1compat.so, yours ...
Ruralkan's user avatar
5 votes
Accepted

Detecting Pi has been unplugged instead of shutdown

If you want the Pi to be able to tell you (via email notification or whatever) that it was not shut down properly the last time it was active, a simple solution is to arrange for a simple script that (...
larsks's user avatar
  • 656
5 votes

Webcam input / display using gstreamer

Try: gst-launch-1.0 v4l2src device=/dev/video0 ! videoconvert ! ximagesink
user1145922's user avatar
5 votes

RaspberryPi 3 B+: RPi restart whenever I tried to run two webcams simultaneously

In the absence of any quantitative observations, the community can only guess. What is the current rating for the power supply? Perhaps a power supply with more current can solve the problem if the ...
gatorback's user avatar
  • 637
4 votes

Raspberry Pi Camera, what's the big deal?

It's unlikely that you'd be able to use a cellphone camera on the RPi. They're very tightly integrated into their motherboards, which makes getting them off the board difficult. If you manage to do ...
Jacobm001's user avatar
  • 11.9k
4 votes

Commands to "simulate" removing and re-inserting a USB peripheral?

In the spirit of sharing, I modified the usbreset code provided, in Tai's answer above, to accept parameters like you get from lsusb (in addition). That way it can be invoked conveniently by DEVNUMS=...
Hugo Tyson's user avatar
4 votes

What happens if I force_turbo (and over_voltage) but do not increase ARM, etc

As per the documentation on overclocking: When you overclock (i.e. actually change the arm_freq, core_freq, or gpu_freq tags), the dynamic clock setting will automatically be enabled. This means that ...
Patrick Cook's user avatar
  • 6,365
3 votes

Getting "No rule to make target 'modules'. Stop." error when running makefile. What does it mean?

We had the very same problem, and it turned out that '$(PWD)/build' directory, '/lib/modules/4.8.0-53-generic/build' on my laptop, is empty, but this build folder must be a shortcut of '/usr/src/linux-...
farnaz's user avatar
  • 31
3 votes

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

Piotr Kula's answer seems to be on the right track but is outdated for Raspberry stretch. There are updated instructions for uv4l on Raspberry stretch at https://www.linux-projects.org/uv4l/...
Wolfgang Fahl's user avatar
3 votes

Raw video dump to file using no encoding with usb webcam

I think you have to change the input_format to "yuyv422". Try this: ffmpeg -f video4linux2 -input_format yuyv422 -i /dev/video0 -c:v copy -output.avi or ffmpeg -f video4linux2 -input_format ...
ssinfod's user avatar
  • 586
3 votes

Protect my motion webcam stream with a password (motion.conf)

netcam_userpass is to connect motion to a webcam that is protected by a username and password. This can happen for instance, if you are running a webcam program on a cellphone and have set a username/...
Subimage's user avatar
  • 131
3 votes

Set up webcam microphone for raspberry pi

I know this question is old, but in case someone stumbles upon this sort of issue (as I did): This could possibly be an access rights problem. If running the command as root sudo arecord -l finds a ...
MonkeyTonk's user avatar
3 votes

Activate USB camera connected in Pi through laptop

If your network is fast enough for USB traffic, you can use USB/IP to access your USB camera remotely. Run the usbipd server on the RPi to export the webcam and usbip client on your laptop to "attach" ...
Dmitry Grigoryev's user avatar
3 votes
Accepted

Possibility: Simultanius save webcam stream to file and register as DirectShow-device via USB

This doesn't sound possible. I did a little more thinking following my comment below the question, and eventually realised that what you're describing is a Pi which is simultaneously in USB host mode ...
goobering's user avatar
  • 10.7k
3 votes

Presenting HTTP service securely with HTTPS

Right, I got there in the end! Using Apache 2.2.22 SSL Proxy Configuration Install Apache2 sudo apt-get install apache2 Enable Apache2 Modules for Proxying & SSL sudo a2enmod proxy sudo a2enmod ...
James Finch's user avatar
3 votes

VLC - Unable to open MRL 'v4l2:///dev/video0'

Your user doesn't have permissions to open /dev/video because that dev file is owned by root user and video group. You need to add your user to the video group. usermod -aG video ${USER} The a is ...
nickjb's user avatar
  • 131
2 votes

Multiple webcams on a single Raspberry Pi

thank you dastaan, your answer help me so much, finally I take a picture with fswebcam --device <device> <filename> here is the example, I'm gonna take a picture and save it to image.jpg:...
iqom's user avatar
  • 21
2 votes

Can we use usb webcam with picamera?

The Python picamera library is only for the official Raspberry Pi camera module connected to the CSI bus. If you want to use regular USB Webcams , look at projects supporting V4L2 . Example : ...
flakeshake's user avatar
  • 6,215
2 votes

Why is my Webcam image all black?

You need to skip first few frames before capturing image, for more info see the blog post here
Nadeem Shukoor's user avatar
2 votes
Accepted

--banner-colour not working on fswebcam

I believe sudo treats a plain # (hash or pound) character as a comment. You need to escape this character to make it work, like so sudo fswebcam --banner-colour \#ff0000 --png 9 -r 640x480 /var/www/...
Phil B.'s user avatar
  • 5,033
2 votes

Compile MJPG Streamer Error

Here are the steps: git clone https://github.com/jacksonliam/mjpg-streamer.git sudo apt-get install cmake libjpeg8-dev cd mjpg-streamer-experimental make sudo make install Here is how to run it (...
jglee1's user avatar
  • 21
2 votes
Accepted

Face recognition with USB Camera

It is sure possible to use a USB camera on RasPi. Try getting a good resolution camera. you can find some useful information in this link. Regarding detecting only your own face. You can use one of ...
Tes3awy's user avatar
  • 318

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