View Issue Details

IDProjectCategoryView StatusLast Update
0004368Linux server software[All Projects] Generalpublic2023-11-23 21:06
ReporterDigitalMy 
PrioritynormalSeverityminorReproducibilityhave not tried
Status assignedResolutionopen 
Summary0004368: Video recording from USB camera with motion app
DescriptionUse raspberry PI 3 B+ model hardware and SD card

install motion
install motioneye
TagsNo tags attached.

Activities

DigitalMy

2021-08-07 17:24

administrator   ~0007064

apt install motion

DigitalMy

2021-08-07 17:28

administrator   ~0007065

Last edited: 2021-08-07 17:34

View 3 revisions

settings in /etc/motion/motion.conf

snapshot_interval 3600
target_dir /share/motion/
snapshot_filename %Y/%m/%d/%Y%m%d%H%M%S-snapshot-%v-%q
picture_filename %Y/%m/%d/%Y%m%d%H%M%S-motion-%v-%q
movie_filename %Y/%m/%d/%Y%m%d%H%M%S-%v-00
timelapse_filename %Y/%m/%d/%Y%m%d-timelapse

stream_port 8082
stream_motion on
stream_localhost off
webcontrol_port 8083
webcontrol_localhost off
webcontrol_html_output on

DigitalMy

2023-10-31 23:25

administrator   ~0012238

Last edited: 2023-11-05 02:44

View 6 revisions

sudo ls /dev/video*
raspistill -o Desktop/image.jpg
raspivid -o Desktop/video.h264
sudo modprobe bcm2835-v4l2
v4l2-ctl -V
pkill raspivid

set in file:
/etc/systemd/system/raspivid.service

[Unit]
Description=raspivid
After=network.target

[Service]
Type=simple
ExecStart=/usr/bin/raspivid -w 800 -h 600 -b 500000 -l -o tcp://0.0.0.0:8081 -v -t 0 -fps 5 --intra 5 -fl -cd MJPEG --exposure auto --awb auto --metering average --rotation 270
Restart=always
RestartSec=1

[Install]
WantedBy=default.target

sudo systemctl start raspivid
ps aux | grep -i raspivid
ps aux | grep -i raspivid | grep -v grep