Web Interface For Lite Argus Control modules
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 lines
476 B

#!/bin/bash
#v4l2-ctl --device /dev/video0 --list-formats-ext
#v4l2-ctl \
# --device /dev/video0 \
# --set-fmt-video=width=1280,height=720,pixelformat=MJPG \
# --stream-mmap --stream-to=frame.raw --stream-count=1
#v4l2-ctl --device /dev/video0 -set-fmt-video=width=1280,height=720,pixelformat=MJPG
#ffmpeg -y -f rawvideo -pix_fmt mjpg -ss 00:01 -r 1 -s 640x480 -i frame.raw -frames:v 1 output.png
ffmpeg -f video4linux2 -i /dev/video0 -frames:v 3 -update 1 output.jpg