LoginSignup
0
0

More than 5 years have passed since last update.

motionのframerate設定

Last updated at Posted at 2016-12-03

motion.confには幾つかの設定があって、framerateも設定ができるみたいです。

# Maximum number of frames to be captured per second.
# Valid range: 2-100. Default: 100 (almost no limit).
framerate 100

使用しているカメラのframerateが30fpsという仕様なので
この設定も30fpsまであげられるかもと思い、30に設定してみたところ、、、
早送りみたいな動画になる。

実験したところ、4あたりまで落とさないと等倍速程度に見えない。
どういうことなんだろう...。
USBカメラから30fpsで入ってきていないということだと、つじつまがあうが。。。
釈然としないがとりあえず見た目重視で、等倍再生したいのでframerateは4程度にしておく。

-(追記)その後実験を行った。motion.confのframerate設定30fpsでデジタル時計を撮影。できた動画をffmpegで静止画切り出ししてjpgに分解。出力されたjpgファイル群の秒を観察。1秒につき3枚程度しか絵がない。3fps。やっぱり体感と同じくらい。そのうち、原因解析したい。

なお、さらに応用編としてtimelapseをやるには、こちらもいじるとよいと思います。
値を大きくしていくほど、大きく間引かれる。

# Minimum time in seconds between capturing picture frames from the camera.
# Default: 0 = disabled - the capture rate is given by the camera framerate.
# This option is used when you want to capture images at a rate lower than 2 per second.
minimum_frame_time 0

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0