|
5楼
楼主 |
发表于 2020-3-13 13:58:39
|
只看该作者
还是不行
在conf中
on_movie_end echo %f >> /home/rc.log
可以看到rc.log里面有mp4文件的记录,说明这一行确实运行了
但是用
on_movie_end rclone copy --config /home/rclone.conf %f kusld:/pi2/ >>rc.log
却没有任何结果
我删掉了rc.log,当有了一个录像之后,一个新的rc.log被创建,不过字节是0,说明这一句确实执行了,但是google drive里面没有,真是搞不明白
motion的log文件如下:
[1:ml1] [NTC] [VID] [Mar 13 16:17:29] v4l2_scan_controls: found control 0x0098090f, "Blue Balance", range 1,7999
[1:ml1] [NTC] [VID] [Mar 13 16:17:29] v4l2_scan_controls: "Blue Balance", default 1000, current 1000
[1:ml1] [NTC] [ALL] [Mar 13 16:17:29] image_ring_resize: Resizing pre_capture buffer to 1 items
[1:ml1] [NTC] [STR] [Mar 13 16:17:29] http_bindsock: listening on any IPv4 address port 8088
[1:ml1] [NTC] [ALL] [Mar 13 16:17:29] motion_init: Started motion-stream server on port 8088 (auth Enabled)
[1:ml1] [WRN] [ALL] [Mar 13 16:17:29] motion_init: Subtream does not support GRAY, and original resolution must be modulo of 16
[1:ml1] [NTC] [ENC] [Mar 13 16:46:14] ffmpeg_set_codec: Low fps. Encoding 5 frames into a 10 frames container.
[1:ml1] [NTC] [EVT] [Mar 13 16:46:14] event_newfile: File of type 8 saved to: /mnt/camera/pi2/2020.03.13_16.46.14-01.mp4
[1:ml1] [NTC] [ALL] [Mar 13 16:46:14] motion_detected: Motion detected - starting event 1
[1:ml1] [NTC] [ALL] [Mar 13 16:46:21] mlp_actions: End of event 1
查service状态
sudo service motion status
* motion.service - LSB: Start Motion detection
Loaded: loaded (/etc/init.d/motion; generated)
Active: active (running) since Fri 2020-03-13 16:17:25 AEDT; 38min ago
Docs: man:systemd-sysv-generator(8)
Process: 252 ExecStart=/etc/init.d/motion start (code=exited, status=0/SUCCESS)
Tasks: 3 (limit: 2077)
Memory: 75.7M
CGroup: /system.slice/motion.service
`-345 /usr/bin/motion
Mar 13 16:17:24 pi2 systemd[1]: Starting LSB: Start Motion detection...
Mar 13 16:17:25 pi2 motion[252]: Starting motion detection daemon: motion.
Mar 13 16:17:25 pi2 systemd[1]: Started LSB: Start Motion detection.
Mar 13 16:17:28 pi2 motion[314]: [751240:motion] [NTC] [ALL] conf_load: Processing thread 0 - config file /etc/motion/motion.conf
Mar 13 16:17:28 pi2 motion[314]: [751240:motion] [NTC] [ALL] motion_startup: Motion 4.1.1 Started
Mar 13 16:17:28 pi2 motion[314]: [751240:motion] [NTC] [ALL] motion_startup: Logging to file (/mnt/camera/pi2.log)
|
|