Skip to content

Instantly share code, notes, and snippets.

@daddyYukio
Created April 29, 2023 01:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daddyYukio/8c22bae24edaf9dd5efc7e93bfcb0921 to your computer and use it in GitHub Desktop.
Save daddyYukio/8c22bae24edaf9dd5efc7e93bfcb0921 to your computer and use it in GitHub Desktop.
v4l2で1枚のJPEG画像を更新し続けるffmpegの引数説明
引数 説明
-f v4l2 入力フォーマットとしてv4l2を指定
-i /dev/video0 /dev/video0のビデオを入力
-r 2 画像取得のフレームレートを2fpsに設定
-q:v 2 JPEGの品質 範囲は2-31で、31が最も悪い品質
-y 出力を確認せずに上書きする
-f image2 出力フォーマットとしてJPEGを指定
-update 1 出力を更新する
/var/www/html/capture.jpg 出力するJPEGファイルのパス
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment