Author Topic: The AVI video is sorted incorrectly  (Read 134 times)

dima

  • Jr. Member
  • **
  • Posts: 18
The AVI video is sorted incorrectly
« on: February 15, 2020, 01:53:53 AM »
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?

Code: [Select]
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

  • Sr. Member
  • ****
  • Posts: 100
Re: The AVI video is sorted incorrectly
« Reply #1 on: February 15, 2020, 03:35:35 AM »
Have you considered using Synology Photo Station?  It has more flexible sort options.

dima

  • Jr. Member
  • **
  • Posts: 18
Re: The AVI video is sorted incorrectly
« Reply #2 on: February 15, 2020, 03:50:03 AM »
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

  • Sr. Member
  • ****
  • Posts: 100
Re: The AVI video is sorted incorrectly
« Reply #3 on: February 15, 2020, 07:30:25 AM »
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

  • Jr. Member
  • **
  • Posts: 18
Re: The AVI video is sorted incorrectly
« Reply #4 on: February 15, 2020, 10:16:33 AM »
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

  • Sr. Member
  • ****
  • Posts: 100
Re: The AVI video is sorted incorrectly
« Reply #5 on: February 15, 2020, 10:47:10 AM »
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

  • Jr. Member
  • **
  • Posts: 18
Re: The AVI video is sorted incorrectly
« Reply #6 on: February 15, 2020, 10:55:57 AM »
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

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 3129
Re: The AVI video is sorted incorrectly
« Reply #7 on: February 15, 2020, 11:19:09 AM »
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.
Troubleshooting hints:
* When posting, include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).
* Double all percent signs (%) in a Windows batch file.
* If your GPS coords are negative, make sure and set the GpsLatitudeRef and GpsLongitudeRef tags correctly.

greybeard

  • Sr. Member
  • ****
  • Posts: 100
Re: The AVI video is sorted incorrectly
« Reply #8 on: February 15, 2020, 11:55:30 AM »
There is also a function in the Moments application (at least when accessed from Windows) to allow the dates to be changed

dima

  • Jr. Member
  • **
  • Posts: 18
Re: The AVI video is sorted incorrectly
« Reply #9 on: February 16, 2020, 03:30:00 AM »
I don't think it's quite solved yet. I'll continue writing in the other thread. Thanks