on_movie_end

  • Type: String
  • Range / Valid values: Max 4095 characters
  • Default: Not defined
  • Option Topic

Command to be executed when an ffmpeg movie is closed at the end of an event. You can use Conversion Specifiers and spaces as part of the command. Use %f for passing filename (with full path) to the command.

Full path name of the program/script.

This can be any type of program or script. Remember to set the execution bit in the ACL and if it is a script type program such as perl or bash also remember the shebang line (e.g. #!/user/bin/perl) as the first line of the script.

The command is run when an event is over. I.e. the number of seconds defined by the time 'gap' has passed since the last detection of motion and motion closes the mpeg file.

This option was previously called onffmpegclose.

Note that from Motion 3.2.4 the path name of the picture file is no longer appended to the command. Instead you can use the conversion specifier %f to insert the picture filename (full path) anywhere in the command.

Most common conversion specifiers

  • %Y = year, %m = month, %d = date
  • %H = hour, %M = minute, %S = second
  • %v = event
  • %q = frame number
  • %t = thread (camera) number
  • %D = changed pixels
  • %N = noise level
  • %i and %J = width and height of motion area
  • %K and %L = X and Y coordinates of motion center
  • %C = value defined by text_event
  • %f = filename with full path
  • %n = number indicating filetype

Comments


after a movie is complete i need to delete the jpeg files, because if i want to watch the movie in the directory, it takes long time to find it, too much jpeg images!!! Than i use a script to delete all the jpeg files, but i'm not sure if i should use that script with "on_movie_end", "on_events_end", placed in any thread.conf.

-- AntonioChiuchiolo - 05 May 2009


...OR place in motion.conf "output_normal off" (to not save pictures when motion is detected)... The movies created with ffmpeg ("ffmpeg_cap_new on" in motion.conf) are independent from pictures produced when motion is detected.

-- FlorinAnton - 06 May 2009


ConfigOptionForm edit

Option on_movie_end
Type String
Range Max 4095 characters
Default Not defined
Description Command to be executed when an ffmpeg movie is closed at the end of an event. You can use Conversion Specifiers and spaces as part of the command. Use %f for passing filename (with full path) to the command.
Group External Commands
Topic revision: r6 - 06 May 2009 - 22:21:29 - FlorinAnton
 
Motion - Config Option On Movie End
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.