I have two Raspberry Pi Zero devices. I connected one of them to the camera v1.3 and the second one is connected to the camera module v2.1. Both of them give me exactly the same results.
I installed Stretch Lite. After that, I run
Code: Select all
sudo apt-get install motion
I configured /etc/motion/motion.conf:
Also, I run:daemon on
stream_port 8081
stream_quality 80
stream_maxrate 15
stream_localhost off
width 640 -> 1280
height 480 -> 720
framerate 100
Code: Select all
sudo nano /etc/default/motion
start_motion_diamon=yes
sudo chmod 777 /var/lib/motion
sudo service motion start
When I check /var/log/motion/motion.log file, I see lots of errors:Unable to Open Video Device
I do not have video0:[1:ml1] [NTC] [VID] [Oct 27 22:44:00] vid_start: Opening V4L2 device
[1:ml1] [NTC] [VID] [Oct 27 22:44:00] v4l2_start: Using videodevice /dev/video0 and input -1
[1:ml1] [ALR] [VID] [Oct 27 22:44:00] v4l2_start: Failed to open video device /dev/video0: No such file or directory
[1:ml1] [ERR] [VID] [Oct 27 22:44:00] vid_start: V4L2 device failed to open
[1:ml1] [WRN] [ALL] [Oct 27 22:44:10] mlp_retry: Retrying until successful connection with camera
[1:ml1] [NTC] [VID] [Oct 27 22:44:10] vid_start: Opening V4L2 device
[1:ml1] [NTC] [VID] [Oct 27 22:44:10] v4l2_start: Using videodevice /dev/video0 and input -1
[1:ml1] [ALR] [VID] [Oct 27 22:44:10] v4l2_start: Failed to open video device /dev/video0: No such file or directory
[1:ml1] [ERR] [VID] [Oct 27 22:44:10] vid_start: V4L2 device failed to open
What can I do? Because I have the same problem with two different Raspberry Pi's and two different Camera Modules, I guess that there is some kind of configuration error. Can someone help me with this?pi@BasementCamera:~ $ sudo ls -la /dev/video*
crw-rw---- 1 root video 81, 0 Oct 27 21:43 /dev/video10
crw-rw---- 1 root video 81, 1 Oct 27 21:43 /dev/video11
crw-rw---- 1 root video 81, 2 Oct 27 21:43 /dev/video12
pi@BasementCamera:~ $
Thank you.