Motion - Bug Report 2006x 11x 03x 132615
You are here: Foswiki>Motion Web>BugReports>BugReport2006x11x03x132615 (18 Nov 2006, AngelCarpintero)Edit Attach

BUG: error on timelaps filenames

Once the timelapse time starts over, the new compiled filename incidentially gets a double suffix like "timelaps.mpg.mpg". I have 4 cams, and it occurs only with two or three cams. Rollover ist at 00:00 each day (midnight).
Part of motion.conf:
# File path for timelapse mpegs relative to target_dir
# Default: %Y%m%d-timelapse
# Default value is near equivalent to legacy oldlayout option
# For Motion 3.0 compatible mode choose: %Y/%m/%d-timelapse
# File extension .mpg is automatically added so do not include this
timelapse_filename Events/%Y/%m/%d/cam2-timelapse
Listing in directory then looks like this:
today:
-rw-r--r--   1 vip  vip  30437630 Nov  3 14:30 cam3-timelapse.mpg.mpg
-rw-r--r--   1 vip  vip  24378955 Nov  3 14:30 cam1-timelapse.mpg.mpg
-rw-r--r--   1 vip  vip  49222286 Nov  3 14:30 cam2-timelapse.mpg
-rw-r--r--   1 vip  vip  25692235 Nov  3 14:30 cam0-timelapse.mpg.mpg

last day:
-rw-r--r--  1 vip vip  5710660 Nov  1 05:56 cam0-timelapse.mpg
-rw-r--r--  1 vip vip 47424410 Nov  2 00:00 cam3-timelapse.mpg.mpg
-rw-r--r--  1 vip vip 75376362 Nov  2 00:00 cam2-timelapse.mpg.mpg
-rw-r--r--  1 vip vip 41512900 Nov  2 00:00 cam1-timelapse.mpg.mpg

Errors in syslog:
Nov  3 00:00:00 wormhole2 motion: [1] avcodec_open - could not open codec: File exists
Nov  3 00:00:00 wormhole2 motion: [1] ffopen_open error creating file [..../Events/2006/11/03/cam0-timelapse.mpg]: File exists

Worth to mention, that actually the file does not exist, since the filenam mask always creates new directories per day, see above. motion.conf for each thread is quite the same, except cam # (I didn't get the time to put in to the central file with the new placholder).

Paste in your error messages, config settings, terminal window output etc in this text field.

Environment

Motion version: 3.2.7
ffmpeg version: current
Shared libraries: ffmpeg
Server OS: SuSE 9.2, 2.6.8-24.10

-- AxelAmthor - 03 Nov 2006

Follow up

Are you sure that your motion version is 3.2.7 ?

ffmpeg_open errors give a detailed information about what type of file is creating :

ffopen_open error creating (new) file
ffopen_open error creating (motion) file 
ffopen_open error creating (timelapse) file

So seems that you are running a older version, please check it.

-- AngelCarpintero - 04 Nov 2006

Follow up

You're right, actually it is version 3.2.6 Are there any fixes according filenames? I'll check as well ...

-- AxelAmthor - 07 Nov 2006

Fix record

I can't reproduce that error in current version ( 3.2.7 ) , open a new bug if problem remains.

-- AngelCarpintero - 18 Nov 2006
Topic revision: r4 - 18 Nov 2006, AngelCarpintero
Copyright © 1999-2019 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.