Motion - Log Preview
You are here: Foswiki>Motion Web>LogPreview (11 Sep 2007, DagErlandsson)Edit Attach

Log preview image as different type as jpeg

Description of Patch

I had a problem when I wanted to save all motion pictures and still have a event preview picture logged into the sql database (and not all jpeg images). It wasn't possible as it used the same configuration items, generate jpegs and preview. The type in the database and the configuration item to log it was same.

This patch adds a new configuration item sql_log_preview, works in the same way as all the other sql_log items. It also adds some values to the output_normal item (all_and_best, all_and_center etc.)

The not so good thing with this patch is that the type of saved preview picture in the databse is changed from 1 to 64. this may break some user interfaces. The good ting is that it is more clear how to configure to get the desired result, sql_log_image only say if log "normal" images, sql_log_preview log the preview image. So the preview acts in the same way as snapshot and timelapse.

Installation of Patch

Download the patch file. If it is packed as a gz or tar.gz unpack it first. Then copy it to the motion source directory and issue the command (assuming the patch file is called filename_of_patch_file.diff)

patch < filename_of_patch_file.diff

Then re-build Motion and test the patch.

Change History of Patch

  • 1.0 Initial revision

Discussion and Comments


Topic revision: r1 - 11 Sep 2007, DagErlandsson
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.