#!/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