NOTE: Motion 3.2.12 has been released

jpeg_filename

  • Type: String
  • Range / Valid values: Max 4095 characters
  • Default: %v-%Y%m%d%H%M%S-%q
  • Option Topic

File path for motion triggered images (jpeg or ppm) relative to target_dir. Value 'preview' makes a jpeg filename with the same name body as the associated saved mpeg movie file.

Default value is equivalent to legacy 'oldlayout' option. For Motion 3.0 compatible mode (directories based on date and time) choose: %Y/%m/%d/%H/%M/%S-%q

This option uses conversion specifiers which are codes that start by % and then a letter. The conversion specifiers used has the same function as for the C function strftime (3). The most commonly used are:

  • %Y = year
  • %m = month as two digits
  • %d = date
  • %H = hour
  • %M = minute
  • %S = second
  • %T = HH:MM:SS

These are unique to motion

  • %v = event
  • %q = frame number
  • %t = thread (camera) number
  • %D = changed pixels
  • %N = noise level
  • %i = width of motion area
  • %J = height of motion area
  • %K = X coordinate of motion center
  • %L = Y coordinate of motion center
  • %C = value defined by text_event

If you are happy with the directory structures the way they were in earlier versions of motion use %v-%Y%m%d%H%M%S-%q for 'oldlayout on' and %Y/%m/%d/%H/%M/%S-%q for 'oldlayout off'.

The value 'preview' only works when 'output_normal' is set to 'best'. It makes Motion name the best preview jpeg file (image with most changed pixels during the event) with the same body name as the mpeg movie created during the same event. The purpose is to create a good single image that represents the saved mpeg moview so you can decide if you want to see it and spend time downloading it from a web page.

Comments


jpeg_filename preview creates a jpeg called 'preview.jpg' - reading this wiki entry it seems like it should make a .jpg based on what you have set for movie_filename... or am I missing something?

-- DavidPickard - 28 Jul 2010


ConfigOptionForm edit

Option jpeg_filename
Type String
Range Max 4095 characters
Default %v-%Y%m%d%H%M%S-%q
Description File path for motion triggered images (jpeg or ppm) relative to target_dir. Value 'preview' makes a jpeg filename with the same name body as the associated saved mpeg movie file.
Group Target Directories and Filenames
Topic revision: r6 - 28 Jul 2010 - 15:51:52 - DavidPickard
 
Motion - Config Option Jpeg Filename
Copyright © 1999-2010 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.