drewnoakes/metadata-extractor

How to deal with incorrect quicktime timestamps?

オープン

#527 opened on 2021/02/03

 (5 件のコメント) (0 件のリアクション) (0 人の担当者)Java (470 件のフォーク)batch import
bugformat-movhelp wanted

Repository metrics

Stars
 (2,411 個のスター)
PR merge metrics
 (平均マージ 3d 2h) (30d で 2 merged PRs)

説明

Per https://exiftool.org/forum/index.php?topic=7911.msg40318#msg40318:

The problem lies in the specification of the QuickTime date fields. These are 32 bit integers measuring the time in seconds since 1904, however many brain dead programs (as Phil rightly calls them) used the “unix” standard of 1970 as starting point. To cater for this (common) error, Phil decided to assume 1970 as starting point for dates before 1970 (when counting from 1904). Effectively this means exiftool, by default, does not show you the correct date for dates < 1970.

This brings up some questions:

  • Do we apply the same adjustment automatically in this library?
  • Do we document this recommended behavior in the Javadoc?
  • Do we add an option to optionally enable this behavior?

I mention this because I'm getting some MP4 timestamps returning 1946 with this library and 2012 with exiftool and I know for a fact the latter is correct. I am applying the above adjustment manually in the application layer but it took me a while to track down the cause.

コントリビューターガイド