我有点困惑,为什么 nemo 会报告某些文件没有设置日期。这意味着我无法按日期排序文件。这种情况只发生在我将要添加的 GoPro 视频中。但检查时我发现这Media Create Date
确实是正确的录制时间。
我如何获得它以便在对脚本文件进行排序时在 nemo 和 bash 中显示正确的日期:
日期不详
(base) hutber@hutber:/media/hutber/3834-3762/DCIM/100GOPRO$ exiftool GX055351.MP4
ExifTool Version Number : 11.88
File Name : GX055351.MP4
Directory : .
File Size : 3.7 GB
File Modification Date/Time : 0000:00:00 00:00:00
File Access Date/Time : 2022:01:12 22:32:31+00:00
File Inode Change Date/Time : 0000:00:00 00:00:00
File Permissions : rwxrwxrwx
File Type : MP4
File Type Extension : mp4
MIME Type : video/mp4
Major Brand : MP4 v1 [ISO 14496-1:ch13]
Minor Version : 2013.10.18
Compatible Brands : mp41
Media Data Size : 4004174743
Media Data Offset : 36
Movie Header Version : 0
Create Date : 2022:01:11 19:08:56
Modify Date : 2022:01:11 19:08:56
Time Scale : 120000
Duration : 0:05:21
Preferred Rate : 1
Preferred Volume : 100.00%
Preview Time : 0 s
Preview Duration : 0 s
Poster Time : 0 s
Selection Time : 0 s
Selection Duration : 0 s
Current Time : 0 s
Next Track ID : 5
Lens Serial Number : LKO1062003401692
Camera Serial Number Hash : 9ea9a8bdbd36f956eaa1b923d1cf581e
Firmware Version : H21.01.01.16.00
Camera Serial Number : C3461324767792
Camera Model Name : HERO10 Black
Auto Rotation : Down
Digital Zoom : No
Pro Tune : On
White Balance : AUTO
Sharpness : MED
Color Mode : NATURAL
Auto ISO Max : 1600
Auto ISO Min : 100
Exposure Compensation : 0.0
Rate :
Field Of View : Unknown (N)
Electronic Image Stabilization : HS Boost
Audio Setting : AUTO
Device Name : Highlights
Track Header Version : 0
Track Create Date : 2022:01:11 19:08:56
Track Modify Date : 2022:01:11 19:08:56
Track ID : 1
Track Duration : 0:05:21
Track Layer : 0
Track Volume : 0.00%
Image Width : 3840
Image Height : 2160
Graphics Mode : srcCopy
Op Color : 0 0 0
Compressor ID : hvc1
Source Image Width : 3840
Source Image Height : 2160
X Resolution : 72
Y Resolution : 72
Compressor Name : GoPro H.265 encoder
Bit Depth : 24
Video Frame Rate : 119.88
Time Code : 3
Balance : 0
Audio Format : mp4a
Audio Channels : 2
Audio Bits Per Sample : 24
Audio Sample Rate : 48000
Text Font : Unknown (21)
Text Face : Plain
Text Size : 10
Text Color : 0 0 0
Background Color : 65535 65535 65535
Font Name : Helvetica
Other Format : tmcd
Matrix Structure : 1 0 0 0 1 0 0 0 1
Media Header Version : 0
Media Create Date : 2022:01:11 19:08:56
Media Modify Date : 2022:01:11 19:08:56
Media Time Scale : 1000
Media Duration : 0:05:21
Handler Class : Media Handler
Handler Type : NRT Metadata
Handler Description : GoPro MET
Gen Media Version : 0
Gen Flags : 0 0 0
Gen Graphics Mode : srcCopy
Gen Op Color : 0 0 0
Gen Balance : 0
Meta Format : gpmd
Warning : [minor] The ExtractEmbedded option may find more tags in the media data
Image Size : 3840x2160
Megapixels : 8.3
Avg Bitrate : 99.7 Mbps
Rotation : 180
录音时间相同,但日期正确
(base) hutber@hutber:/media/hutber/3834-3762/DCIM/100GOPRO$ exiftool GX075351.MP4
ExifTool Version Number : 11.88
File Name : GX075351.MP4
Directory : .
File Size : 3.7 GB
File Modification Date/Time : 2022:01:11 19:46:27+00:00
File Access Date/Time : 2022:01:12 22:32:33+00:00
File Inode Change Date/Time : 2022:01:11 19:46:27+00:00
File Permissions : rwxrwxrwx
File Type : MP4
File Type Extension : mp4
MIME Type : video/mp4
Major Brand : MP4 v1 [ISO 14496-1:ch13]
Minor Version : 2013.10.18
Compatible Brands : mp41
Media Data Size : 4004313141
Media Data Offset : 36
Movie Header Version : 0
Create Date : 2022:01:11 19:08:56
Modify Date : 2022:01:11 19:08:56
Time Scale : 120000
Duration : 0:05:21
Preferred Rate : 1
Preferred Volume : 100.00%
Preview Time : 0 s
Preview Duration : 0 s
Poster Time : 0 s
Selection Time : 0 s
Selection Duration : 0 s
Current Time : 0 s
Next Track ID : 5
Lens Serial Number : LKO1062003401692
Camera Serial Number Hash : 9ea9a8bdbd36f956eaa1b923d1cf581e
Firmware Version : H21.01.01.16.00
Camera Serial Number : C3461324767792
Camera Model Name : HERO10 Black
Auto Rotation : Down
Digital Zoom : No
Pro Tune : On
White Balance : AUTO
Sharpness : MED
Color Mode : NATURAL
Auto ISO Max : 1600
Auto ISO Min : 100
Exposure Compensation : 0.0
Rate :
Field Of View : Unknown (N)
Electronic Image Stabilization : HS Boost
Audio Setting : AUTO
Device Name : Highlights
Track Header Version : 0
Track Create Date : 2022:01:11 19:08:56
Track Modify Date : 2022:01:11 19:08:56
Track ID : 1
Track Duration : 0:05:21
Track Layer : 0
Track Volume : 0.00%
Image Width : 3840
Image Height : 2160
Graphics Mode : srcCopy
Op Color : 0 0 0
Compressor ID : hvc1
Source Image Width : 3840
Source Image Height : 2160
X Resolution : 72
Y Resolution : 72
Compressor Name : GoPro H.265 encoder
Bit Depth : 24
Video Frame Rate : 119.88
Time Code : 3
Balance : 0
Audio Format : mp4a
Audio Channels : 2
Audio Bits Per Sample : 24
Audio Sample Rate : 48000
Text Font : Unknown (21)
Text Face : Plain
Text Size : 10
Text Color : 0 0 0
Background Color : 65535 65535 65535
Font Name : Helvetica
Other Format : tmcd
Matrix Structure : 1 0 0 0 1 0 0 0 1
Media Header Version : 0
Media Create Date : 2022:01:11 19:08:56
Media Modify Date : 2022:01:11 19:08:56
Media Time Scale : 1000
Media Duration : 0:05:21
Handler Class : Media Handler
Handler Type : NRT Metadata
Handler Description : GoPro MET
Gen Media Version : 0
Gen Flags : 0 0 0
Gen Graphics Mode : srcCopy
Gen Op Color : 0 0 0
Gen Balance : 0
Meta Format : gpmd
Warning : [minor] The ExtractEmbedded option may find more tags in the media data
Image Size : 3840x2160
Megapixels : 8.3
Avg Bitrate : 99.7 Mbps
Rotation : 180
损坏文件的状态:
14_Training$ stat ./GX055351.MP4
File: ./GX055351.MP4
Size: 4004635826 Blocks: 7821560 IO Block: 4096 regular file
Device: 821h/2081d Inode: 19475 Links: 1
Access: (0777/-rwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2022-01-12 23:32:35.441047700 +0000
Modify: 1970-01-01 01:00:00.000000000 +0100
Change: 2022-01-12 23:32:33.504918500 +0000
Birth: -
答案1
FS 时间戳与 EXIF
您的文件管理器使用 FS 时间戳。(与文件数据分开存储)
而 exif 元数据是其一部分文件数据。
exif 信息
为每个文件加载 exif 元数据(日期等)比仅使用 FS 时间戳要慢得多。
配置选项或插件可能允许您添加 exif 功能,如排序/工具提示信息/等。
FS 差异
并非所有文件系统都以相同的方式使用时间戳。有些文件系统不支持相同的时间戳,或者配置为不使用所有时间戳。
只有受支持的时间戳才可以复制到任何目标文件系统,并且只有它们确实存在。
确保您的相机写入
modified
/accessed
时间戳,而不仅仅是created
安装操作系统或设置外部存储时,请确保使用支持所需功能的 FS 格式。(例如时间戳)。
确保安装选项未设置为忽略时间戳或您需要的其他功能。