Lightroom SDK: How to determine if selected video format is dpx?

  • 2
  • Question
  • Updated 6 years ago
As it stands, when the dpx format is selected, the value set in the export settings is:

"3f3f3f3f-4450-5820-fbfb-fbfbfbfbfbfb"

Can I assume dpx format will always be this value?

I mean, some publish services won't support dpx, so I'd like to disable it.

Unlike for photos, there is no documented API for disabling individual video formats, but I would like to at least detect dpx format, then reset to something else, or at a minimum warn the user...

?
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 384 Reply Likes

Posted 6 years ago

  • 2
Photo of jdv

jdv, Champion

  • 728 Posts
  • 56 Reply Likes
That is a terrible GUID. It looks like it was a testing value left in by mistake.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 384 Reply Likes
Here's my present code for determining video format:

--- Determine video format.
--
-- @param props export/publish settings - required.
--
local function getVideoFormat( props )
if props.LR_export_videoFormat == 'original' then
return 'original'
elseif props.LR_export_videoFormat == "4e49434b-4832-3634-fbfb-fbfbfbfbfbfb" then
return 'h.264'
elseif props.LR_export_videoFormat == "3f3f3f3f-4450-5820-fbfb-fbfbfbfbfbfb" then
return 'dpx'
else
Debug.pause( "unknown video format", props.LR_export_videoFormat )
return "unknown"
end
end

I'm hoping the "hand-cranked" uuid means it won't change from Lr copy2copy. (sigh)

~R.