Description
Describe the bug
Metadata in files from new Nikon cameras are not recognized.
To Reproduce
Steps to reproduce the behavior:
-
Download the sample files from the following locations:
https://www.nikonusa.com/content/z6iii-raw-video-downloads
https://www.nikonusa.com/content/z-8-raw-video-downloads
€ exiv2 Z 6/0*/.MP4 Z 8/Z_8_.mp4
Exiv2 exception in print action for file Z 6/01_4K_60P_highlight_N-Log/01_4K60P_highlight_Proxy.MP4:
corrupted image metadata
Exiv2 exception in print action for file Z 6/03_4K_60P_sky_N-Log/03_4K60P_sky_proxy.MP4:
corrupted image metadata
Exiv2 exception in print action for file Z 6/04_4K_60P_skyevening_SDR/04_4K60P_skyevening_proxy.MP4:
corrupted image metadata
Exiv2 exception in print action for file Z 6/05_6K_60P_skin_tone_N-Log/05_6K60P_skin_tone_proxy.MP4:
corrupted image metadata
Exiv2 exception in print action for file Z 8/Z_8_HighLight_4K24p_NLog_Proxy.mp4:
corrupted image metadata
Exiv2 exception in print action for file Z 8/Z_8_HighLight_4K24p_SDR_Proxy.mp4:
corrupted image metadata
Exiv2 exception in print action for file Z 8/Z_8_SkinTone_4K60p_NLog_Proxy.mp4:
corrupted image metadata
Exiv2 exception in print action for file Z 8/Z_8_SkinTone_4K60p_SDR_Proxy.mp4:
corrupted image metadata
Exiv2 exception in print action for file Z 8/Z_8_SkinTone_8K60p_NLog_Proxy.mp4:
corrupted image metadata
Exiv2 exception in print action for file Z 8/Z_8_SkinTone_8K60p_SDR_Proxy.mp4:
corrupted image metadata
Exiv2 exception in print action for file Z 8/Z_8_Sky_4K120p_NLog_Proxy.mp4:
corrupted image metadata
Exiv2 exception in print action for file Z 8/Z_8_Sky_4K120p_SDR_Proxy.mp4:
corrupted image metadata
Expected behavior
Competing tool does it right:
€ exiftool Z 6/0*/.MP4 Z 8/Z_8_.mp4
======== Z 6/01_4K_60P_highlight_N-Log/01_4K60P_highlight_Proxy.MP4
ExifTool Version Number : 12.70
File Name : 01_4K60P_highlight_Proxy.MP4
Directory : Z 6/01_4K_60P_highlight_N-Log
File Size : 52 MB
File Modification Date/Time : 2024:03:08 09:36:10+01:00
File Access Date/Time : 2025:02:15 21:09:01+01:00
File Inode Change Date/Time : 2025:02:05 21:43:41+01:00
File Permissions : -rw-r--r--
File Type : MP4
File Type Extension : mp4
MIME Type : video/mp4
Major Brand : MP4 v2 [ISO 14496-14]
Minor Version : 0.0.1
Compatible Brands : mp42, avc1, niko
Movie Header Version : 0
Modify Date : 2024:03:08 04:06:10
Time Scale : 60000
Duration : 10.06 s
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 : 3
Track Header Version : 0
Track Create Date : 2024:03:08 04:06:10
Track Modify Date : 2024:03:08 04:06:10
Track ID : 1
Track Duration : 10.06 s
Track Layer : 0
Track Volume : 0.00%
Image Width : 1920
Image Height : 1080
Graphics Mode : srcCopy
Op Color : 0 0 0
Compressor ID : avc1
Source Image Width : 1920
Source Image Height : 1080
X Resolution : 72
Y Resolution : 72
Compressor Name : AVC Coding
Bit Depth : 24
Color Profiles : nclx
Color Primaries : BT.709
Transfer Characteristics : BT.709
Matrix Coefficients : BT.709
Video Full Range Flag : 1
Video Frame Rate : 59.94
Matrix Structure : 1 0 0 0 1 0 0 0 1
Media Header Version : 0
Media Create Date : 2024:03:08 04:06:10
Media Modify Date : 2024:03:08 04:06:10
Media Time Scale : 60000
Media Duration : 10.06 s
Media Language Code : und
Handler Type : Time Code
Other Format : tmcd
Playback Frame Rate : 59.94005994
Make : NIKON CORPORATION
Model : NIKON Z6_3
Software : NIKON Z6_3 Ver.00.26.00
Create Date : 2024:03:08 09:36:10
Date/Time Original : 2024:03:08 09:36:10
Frame Count : 603
Frame Rate : 59.94
Frame Width : 1920
Frame Height : 1080
Audio Channels : 0
Audio Bits Per Sample : 0
Audio Sample Rate : 0
Nikon Date Time : 2024:03:08 09:36:10
Electronic VR : Off
Exposure Time : 1/125
F Number : 3.2
Exposure Program : Manual
Exposure Compensation : 0
Metering Mode : Multi-segment
Focal Length : 50.0 mm
Serial Number : 0020116
Lens Info : 50mm f/1.2
Lens Make : NIKON
Lens Model : NIKKOR Z 50mm f/1.2 S
Lens Serial Number : 20005383
Maker Note Version : 2.11
White Balance : PRESET2
Focus Mode : AF-F
Crop Hi Speed : 16:9 Crop (6064x4040 cropped to 6064x3416 at pixel 0,312)
VR Info Version : 0200
Vibration Reduction : Off
VR Mode : Normal
VR Type : In-body
Active D-Lighting : Off
Picture Control Version : 0310
Picture Control Name : N-Log
Picture Control Base : N-Log
Picture Control Adjust : Quick Adjust
Picture Control Quick Adjust : n/a
Sharpness : n/a
Mid Range Sharpness : n/a
Clarity : n/a
Contrast : n/a
Brightness : n/a
Saturation : n/a
Hue : n/a
Filter Effect : n/a
Toning Effect : n/a
Toning Saturation : n/a
Picture Control Data : (Binary data 108 bytes, use -b option to extract)
Time Zone : +05:30
Daylight Savings : No
Date Display Format : Y/M/D
ISO : 800
ISO Expansion : Off
ISO2 : 800
ISO Expansion 2 : Off
Vignette Control : Off
White Balance Fine Tune : 0 0
Lens Type : AF
Lens : 50mm f/1.2
Flash Mode : Did Not Fire
Lens Data Version : 0802
Lens Mount Type : Z-mount Lens
Max Aperture : 1.2
Focus Distance : 6.30 m
Lens Position Absolute : 2420
Shutter Count : 5329
Vari Program :
High ISO Noise Reduction : Off
AF Info 2 Version : 0401
Contrast Detect AF : On (2)
AF Area Mode : Auto
Phase Detect AF : Off
Primary AF Point : C6 (Center)
AF Points Used : (none)
Thumbnail Image : (Binary data 7835 bytes, use -b option to extract)
Preview Image : (Binary data 512046 bytes, use -b option to extract)
Preview Image 1 : (Binary data 50715 bytes, use -b option to extract)
Media Data Size : 51466987
Media Data Offset : 786440
Aperture : 3.2
Image Size : 1920x1080
Megapixels : 2.1
Shutter Speed : 1/125
Auto Focus : On
Lens Spec : 50mm f/1.2 AF
Avg Bitrate : 40.9 Mbps
Rotation : 0
Focal Length : 50.0 mm
Lens ID : NIKKOR Z 50mm f/1.2 S
Light Value : 7.3
Desktop (please complete the following information):
- Fedora Linux Workstation 41
- MaXX Interactive Desktop Octane 2.2.0
- Exiv2 version and source: 0.28.3