PowerShell Metadata

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message
Offline

Malenky

  • Posts: 3
  • Joined: Thu Aug 27, 2020 5:14 am
  • Location: Columbus, OH, USA
  • Real Name: Justin Malenky

PowerShell Metadata

PostTue Jun 25, 2024 4:43 pm

Has anyone been able to call the SDK from PowerShell to get BRAW metadata? I'd like to figure out which clips are marked as "Good Take Last Clip" and get other data as well.
Offline

Ian Morrish

  • Posts: 590
  • Joined: Sun Jan 18, 2015 9:24 pm
  • Location: New Zealand

Re: PowerShell Metadata

PostTue Jun 25, 2024 7:21 pm

Bit of a hack, but you can use C:\Program Files (x86)\Blackmagic Design\Blackmagic RAW\Blackmagic RAW SDK\Win\Samples\ExtractMetadata\ExtractMetadata.exe from powershell like this

$metadata = .\ExtractMetadata.exe sample.braw | ? { $_ -match ': '}|ConvertFrom-String -PropertyNames 'Name','Value' -Delimiter ': '
$videoinfo=@{}
$metadata | % { $videoInfo[$_.Name] = $_.Value }

$metadata # all values
$metadata["iso'] #just value you want
Regards,
Ian Morrish
Video Integrated Scripting Environment
(Windows PowerShell with ATEM driver + more)
https://ianmorrish.wordpress.com
Offline

Malenky

  • Posts: 3
  • Joined: Thu Aug 27, 2020 5:14 am
  • Location: Columbus, OH, USA
  • Real Name: Justin Malenky

Re: PowerShell Metadata

PostTue Jun 25, 2024 9:06 pm

Ian Morrish,
Thank you so much, that's exactly what I needed. I've been using taglib-sharp.dll with PowerShell to make simple scripts to manage media files but never had the ability to read metadata on BRAW, this worked perfectly!!
- Justin Malenky

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 6 guests