Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: deric/DaVinciResolve-metadata
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.0.0
Choose a base ref
...
head repository: deric/DaVinciResolve-metadata
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 4 commits
  • 2 files changed
  • 2 contributors

Commits on Jan 30, 2024

  1. Fix install links (closes #11)

    deric committed Jan 30, 2024
    Copy the full SHA
    8116024 View commit details

Commits on Feb 20, 2024

  1. UI improvements - move Select/Unselect buttons further up and use "pr…

    …eview" and "apply" terminology instead of dry run and scan mediastore
    seb26 committed Feb 20, 2024
    Copy the full SHA
    5015c26 View commit details

Commits on Feb 21, 2024

  1. Merge pull request #13 from seb26/develop2

    UI improvements
    deric authored Feb 21, 2024
    Copy the full SHA
    594f4cc View commit details
  2. Add support for Sony device name fields and LUT fields (#12)

    * add "LUT Used" and "Color Space Notes" metadata fields as combos, filling their value from two EXIF fields which Sony cameras uses
    * add two other fields that Sony uses
    seb26 authored Feb 21, 2024
    Copy the full SHA
    8d05326 View commit details
Showing with 35 additions and 20 deletions.
  1. +2 −3 README.md
  2. +33 −17 com.deric.ExifMetadata/Scripts/Comp/EXIF-metadata.lua
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -32,15 +32,14 @@ From command line:

Linux
```
wget https://raw.githubusercontent.com/deric/DaVinciResolve-metadata/main/com.deric.ExifMetadata/Tools/Metadata/EXIF-metadata.lua \
wget https://raw.githubusercontent.com/deric/DaVinciResolve-metadata/main/com.deric.ExifMetadata/Scripts/Comp/EXIF-metadata.lua \
-P ~/.local/share/DaVinciResolve/Fusion/Scripts/Comp/
```

MacOS

```
wget https://raw.githubusercontent.com/deric/DaVinciResolve-metadata/main/com.deric.ExifMetadata/Tools/Metadata/EXIF-metadata.lua \
-P ~/Library/Application\ Support/Blackmagic Design/DaVinci\ Resolve/Fusion/Scripts/Comp
wget https://raw.githubusercontent.com/deric/DaVinciResolve-metadata/main/com.deric.ExifMetadata/Scripts/Comp/EXIF-metadata.lua \ -P ~/Library/Application\ Support/Blackmagic\ Design/DaVinci\ Resolve/Fusion/Scripts/Comp
```

## Usage
50 changes: 33 additions & 17 deletions com.deric.ExifMetadata/Scripts/Comp/EXIF-metadata.lua
Original file line number Diff line number Diff line change
@@ -109,50 +109,60 @@ win = disp:AddWindow({
ui:CheckBox{ID = "CheckComments", Text = "Comments", Checked = false,},
ui:ComboBox{ID = "ComboComments", Enabled = false},
},
ui:HGroup{
Weight = 0.1,
ui:CheckBox{ID = "CheckColorSpaceNotes", Text = "Color Space Notes", Checked = false,},
ui:ComboBox{ID = "ComboColorSpaceNotes", Enabled = false},
},
ui:HGroup{
Weight = 0.1,
ui:CheckBox{ID = "CheckLUTUsed", Text = "LUT Used", Checked = false,},
ui:ComboBox{ID = "ComboLUTUsed", Enabled = false},
},

},

ui:VGap(5, 0.01),

ui:HGroup{
Weight = 0.1,
ui:Label{
ID = "LabelSettings", Text = "Scan Settings",
Alignment = { AlignHCenter = true, AlignVCenter = true },
ui:VGroup{
Weight = 0.1,
ui:Button{ID = "BtnSelectAll", Text = "Select All",},
},
ui:VGroup{
Weight = 0.1,
ui:Button{ID = "BtnUnselectAll", Text = "Unselect All",},
}
},
ui:VGap(5, 0.01),

ui:VGap(5, 0.01),

ui:HGroup{
Weight = 0.1,
ui:CheckBox{ID = "CheckExtractEmbedded", Text = "Extract Embedded Data", Checked = true, ToolTip = 'Disabling this will speedup scanning for files with GPS or motion data, but might skip metadata on certain cameras'},
ui:CheckBox{ID = "CheckCurrentFolder", Text = "Scan Current Folder Only", Checked = false, ToolTip = 'Only scan the files in the folder currently selected or open in the media pool'},
ui:Label{
ID = "LabelSettings", Text = "Scan Settings",
Alignment = { AlignHCenter = true, AlignVCenter = true },
},
},

ui:VGap(5, 0.01),

ui:HGroup{
Weight = 0.1,
ui:VGroup{
Weight = 0.1,
ui:Button{ID = "BtnSelectAll", Text = "Select All",},
},
ui:VGroup{
Weight = 0.1,
ui:Button{ID = "BtnUnselectAll", Text = "Unselect All",},
}
ui:CheckBox{ID = "CheckExtractEmbedded", Text = "Extract Embedded Data", Checked = true, ToolTip = 'Disabling this will speedup scanning for files with GPS or motion data, but might skip metadata on certain cameras'},
ui:CheckBox{ID = "CheckCurrentFolder", Text = "Scan Current Media Pool Folder Only", Checked = false, ToolTip = 'Only scan the files in the folder currently selected or open in the media pool'},
},

ui:VGap(5, 0.01),
ui:HGroup{
Weight = 0.1,
ui:VGroup{
Weight = 0.1,
ui:Button{ID = "DryRun", Text = "Dry run", ToolTip = 'Scan the files without syncing the metadata with Resolve'},
ui:Button{ID = "DryRun", Text = "Preview Scan", ToolTip = 'Scan the files without modifying any clip metadata in Resolve yet'},
},
ui:VGroup{
Weight = 0.1,
ui:Button{ID = "LoadMetadata", Text = "Sync MediaStore", ToolTip = 'Scan and sync the metadata with Resolve'},
ui:Button{ID = "LoadMetadata", Text = "Scan And Apply", ToolTip = 'Scan and apply the EXIF metadata to the media pool clips in Resolve'},
}
},
ui:HGroup{
@@ -207,10 +217,13 @@ exifBoxes = {
{ exif = 'FirmwareVersion', check = itm.CheckCameraFirmware, combo = itm.ComboCameraFirmware},
{ exif = 'GPSCoordinates', check = itm.CheckLocation, combo = itm.ComboLocation},
{ exif = 'Comment', check = itm.CheckComments, combo = itm.ComboComments},
{ exif = 'AcquisitionRecordGroupItemValue', check = itm.CheckColorSpaceNotes, combo = itm.ComboColorSpaceNotes},
{ exif = 'RelevantFilesRelatedToFile', check = itm.CheckLUTUsed, combo = itm.ComboLUTUsed},
}

-- exiftool recognized attributes
exifAttributes = {
'AcquisitionRecordGroupItemValue',
'Aperture',
'AudioChannels',
'AudioSampleRate',
@@ -225,6 +238,8 @@ exifAttributes = {
'CropHiSpeed',
'DateTimeOriginal',
'DaylightSavings',
'DeviceManufacturer',
'DeviceModelName',
'FieldOfView',
'FileName',
'FilterEffect',
@@ -242,6 +257,7 @@ exifAttributes = {
'Megapixels',
'Model',
'ModifyDate',
'RelevantFilesRelatedToFile',
'Rotation',
'Saturation',
'Sharpness',