Date for all Videos is the filesystem file modify date

Johannes Zarl-Zierl johannes at zarl-zierl.at
Sat Jul 22 01:21:38 BST 2023


[Sending again because I noticed you are not on this list]
Hi Victor,

Sorry for the late response - my internet connection during the past week was 
somewhat spotty.

Am Dienstag, 18. Juli 2023, 00:50:59 CEST schrieb Victor Lobo:
> I am a new user starting out with KPhotoAlbum. On initial setup,
> KPhotoAlbum processed my photos and videos and found around 10,000 videos.
> I observe that KPhotoAlbum assigned to each of those videos the filesystem
> File Modify date. My expectation was that KPhotoAlbum would assign a date
> from the video metadata (CreateDate, DateTimeOriginal...) since most of my
> videos have that populated and those dates are correct (as compared to file
> modify date).
> 
> This behavior can also be observed in the KPhotoAlbum demo. The demo
> contains a video "movie.avi" with DateTimeOriginal value "2006:10:29
> 14:33:55" reported by ExifTool. digiKam also displays  "2006:10:29
> 14:33:55".  If I do one of the below then KPhotoAlbum assigns the file
> system file modify date (current date) to the video instead of "2006:10:29
> 14:33:55":
> 1. Select the movie file in the demo and then do (Maintenance --> Read Exif
> Info from Files... --> Check ONLY "Update Image Date" --> OK)
> OR
> 2. Copy the movie file from the demo to a new KPhotoAlbum database

I was pretty sure that this used to work. I probably did not notice because 
usually the file modification time is the same as the time in the metadata. In 
either case, I see this as a bug that needs to be fixed.

> Is assigning the file modify date to all videos the expected functionality
> in KPhotoAlbum? If not, then what should I do to enable KPhotoAlbum to
> assign dates to videos from the video metadata?

It is expected functionality, but until the issue is fixed you may want to 
adjust your file modification dates as a workaround:

exiftool -FileModifyDate\<DateTimeOriginal movie.avi

or for a whole directory tree:
find /Images -regex '.*\.\(avi\)\|\(mp4\)' -exec exiftool 
-FileModifyDate\<DateTimeOriginal \{\} \;


> I am on Opensuse Tumbleweed; KPhotoAlbum 5.11.0 (same behavior seen in
> 5.10.0).

Thanks for reporting the issue! If you could post the same information as in 
your mail as bug on bugs.kde.org for kphotoalbum, that would really help me...

Cheers,
  Johannes




More information about the KPhotoAlbum mailing list