Nie chcę zakładać nowego temat ale mam taka samą kamerkę i próbuję odpalić motion wg tego poradnika:
https://eko.one.pl/?p=openwrt-webcam.
Doinstalowałem wszystkie pakiety:
Polecenie lsusb:
root@OpenWrt:~# ls -al /dev/video*
crw------- 1 root root 81, 0 Aug 16 07:51 /dev/video0
Czyli wszystko gra... w config poprawiłem tylko:
stream_localhost off
output_pictures off
I odpalam motion
Wchodzę na przegladarke wpisuje adres_routera:8081 i nic nie widze nie znaelziono strony
A w konsoli mam takie coś:
root@OpenWrt:~# motion
[0] [ALR] [ALL] conf_load: could not open configfile /etc/motion/motion.conf: No such file or directory
[0] [CRT] [ALL] conf_load: Not config file to process using default values
[0] [NTC] [ALL] motion_startup: Using default log level (NTC) (6)
[0] [NTC] [ALL] motion_startup: Motion 3.4.0-Git-78ba2da Started
[0] [NTC] [ALL] motion_startup: Logging to syslog
[0] [NTC] [ALL] motion_startup: Using default log type (ALL)
[0] [NTC] [ALL] motion_startup: Using log type (ALL) log level (NTC)
[0] [NTC] [ALL] main: Thread 1 is device: /dev/video0 input -1
[0] [NTC] [ALL] main: Stream port 0
[0] [NTC] [ALL] main: Waiting for threads to finish, pid: 1108
[1] [NTC] [ALL] motion_init: Thread 1 started , motion detection Enabled
[1] [NTC] [VID] vid_v4lx_start: Using videodevice /dev/video0 and input -1
[1] [NTC] [VID] v4l2_get_capability:
------------------------
cap.driver: "uvcvideo"
cap.card: "UVC Camera (046d:0825)"
cap.bus_info: "usb-3f980000.usb-1.3"
cap.capabilities=0x84200001
------------------------
[1] [NTC] [VID] v4l2_get_capability: - VIDEO_CAPTURE
[1] [NTC] [VID] v4l2_get_capability: - STREAMING
[1] [NTC] [VID] v4l2_select_input: name = "Camera 1", type 0x00000002, status 00000000
[1] [NTC] [VID] v4l2_select_input: - CAMERA
[1] [WRN] [VID] v4l2_select_input: Device doesn't support VIDIOC_G_STD
[1] [NTC] [VID] v4l2_set_pix_format: Config palette index 17 (YU12) doesn't work.
[1] [NTC] [VID] v4l2_set_pix_format: Supported palettes:
[1] [NTC] [VID] v4l2_set_pix_format: (0) YUYV (YUYV 4:2:2)
[1] [NTC] [VID] v4l2_set_pix_format: 0 - YUYV 4:2:2 (compressed : 0) (0x56595559)
[1] [NTC] [VID] v4l2_set_pix_format: (1) MJPG (Motion-JPEG)
[1] [NTC] [VID] v4l2_set_pix_format: 1 - Motion-JPEG (compressed : 1) (0x47504a4d)
[1] [NTC] [VID] v4l2_set_pix_format Selected palette YUYV
[1] [NTC] [VID] v4l2_do_set_pix_format: Testing palette YUYV (352x288)
[1] [NTC] [VID] v4l2_do_set_pix_format: Using palette YUYV (352x288) bytesperlines 704 sizeimage 202752 colorspace 00000008
[1] [NTC] [VID] v4l2_scan_controls: found control 0x00980900, "Brightness", range 0,255
[1] [NTC] [VID] v4l2_scan_controls: "Brightness", default -8193, current 128
[1] [NTC] [VID] v4l2_scan_controls: found control 0x00980901, "Contrast", range 0,255
[1] [NTC] [VID] v4l2_scan_controls: "Contrast", default 57343, current 32
[1] [NTC] [VID] v4l2_scan_controls: found control 0x00980902, "Saturation", range 0,255
[1] [NTC] [VID] v4l2_scan_controls: "Saturation", default 57343, current 32
[1] [NTC] [VID] v4l2_scan_controls: found control 0x00980913, "Gain", range 0,255
[1] [NTC] [VID] v4l2_scan_controls: "Gain", default 57343, current 0
[1] [NTC] [VID] vid_v4lx_start: Using V4L2
[1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 1 items
[1] [NTC] [EVT] event_new_video FPS 30
[1] [NTC] [ALL] motion_detected: Motion detected - starting event 1
[1] [NTC] [EVT] event_newfile: File of type 1 saved to: ./01-20180816075330-22.jpg
....
[1] [NTC] [EVT] event_newfile: File of type 1 saved to: ./01-20180816075335-20.jpg
[1] [NTC] [EVT] event_newfile: File of type 1 saved to: ./01-20180816075335-21.jpg
[1] [NTC] [EVT] event_newfile: File of type 1 saved to: ./01-20180816075335-22.jpg
[1] [NTC] [EVT] event_newfile: File of type 1 saved to: ./01-20180816075335-23.jpg
Output file write error --- out of disk space?