Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: Canon Raw V3 support via MP4 handlers #656

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

nosnhojbob
Copy link
Contributor

This is an alternate to #624 , solving the same original feature request: #374

Since we already have an Mp4UuidBoxHandler, I followed @TSGames' approach, but registered the special handling under the apparently unique Canon Raw V3 UUID, adding to the enumeration. This routes the 4 "Canon Metadata in TIFF format" sub-tags to our existing handlers.

note: I tried locating a better dictionary entry for crx (to complete the major/compatible brands, but didn't find any usage.

[MP4] Major Brand - Unknown
[MP4] Minor Version - 1
[MP4] Compatible Brands - [Unknown, MP4 Base Media v1 [IS0 14496-12:2003]]
[MP4] Creation Time - Sun Oct 08 16:29:29 PDT 2023
[MP4] Modification Time - Sun Oct 08 16:29:29 PDT 2023
[MP4] Duration - 1
[MP4] Media Time Scale - 1
[MP4] Duration in Seconds - 00:00:01
[MP4] Transformation Matrix - 65536 0 0 0 65536 0 0 0 1073741824
[MP4] Preferred Rate - 1
[MP4] Preferred Volume - 1
[MP4] Next Track ID - 5
[MP4] Rotation - 0
[Exif IFD0] Image Width - 6240 pixels
[Exif IFD0] Image Height - 4160 pixels
[Exif IFD0] Bits Per Sample - 8 8 8 bits/component/pixel
[Exif IFD0] Compression - JPEG (old-style)
[Exif IFD0] Make - Canon
[Exif IFD0] Model - Canon EOS RP
[Exif IFD0] Orientation - Left side, bottom (Rotate 270 CW)
[Exif IFD0] X Resolution - 72 dots per inch
[Exif IFD0] Y Resolution - 72 dots per inch
[Exif IFD0] Resolution Unit - Inch
[Exif IFD0] Date/Time - 2023:10:08 16:29:29
[Exif IFD0] Artist -
[Exif IFD0] Copyright -
[Exif SubIFD] Exposure Time - 1/160 sec
[Exif SubIFD] F-Number - f/5.6
[Exif SubIFD] Exposure Program - Landscape mode
[Exif SubIFD] ISO Speed Ratings - 160
[Exif SubIFD] Sensitivity Type - Recommended Exposure Index
[Exif SubIFD] Recommended Exposure Index - 160
[Exif SubIFD] Exif Version - 2.31
[Exif SubIFD] Date/Time Original - 2023:10:08 16:29:29
[Exif SubIFD] Date/Time Digitized - 2023:10:08 16:29:29
[Exif SubIFD] Time Zone - -07:00
[Exif SubIFD] Time Zone Original - -07:00
[Exif SubIFD] Time Zone Digitized - -07:00
[Exif SubIFD] Components Configuration - YCbCr
[Exif SubIFD] Shutter Speed Value - 1/165 sec
[Exif SubIFD] Aperture Value - f/5.7
[Exif SubIFD] Exposure Bias Value - 0 EV
[Exif SubIFD] Metering Mode - Multi-segment
[Exif SubIFD] Flash - Flash did not fire
[Exif SubIFD] Focal Length - 54 mm
[Exif SubIFD] User Comment -
[Exif SubIFD] Sub-Sec Time - 03
[Exif SubIFD] Sub-Sec Time Original - 03
[Exif SubIFD] Sub-Sec Time Digitized - 03
[Exif SubIFD] FlashPix Version - 1.00
[Exif SubIFD] Color Space - sRGB
[Exif SubIFD] Exif Image Width - 6240 pixels
[Exif SubIFD] Exif Image Height - 4160 pixels
[Exif SubIFD] Focal Plane X Resolution - 283/1248000 inches
[Exif SubIFD] Focal Plane Y Resolution - 943/4160000 inches
[Exif SubIFD] Focal Plane Resolution Unit - Inches
[Exif SubIFD] Custom Rendered - Normal process
[Exif SubIFD] Exposure Mode - Auto exposure
[Exif SubIFD] White Balance Mode - Auto white balance
[Exif SubIFD] Scene Capture Type - Standard
[Exif SubIFD] Camera Owner Name -
[Exif SubIFD] Body Serial Number - 000000000000
[Exif SubIFD] Lens Specification - 24-105mm
[Exif SubIFD] Lens Model - RF24-105mm F4-7.1 IS STM
[Exif SubIFD] Lens Serial Number - 0000000000
[Canon Makernote] Unknown tag (0xc100) - 102
[Canon Makernote] Macro Mode - Normal
[Canon Makernote] Self Timer Delay - Self timer not used
[Canon Makernote] Quality - CRAW
[Canon Makernote] Flash Mode - No flash fired
[Canon Makernote] Continuous Drive Mode - Single shot
[Canon Makernote] Unknown Camera Setting 2 - 0
[Canon Makernote] Focus Mode - One-shot
[Canon Makernote] Unknown Camera Setting 3 - 0
[Canon Makernote] Record Mode - Unknown (13)
[Canon Makernote] Image Size - Large
[Canon Makernote] Easy Shooting Mode - Landscape
[Canon Makernote] Digital Zoom - No digital zoom
[Canon Makernote] Contrast - Normal
[Canon Makernote] Saturation - Normal
[Canon Makernote] Sharpness - Unknown (32767)
[Canon Makernote] Iso - Auto
[Canon Makernote] Metering Mode - Evaluative
[Canon Makernote] Focus Type - Auto
[Canon Makernote] AF Point Selected - Unknown (0)
[Canon Makernote] Exposure Mode - Easy shooting
[Canon Makernote] Unknown Camera Setting 7 - 65535
[Canon Makernote] Lens Type - Unknown (61182)
[Canon Makernote] Long Focal Length - 105 1
[Canon Makernote] Short Focal Length - 24 1
[Canon Makernote] Focal Units per mm - 1
[Canon Makernote] Max Aperture - f/5.7
[Canon Makernote] Min Aperture - f/24.7
[Canon Makernote] Flash Activity - Flash did not fire
[Canon Makernote] Flash Details - Unknown (8)
[Canon Makernote] Focus Continuous - Single
[Canon Makernote] AE Setting - Normal AE
[Canon Makernote] Focus Mode - Single
[Canon Makernote] Display Aperture - 65535
[Canon Makernote] Zoom Source Width - 257
[Canon Makernote] Zoom Target Width - 0
[Canon Makernote] Unknown tag (0xc124) - 0
[Canon Makernote] Spot Metering Mode - Center
[Canon Makernote] Photo Effect - Off
[Canon Makernote] Manual Flash Output - Unknown (65535)
[Canon Makernote] Unknown tag (0xc128) - 65535
[Canon Makernote] Color Tone - 0
[Canon Makernote] Unknown tag (0xc12a) - 0
[Canon Makernote] Unknown tag (0xc12b) - 32767
[Canon Makernote] Unknown tag (0xc12c) - 0
[Canon Makernote] SRAW Quality - Unknown (65535)
[Canon Makernote] Unknown tag (0xc12e) - 0
[Canon Makernote] Unknown tag (0xc12f) - 0
[Canon Makernote] Unknown tag (0xc130) - 3
[Canon Makernote] Unknown tag (0xc131) - 65535
[Canon Makernote] Unknown tag (0xc132) - 0
[Canon Makernote] Unknown tag (0xc200) - 0
[Canon Makernote] Unknown tag (0xc201) - 54
[Canon Makernote] Unknown tag (0xc202) - 0
[Canon Makernote] Unknown tag (0xc203) - 63369
[Canon Makernote] Unknown tag (0x0003) - 100 0 0 0
[Canon Makernote] Unknown tag (0xc400) - 68
[Canon Makernote] Auto ISO - 0
[Canon Makernote] Base ISO - 180
[Canon Makernote] Measured EV - 212
[Canon Makernote] Target Aperture - 160
[Canon Makernote] Target Exposure Time - 236
[Canon Makernote] Exposure Compensation - 0
[Canon Makernote] White Balance - 0
[Canon Makernote] Slow Shutter - 3
[Canon Makernote] Sequence Number - 0
[Canon Makernote] Optical Zoom Code - 8
[Canon Makernote] Unknown tag (0xc40b) - 8
[Canon Makernote] Camera Temperature - 161
[Canon Makernote] Flash Guide Number - 0
[Canon Makernote] AF Points in Focus - 0
[Canon Makernote] Flash Exposure Compensation - 0
[Canon Makernote] Auto Exposure Bracketing - 0
[Canon Makernote] AEB Bracket Value - 0
[Canon Makernote] Control Mode - 1
[Canon Makernote] Focus Distance Upper - 0
[Canon Makernote] Focus Distance Lower - 0
[Canon Makernote] F Number - 160
[Canon Makernote] Exposure Time - 232
[Canon Makernote] Measured EV 2 - 147
[Canon Makernote] Bulb Duration - 0
[Canon Makernote] Unknown tag (0xc419) - 0
[Canon Makernote] Camera Type - 248
[Canon Makernote] Auto Rotate - 3
[Canon Makernote] ND Filter - 0
[Canon Makernote] Self Timer 2 - 65535
[Canon Makernote] Unknown tag (0xc41e) - 65535
[Canon Makernote] Unknown tag (0xc41f) - 0
[Canon Makernote] Unknown tag (0xc420) - 0
[Canon Makernote] Flash Output - 0
[Canon Makernote] Image Type - Canon EOS RP
[Canon Makernote] Firmware Version - Firmware Version 1.6.0
[Canon Makernote] Owner Name -
[Canon Makernote] Canon Model ID - 2147484723
[Canon Makernote] Thumbnail Image Valid Area - 0 159 6 113
[Canon Makernote] Unknown tag (0x0019) - 1
[Canon Makernote] AF Info Array 2 - [608 values]
[Canon Makernote] Image Unique ID - 42 55 62 22 133 141 70 191 25 239 242 141 103 224 154 158
[Canon Makernote] Unknown tag (0x0032) - 0 0 0 0 0 0 0 0 0 0 0
[Canon Makernote] Unknown tag (0x0033) - 2817274486 3209054144 2381508377 2660950119
[Canon Makernote] Unknown tag (0x0035) - 16 4294966876 30 60
[Canon Makernote] Unknown tag (0x0038) - [76 values]
[Canon Makernote] Unknown tag (0x003d) - 48 1 3 0 0 0 0 0 0 0 0 1
[Canon Makernote] Unknown tag (0x003f) - 17
[Canon Makernote] File Info Array - [72 values]
[Canon Makernote] Lens Model - RF24-105mm F4-7.1 IS STM
[Canon Makernote] Serial Info Array - VK0000000
[Canon Makernote] Dust Removal Data - [1024 values]
[Canon Makernote] Crop Info - 0 0 0 0
[Canon Makernote] Custom Functions Array 2 - [180 values]
[Canon Makernote] Aspect Information Array - 0 6240 4160 0 0
[Canon Makernote] Processing Information Array - [18 values]
[Canon Makernote] Measured Color Array - 12 1186 1024 1024 495 0
[Canon Makernote] Color Space - 1
[Canon Makernote] VRD Offset - 0
[Canon Makernote] Sensor Information Array - [17 values]
[Canon Makernote] Black Level - 135 135 135
[Canon Makernote] Unknown tag (0x4009) - 0 0 0
[Canon Makernote] Custom Picture Style File Name -
[Canon Makernote] Unknown tag (0x4011) - [252 values]
[Canon Makernote] Unknown tag (0x4012) -
[Canon Makernote] Color Info Array - 44 0 0 10 4294967295 0 10 0 10 0 10
[Canon Makernote] Vignetting Correction Array 2 - 40 0 1 0 1 1 1 1 1 1
[Canon Makernote] Lighting Optimizer Array - 56 0 0 0 0 0 1 1 1 1 1 0 1 0
[Canon Makernote] Lens Info Array - [30 values]
[Canon Makernote] Ambiance Info Array - 32 0 0 0 2147483647 0 1 1
[Canon Makernote] Unknown tag (0x4021) - 20 0 0 0 1
[Canon Makernote] Unknown tag (0x4025) - 36 0 0 0 0 0 0 0 0
[Canon Makernote] Unknown tag (0x4027) - 24 198918 268435466 0 13684944 131076
[Canon Makernote] Unknown tag (0x402c) - 8 0
[Canon Makernote] Unknown tag (0x4035) - [556 values]
[Canon Makernote] Unknown tag (0x4037) - [24 values]
[Canon Makernote] Unknown tag (0x4039) - 45 55 62 22 133 141 70 191 25 239 242 141 103 224 154 158
[Canon Makernote] Unknown tag (0x403c) - 12 1 15
[Canon Makernote] Unknown tag (0x4049) - 8 0 0 0
[GPS] GPS Version ID - 2.300
[GPS] GPS Latitude Ref - N
[GPS] GPS Latitude - 45° 35' 10.07"
[GPS] GPS Longitude Ref - W
[GPS] GPS Longitude - -122° 45' 37.9"
[GPS] GPS Altitude Ref - Sea level
[GPS] GPS Altitude - 9.36 metres
[GPS] GPS Time-Stamp - 23:24:36.000 UTC
[GPS] GPS Satellites -
[GPS] GPS Status - Active (Measurement in progress)
[GPS] GPS Map Datum - WGS-84
[GPS] GPS Date Stamp - 2023:10:08
[MP4 Video] Creation Time - Sun Oct 08 16:29:29 -07:00 2023
[MP4 Video] Modification Time - Sun Oct 08 16:29:29 -07:00 2023
[MP4 Video] ISO 639-2 Language Code - eng
[MP4 Video] Opcolor - 0 0 0
[MP4 Video] Graphics Mode - Copy
[MP4 Video] Compression Type - Unknown
[MP4 Video] Width - 6240 pixels
[MP4 Video] Height - 4160 pixels
[MP4 Video] Depth - 24-bit color
[MP4 Video] Horizontal Resolution - 72
[MP4 Video] Vertical Resolution - 72
[MP4 Video] Frame Rate - 1
[MP4 Video] Creation Time - Sun Oct 08 16:29:29 -07:00 2023
[MP4 Video] Modification Time - Sun Oct 08 16:29:29 -07:00 2023
[MP4 Video] ISO 639-2 Language Code - eng
[MP4 Video] Opcolor - 0 0 0
[MP4 Video] Graphics Mode - Copy
[MP4 Video] Compression Type - Unknown
[MP4 Video] Width - 1624 pixels
[MP4 Video] Height - 1080 pixels
[MP4 Video] Depth - 24-bit color
[MP4 Video] Horizontal Resolution - 72
[MP4 Video] Vertical Resolution - 72
[MP4 Video] Frame Rate - 1
[MP4 Video] Creation Time - Sun Oct 08 16:29:29 -07:00 2023
[MP4 Video] Modification Time - Sun Oct 08 16:29:29 -07:00 2023
[MP4 Video] ISO 639-2 Language Code - eng
[MP4 Video] Opcolor - 0 0 0
[MP4 Video] Graphics Mode - Copy
[MP4 Video] Compression Type - Unknown
[MP4 Video] Width - 6384 pixels
[MP4 Video] Height - 4224 pixels
[MP4 Video] Depth - 24-bit color
[MP4 Video] Horizontal Resolution - 72
[MP4 Video] Vertical Resolution - 72
[MP4 Video] Frame Rate - 1
[MP4 Metadata] Creation Time - Sun Oct 08 16:29:29 -07:00 2023
[MP4 Metadata] Modification Time - Sun Oct 08 16:29:29 -07:00 2023
[MP4 Metadata] ISO 639-2 Language Code - eng
[XMP] XMP Value Count - 1
[UUID] UUID - eaf42b5e-1c98-4b88-b9fb-b7dc406e4d16
[UUID] Data - [952300 values]
[File Type] Detected File Type Name - CRX
[File Type] Detected File Type Long Name - Canon Camera Raw
[File Type] Expected File Name Extension - cr3
[File] File Name - IMG_1374.CR3
[File] File Size - 25132077 bytes
[File] File Modified Date - Wed Dec 27 17:45:58 -08:00 2023

Sorry for the second PR on this change - my efforts to rename master to main resulted in a closed original!

@baodoan2023
Copy link

baodoan2023 commented Apr 22, 2024

Could you please merge this pr @drewnoakes ? Currently my project is manipulating with cr3 files, that why i need this version to be deployed in maven central (or any servers), so i can use it :). If anyone have solution to host this version to any maven server, please let me know

Copy link

@baodoan2023 baodoan2023 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look good to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants