我想用 exiftool 更改文件名。到“将时区 (+9) 添加到 CreateDate 的结果”

I want to change the file name with exiftool. To “Result of adding time zone (+9) to CreateDate”

我用索尼相机拍了一段视频。 创建了一个扩展名为 .mp4 的文件。 我想将拍摄日期和时间更改为文件名。 环境是Windows10.


我试过的

我首先将 .mp4 视频文件拖放到 exiftool (-k) .exe。

ExifTool Version Number         : 11.76
File Name                       : C0001.MP4
File Modification Date/Time     : 2019:10:23 13:10:49+09:00
File Access Date/Time           : 2019:11:17 21:50:24+09:00
File Creation Date/Time         : 2019:11:17 21:50:21+09:00
MIME Type                       : video/mp4
Major Brand                     : Sony XAVC
Create Date                     : 2019:10:23 04:10:32
Modify Date                     : 2019:10:23 04:10:32
Track Create Date               : 2019:10:23 04:10:32
Track Modify Date               : 2019:10:23 04:10:32
Media Create Date               : 2019:10:23 04:10:32
Media Modify Date               : 2019:10:23 04:10:32
Time Zone                       : +09:00
Last Update                     : 2019:10:23 13:10:32+09:00
Creation Date Value             : 2019:10:23 13:10:32+09:00

然后我在 Windows 10 命令提示符下键入以下命令:

C:\hoge>"exiftool(-k).exe" -r "-FileName<CreateDate" -d "%Y-%m-%d_%H-%M-%S - %%f.%%e" C:\hoge
Warning: [minor] The ExtractEmbedded option may find more tags in the movie data - C:/hoge/C0001.MP4
Warning: Error removing old file - C:/hoge/C0001.MP4
    1 directories scanned
    1 image files updated
-- press RETURN --

创建了以下文件。

2019-10-23_04-10-32 - C0001.MP4


如何输出以下文件?

我不知道如何将时区 (+9) 添加到 CreateDate。

2019_1023_131032.MP4

如果时区 (+09:00) 是您正在使用的计算机上的本地时间,则将 -api QuickTimeUTC 添加到命令中。这将让 exiftool 知道应该写为 UTC 时间的 CreateDate 已正确写入并将其调整为本地时间。许多旧相机会将时间戳记为本地时间而不是 UTC。

如果时区与本地计算机不同,您可以使用的另一个选项是 GlobalTimeShift option。在您的示例中,您可以将 -GlobalTimeShift 9 添加到命令中。