KonradIT / mmt

Media Management Tool - make importing videos/photos from GoPro and other action cameras/drones a little bit more bearable.
http://mmt.camera
Apache License 2.0
106 stars 11 forks source link

keeps the time of imported files #113

Closed inode64 closed 1 year ago

inode64 commented 1 year ago

Currently, the import process when creating the files does not keep the date of the original file

Type:

Camera:

Component:

Checklist before approval:

KonradIT commented 1 year ago

Here I would make a test, maybe using some sample file from the gpmf repo.

inode64 commented 1 year ago

I had already carried out a test with some files that I have to try different combinations

$ LC_ALL=C find -iname *.MP4 -exec stat {} \;

  File: ./2023-02-12/HERO11 Black/Tales Comunitat Valenciana España/videos/5312x2988 23/GX0343-01.MP4
  Size: 596900406   Blocks: 1165824    IO Block: 4096   regular file
Device: 253,4   Inode: 1209006614  Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1011/    fran)   Gid: (  500/   srvdr)
Access: 2023-02-12 13:36:52.000000000 +0100
Modify: 2023-02-12 13:36:52.000000000 +0100
Change: 2023-04-14 18:15:19.403766897 +0200
 Birth: 2023-04-14 18:15:14.371764278 +0200
  File: ./2023-01-07/HERO11 Black/Horta de Sant Joan España/videos/5312x2988 25/GX0244-01.MP4
  Size: 1074825229  Blocks: 2099272    IO Block: 4096   regular file
Device: 253,4   Inode: 159261041   Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1011/    fran)   Gid: (  500/   srvdr)
Access: 2023-01-07 16:41:17.000000000 +0100
Modify: 2023-01-07 16:41:17.000000000 +0100
Change: 2023-04-14 18:15:34.063774489 +0200
 Birth: 2023-04-14 18:15:17.751766038 +0200
  File: ./2023-01-15/HERO11 Black/la Vall d'Uixó España/videos/5312x2988 25/GX0246-01.MP4
  Size: 193231459   Blocks: 377408     IO Block: 4096   regular file
Device: 253,4   Inode: 2707677739  Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1011/    fran)   Gid: (  500/   srvdr)
Access: 2023-01-15 10:30:52.000000000 +0100
Modify: 2023-01-15 10:30:52.000000000 +0100
Change: 2023-04-14 18:15:26.759770715 +0200
 Birth: 2023-04-14 18:15:21.219767841 +0200
  File: ./2023-03-12/HERO11 Black/NoLocation/videos/5312x2988 23/GX0801-01.MP4
  Size: 163795337   Blocks: 319920     IO Block: 4096   regular file
Device: 253,4   Inode: 1747581883  Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1011/    fran)   Gid: (  500/   srvdr)
Access: 2023-03-12 11:16:30.000000000 +0100
Modify: 2023-03-12 11:16:30.000000000 +0100
Change: 2023-04-14 18:15:37.767776398 +0200
 Birth: 2023-04-14 18:15:36.703775850 +0200
  File: ./2022-12-28/HERO11 Black/Vila-real España/videos/5312x2988 29/GX0122-01.MP4
  Size: 133702996   Blocks: 261144     IO Block: 4096   regular file
Device: 253,4   Inode: 665328299   Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1011/    fran)   Gid: (  500/   srvdr)
Access: 2022-12-28 19:54:38.000000000 +0100
Modify: 2022-12-28 19:54:38.000000000 +0100
Change: 2023-04-14 18:19:50.227898866 +0200
 Birth: 2023-04-14 18:19:49.351898463 +0200

inode64 commented 1 year ago

By the way, the Android camera does not use the utils.CopyFile function to copy files