From: Jiapau <ji...@ya...> - 2021-07-30 01:27:03
|
v4l2_device_open: Failed to open video device /dev/video0: No such file or directory Did you try listing the webcams and see if the video0 is the correct one? On Fri, Jul 30, 2021, 4:43 AM S Andreason <san...@gm...> wrote: > I updated from git and recompiled fresh > motion Version 4.3.1+git20210728-ea2b2a9 > Now it fails to open the netcam as given in motion.conf. > The motion.log is empty, even at log_level 9 > The only list of errors I can see is from > $ sudo service motion status > ● motion.service - LSB: Start Motion detection > Loaded: loaded (/etc/init.d/motion; generated) > Active: active (running) since Thu 2021-07-29 13:13:33 PDT; 14s ago > Docs: man:systemd-sysv-generator(8) > Process: 15297 ExecStart=/etc/init.d/motion start (code=exited, > status=0/SUCCESS) > Tasks: 2 (limit: 4915) > CGroup: /system.slice/motion.service > └─15303 /usr/bin/motion > > Jul 29 13:13:41 raspberrypi3 motion[15303]: [0:motion] [NTC] [ALL] main: > Motion thread 1 restart > Jul 29 13:13:41 raspberrypi3 motion[15303]: [0:motion] [NTC] [ALL] > motion_start_thread: Camera ID: 0 Camera Name: (null) Device: /dev/video0 > Jul 29 13:13:41 raspberrypi3 motion[15303]: [1:ml1] [NTC] [ALL] > motion_init: Camera 0 started: motion detection Enabled > Jul 29 13:13:41 raspberrypi3 motion[15303]: [1:ml1] [NTC] [VID] > vid_start: Opening V4L2 device > Jul 29 13:13:41 raspberrypi3 motion[15303]: [1:ml1] [NTC] [VID] > v4l2_device_open: Using videodevice /dev/video0 and input -1 > Jul 29 13:13:41 raspberrypi3 motion[15303]: [1:ml1] [ALR] [VID] > v4l2_device_open: Failed to open video device /dev/video0: No such file > or directory > Jul 29 13:13:41 raspberrypi3 motion[15303]: [1:ml1] [ERR] [VID] > vid_start: V4L2 device failed to open > Jul 29 13:13:41 raspberrypi3 motion[15303]: [1:ml1] [WRN] [ALL] > motion_init: Could not fetch initial image from camera > Jul 29 13:13:41 raspberrypi3 motion[15303]: [1:ml1] [WRN] [ALL] > motion_init: Motion continues using width and height from config file(s) > Jul 29 13:13:41 raspberrypi3 motion[15303]: [1:ml1] [NTC] [ALL] > image_ring_resize: Resizing pre_capture buffer to 1 items > > /etc/motion/motion.conf does have the lines: > videodevice netcam > netcam_url rtsp://admin:password@192.168.254.205/Streaming/Channels/102 > > I get the same result on different cameras, so not just one model. > > I noticed the rtsp source files were recently edited. Is this a newly > introduced bug? > > > > _______________________________________________ > Motion-user mailing list > Mot...@li... > https://lists.sourceforge.net/lists/listinfo/motion-user > https://motion-project.github.io/ > > Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user |