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.

14 lines
476 B

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