The AVI video is sorted incorrectly

Started by dima, February 15, 2020, 01:53:53 AM

Previous topic - Next topic

dima

Hi all,

We use the Moments program from Synology.
I have here an AVI video which is from 2007 and is sorted by 2020. Why?
Can I change the date?


e
ExifTool Version Number         : 11.78
File Name                       : 20070806_12h08m29s.avi
Directory                       : ./2007/2007-08-06
File Size                       : 1823 kB
File Modification Date/Time     : 2020:01:26 20:02:58+01:00
File Access Date/Time           : 2020:02:15 07:41:10+01:00
File Inode Change Date/Time     : 2020:02:12 21:25:01+01:00
File Permissions                : rwxrwxrwx
File Type                       : AVI
File Type Extension             : avi
MIME Type                       : video/x-msvideo
Frame Rate                      : 30
Max Data Rate                   : 2058 kB/s
Frame Count                     : 30
Stream Count                    : 2
Stream Type                     : Video
Video Codec                     : mjpg
Video Frame Rate                : 30
Video Frame Count               : 30
Quality                         : 10000
Sample Size                     : Variable
BMP Version                     : Windows V3
Image Width                     : 640
Image Height                    : 480
Planes                          : 1
Bit Depth                       : 24
Compression                     : MJPG
Image Length                    : 921600
Pixels Per Meter X              : 0
Pixels Per Meter Y              : 0
Num Colors                      : Use BitDepth
Num Important Colors            : All
Audio Codec                     :
Audio Sample Rate               : 11024
Audio Sample Count              : 11024
Encoding                        : Microsoft PCM
Num Channels                    : 1
Sample Rate                     : 11024
Avg Bytes Per Sec               : 11024
Bits Per Sample                 : 8
Date/Time Original              : 2007:08:06 12:08:29
Software                        : CanonMVI02
Image Size                      : 640x480
Megapixels                      : 0.307
Duration                        : 1.00 s

greybeard

Have you considered using Synology Photo Station?  It has more flexible sort options.

dima

We used to do that. We didn't want to have it anymore. There's got to be a way to do this with moments, right?

greybeard

Interesting - it seems that Moments uses DateTimeOriginal in the Timeline for still images but FileModifyDate for avi videos.

You could move the DateTimeOriginal from the video into FileModifyDate using:

exiftool "-filemodifydate<datetimeoriginal" -ext avi DIR

which modifies all the avi files in the directory DIR (you could also do the same thing for one or more files)

(As usual test carefully and back things up)

dima

unfortunately this does not work  :(

admin@NAS:/var/services/homes/Admin/Drive/Moments/2007$ exiftool 2007-08-06/20070806_12h08m29s.avi | grep Date           
File Modification Date/Time     : 2020:01:26 20:02:58+01:00
File Access Date/Time           : 2020:02:15 16:14:59+01:00
File Inode Change Date/Time     : 2020:02:15 16:14:59+01:00
Date/Time Original              : 2007:08:06 12:08:29

admin@NAS:/var/services/homes/Admin/Drive/Moments/2007$ exiftool "-filemodifydate<datetimeoriginal" -ext avi 2007-08-06/
    1 directories scanned
    1 image files updated

admin@NAS:/var/services/homes/Admin/Drive/Moments/2007$ exiftool 2007-08-06/20070806_12h08m29s.avi | grep Date           
File Modification Date/Time     : 2020:01:26 20:02:58+01:00
File Access Date/Time           : 2020:02:15 16:14:59+01:00
File Inode Change Date/Time     : 2020:02:15 16:14:59+01:00
Date/Time Original              : 2007:08:06 12:08:29

admin@NAS:/var/services/homes/Admin/Drive/Moments/2007$

greybeard

Maybe try these:

exiftool  -a -G0:1 -s -time:all 2007-08-06

exiftool  "-filemodifydate<datetimeoriginal" -progress -ext avi 2007-08-06

exiftool  -a -G0:1 -s -time:all 2007-08-06

dima

Unfortunately this does not work either  :(

admin@NAS:/var/services/homes/Admin/Drive/Moments/2007/2007-08-06$ exiftool 20070806_12h08m29s.avi | grep Date           
File Modification Date/Time     : 2020:01:26 20:02:58+01:00
File Access Date/Time           : 2020:02:15 16:52:09+01:00
File Inode Change Date/Time     : 2020:02:15 16:52:09+01:00
Date/Time Original              : 2007:08:06 12:08:29

admin@NAS:/var/services/homes/Admin/Drive/Moments/2007/2007-08-06$ exiftool  -a -G0:1 -s -time:all 2007
0806_12h08m29s.avi
[File:System]   FileModifyDate                  : 2020:01:26 20:02:58+01:00
[File:System]   FileAccessDate                  : 2020:02:15 16:52:09+01:00
[File:System]   FileInodeChangeDate             : 2020:02:15 16:52:09+01:00
[RIFF]          DateTimeOriginal                : 2007:08:06 12:08:29

admin@NAS:/var/services/homes/Admin/Drive/Moments/2007/2007-08-06$ exiftool  "-filemodifydate<datetimeoriginal" -progress -ext avi 20070806_12h08m29s.avi
======== 20070806_12h08m29s.avi [1/1]
    1 image files updated

admin@NAS:/var/services/homes/Admin/Drive/Moments/2007/2007-08-06$ exiftool 20070806_12h08m29s.avi | grep Date                                           
File Modification Date/Time     : 2020:01:26 20:02:58+01:00
File Access Date/Time           : 2020:02:15 16:54:23+01:00
File Inode Change Date/Time     : 2020:02:15 16:54:23+01:00
Date/Time Original              : 2007:08:06 12:08:29
admin@NAS:/var/services/homes/Admin/Drive/Moments/2007/2007-08-06$

StarGeek

There have been previous threads regarding changing the file system times on Synology NAS.  In this thread, it was something called the Drive package that was preventing the change.  You might try disabling some of the programs running on your system (does it have a "safe mode" boot up option?) to see if something is doing the same.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

greybeard

There is also a function in the Moments application (at least when accessed from Windows) to allow the dates to be changed

dima

I don't think it's quite solved yet. I'll continue writing in the other thread. Thanks