A simple web UI for motion
git clone
Log | Files | Refs | LICENSE

commit 85252ee9bc33009157d46874ecd508ec6b895f16
parent 68ac35d1a5120476c0caa1bfd34c923714ca569f
Author: Brian C. Lane <>
Date:   Fri,  9 Apr 2021 07:38:20 -0700

queue: Use h264 encoder instead of libvpx

In tests it is 3-4x faster than webm and I am having problems with it
creating new videos in a reasonable amount of time. Current versions of
firefox, including on the iPhone, appear to play the video just fine.

Also scale it down to 1280x960, which speeds up the encoding even more.

Msrc/strix/ | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/strix/ b/src/strix/ @@ -58,8 +58,8 @@ def process_event(log: structlog.BoundLogger, base_dir: str, event: str) -> None except Exception as e: log.debug("Failed to move debug images into ./debug/") - ffmpeg_cmd = ["ffmpeg", "-f", "image2", "-pattern_type", "glob", "-framerate", "5", "-i", "*.jpg", "-c:v", - "libvpx", "-b:v", "2M", "video.webm"] + ffmpeg_cmd = ["ffmpeg", "-f", "image2", "-pattern_type", "glob", "-framerate", "5", "-i", "*.jpg", + "-vf", "scale=1280:-2", "-c:v", "h264", "-b:v", "2M", "video.m4v"] # Make a movie out of the jpg images with ffmpeg try: