Backend: Add testdata for json files belonging to videos with information about camera

This commit is contained in:
Theresa Gresch 2020-09-23 16:36:55 +02:00
parent 226f218f80
commit f8e2b5800f
3 changed files with 254 additions and 0 deletions

81
internal/meta/testdata/GOPR0533.json vendored Normal file
View file

@ -0,0 +1,81 @@
[{
"SourceFile": "/photoprism/originals/1_noch importieren/141GOPRO/GOPR0533.MP4",
"ExifToolVersion": 10.80,
"FileName": "GOPR0533.MP4",
"Directory": "/photoprism/originals/1_noch importieren/141GOPRO",
"FileSize": "301 MB",
"FileModifyDate": "2020:07:15 16:34:24+00:00",
"FileAccessDate": "2020:07:16 21:11:17+00:00",
"FileInodeChangeDate": "2020:07:15 18:42:35+00:00",
"FilePermissions": "rwxr-xr-x",
"FileType": "MP4",
"FileTypeExtension": "mp4",
"MIMEType": "video/mp4",
"MajorBrand": "MP4 v1 [ISO 14496-1:ch13]",
"MinorVersion": "2013.10.18",
"CompatibleBrands": ["mp41"],
"MovieDataSize": 315410441,
"MovieDataOffset": 28,
"MovieHeaderVersion": 0,
"CreateDate": "2020:07:15 18:33:43",
"ModifyDate": "2020:07:15 18:33:43",
"TimeScale": 120000,
"Duration": "0:00:41",
"PreferredRate": 1,
"PreferredVolume": "100.00%",
"PreviewTime": "0 s",
"PreviewDuration": "0 s",
"PosterTime": "0 s",
"SelectionTime": "0 s",
"SelectionDuration": "0 s",
"CurrentTime": "0 s",
"NextTrackID": 5,
"FirmwareVersion": "HD5.02.02.60.00",
"LensSerialNumber": "LAE6103015102255",
"SerialNumberHash": "918d59bec3935f13280dc732d3c56999",
"TrackHeaderVersion": 0,
"TrackCreateDate": "2020:07:15 18:33:43",
"TrackModifyDate": "2020:07:15 18:33:43",
"TrackID": 1,
"TrackDuration": "0:00:41",
"TrackLayer": 0,
"TrackVolume": "0.00%",
"ImageWidth": 1920,
"ImageHeight": 1080,
"GraphicsMode": "srcCopy",
"OpColor": "0 0 0",
"CompressorID": "avc1",
"SourceImageWidth": 1920,
"SourceImageHeight": 1080,
"XResolution": 72,
"YResolution": 72,
"CompressorName": "GoPro AVC encoder",
"BitDepth": 24,
"ColorRepresentation": "nclx 1 1 1",
"VideoFrameRate": 119.88,
"Balance": 0,
"AudioFormat": "mp4a",
"AudioChannels": 2,
"AudioBitsPerSample": 16,
"AudioSampleRate": 48000,
"Warning": "[minor] The ExtractEmbedded option may find more tags in the movie data",
"MatrixStructure": "1 0 0 0 1 0 0 0 1",
"MediaHeaderVersion": 0,
"MediaCreateDate": "2020:07:15 18:33:43",
"MediaModifyDate": "2020:07:15 18:33:43",
"MediaTimeScale": 120000,
"MediaDuration": "0:00:41",
"HandlerClass": "Media Handler",
"HandlerType": "NRT Metadata",
"HandlerDescription": "GoPro SOS",
"GenMediaVersion": 0,
"GenFlags": "0 0 0",
"GenGraphicsMode": "srcCopy",
"GenOpColor": "0 0 0",
"GenBalance": 0,
"MetaFormat": "fdsc",
"AvgBitrate": "60.1 Mbps",
"ImageSize": "1920x1080",
"Megapixels": 2.1,
"Rotation": 0
}]

80
internal/meta/testdata/P7250006.json vendored Normal file
View file

@ -0,0 +1,80 @@
[{
"SourceFile": "/photoprism/originals/2018/P7250006.MOV",
"ExifToolVersion": 11.88,
"FileName": "P7250006.MOV",
"Directory": "/photoprism/originals/2018/",
"FileSize": "41 MB",
"FileModifyDate": "2018:07:25 09:18:58+00:00",
"FileAccessDate": "2020:09:21 07:16:36+00:00",
"FileInodeChangeDate": "2018:07:26 09:09:50+00:00",
"FilePermissions": "rwxr-xr-x",
"FileType": "MOV",
"FileTypeExtension": "mov",
"MIMEType": "video/quicktime",
"MajorBrand": "Apple QuickTime (.MOV/QT)",
"MinorVersion": "2011.7.0",
"CompatibleBrands": ["qt "],
"MovieHeaderVersion": 0,
"CreateDate": "2018:07:25 11:18:42",
"ModifyDate": "2018:07:25 11:18:42",
"TimeScale": 90000,
"Duration": "15.02 s",
"PreferredRate": 1,
"PreferredVolume": "100.00%",
"PreviewTime": "0 s",
"PreviewDuration": "0 s",
"PosterTime": "0 s",
"SelectionTime": "0 s",
"SelectionDuration": "0 s",
"CurrentTime": "0 s",
"NextTrackID": 3,
"TrackHeaderVersion": 0,
"TrackCreateDate": "2018:07:25 11:18:42",
"TrackModifyDate": "2018:07:25 11:18:42",
"TrackID": 1,
"TrackDuration": "15.02 s",
"TrackLayer": 0,
"TrackVolume": "0.00%",
"ImageWidth": 1920,
"ImageHeight": 1080,
"ChapterListTrackID": 0,
"GraphicsMode": "srcCopy",
"OpColor": "0 0 0",
"CompressorID": "avc1",
"SourceImageWidth": 1920,
"SourceImageHeight": 1080,
"XResolution": 72,
"YResolution": 72,
"BitDepth": 24,
"VideoFrameRate": 29.97,
"MatrixStructure": "1 0 0 0 1 0 0 0 1",
"MediaHeaderVersion": 0,
"MediaCreateDate": "2018:07:25 11:18:42",
"MediaModifyDate": "2018:07:25 11:18:42",
"MediaTimeScale": 48000,
"MediaDuration": "15.04 s",
"MediaLanguageCode": "jpn",
"Balance": 0,
"HandlerClass": "Data Handler",
"HandlerType": "Alias Data",
"AudioFormat": "sowt",
"AudioChannels": 2,
"AudioBitsPerSample": 16,
"AudioSampleRate": 48000,
"Make": "OLYMPUS DIGITAL CAMERA",
"Model": "E-PL7",
"DateTime1": "Wed Jul 25 11:18:42 2018",
"DateTime2": "Wed Jul 25 11:18:42 2018",
"ThumbnailWidth": 160,
"ThumbnailHeight": 120,
"ThumbnailLength": 12115,
"ThumbnailImage": "(Binary data 12115 bytes, use -b option to extract)",
"PreviewImageLength": 73414,
"PreviewImage": "(Binary data 73414 bytes, use -b option to extract)",
"MediaDataSize": 42234538,
"MediaDataOffset": 917504,
"ImageSize": "1920x1080",
"Megapixels": 2.1,
"AvgBitrate": "22.5 Mbps",
"Rotation": 0
}]

93
internal/meta/testdata/P9150300.json vendored Normal file
View file

@ -0,0 +1,93 @@
[{
"SourceFile": "/photoprism/originals/2020/Benny 40er/P9150300.MOV",
"ExifToolVersion": 11.88,
"FileName": "P9150300.MOV",
"Directory": "/photoprism/originals/2020/Benny 40er",
"FileSize": "717 MB",
"FileModifyDate": "2020:09:15 16:04:44+00:00",
"FileAccessDate": "2020:09:21 06:06:17+00:00",
"FileInodeChangeDate": "2020:09:16 20:17:10+00:00",
"FilePermissions": "rwxr-xr-x",
"FileType": "MOV",
"FileTypeExtension": "mov",
"MIMEType": "video/quicktime",
"MajorBrand": "Apple QuickTime (.MOV/QT)",
"MinorVersion": "2011.7.0",
"CompatibleBrands": ["qt "],
"MovieHeaderVersion": 0,
"CreateDate": "2020:09:15 18:02:47",
"ModifyDate": "2020:09:15 18:02:47",
"TimeScale": 180000,
"Duration": "0:01:55",
"PreferredRate": 1,
"PreferredVolume": "100.00%",
"PreviewTime": "0 s",
"PreviewDuration": "0 s",
"PosterTime": "0 s",
"SelectionTime": "0 s",
"SelectionDuration": "0 s",
"CurrentTime": "0 s",
"NextTrackID": 4,
"TrackHeaderVersion": 0,
"TrackCreateDate": "2020:09:15 18:02:47",
"TrackModifyDate": "2020:09:15 18:02:47",
"TrackID": 1,
"TrackDuration": "0:01:55",
"TrackLayer": 0,
"TrackVolume": "0.00%",
"ImageWidth": 1920,
"ImageHeight": 1080,
"ChapterListTrackID": 0,
"GraphicsMode": "srcCopy",
"OpColor": "0 0 0",
"CompressorID": "avc1",
"SourceImageWidth": 1920,
"SourceImageHeight": 1080,
"XResolution": 72,
"YResolution": 72,
"BitDepth": 24,
"VideoFrameRate": 59.94,
"TimeCode": 3,
"Balance": 0,
"AudioFormat": "sowt",
"AudioChannels": 2,
"AudioBitsPerSample": 16,
"AudioSampleRate": 48000,
"MatrixStructure": "1 0 0 0 1 0 0 0 1",
"MediaHeaderVersion": 0,
"MediaCreateDate": "2020:09:15 18:02:47",
"MediaModifyDate": "2020:09:15 18:02:47",
"MediaTimeScale": 180000,
"MediaDuration": "0:01:55",
"MediaLanguageCode": "jpn",
"GenMediaVersion": 0,
"GenFlags": "0 0 0",
"GenGraphicsMode": "srcCopy",
"GenOpColor": "0 0 0",
"GenBalance": 0,
"TextFont": "System",
"TextFace": "Plain",
"TextSize": 12,
"TextColor": "0 0 0",
"BackgroundColor": "0 0 0",
"FontName": "",
"HandlerClass": "Data Handler",
"HandlerType": "Alias Data",
"OtherFormat": "tmcd",
"Make": "OLYMPUS DIGITAL CAMERA",
"Model": "E-M10MarkII",
"DateTime1": "Tue Sep 15 18:02:47 2020",
"DateTime2": "Tue Sep 15 18:02:47 2020",
"ThumbnailWidth": 160,
"ThumbnailHeight": 120,
"ThumbnailLength": 12103,
"ThumbnailImage": "(Binary data 12103 bytes, use -b option to extract)",
"PreviewImageLength": 72598,
"PreviewImage": "(Binary data 72598 bytes, use -b option to extract)",
"MediaDataSize": 751176422,
"MediaDataOffset": 655360,
"ImageSize": "1920x1080",
"Megapixels": 2.1,
"AvgBitrate": "52.2 Mbps",
"Rotation": 0
}]