Thu Nov 09, 2023 12:43 pm
Hello all,
I have written a custom codec plugin based on the x264 example. Everything is working correctly when rendering via the UI in Resolve. However via the python API I cannot seem to get the codec name or format name. I have stripped by code back to the example h264 plugin that ships with Resolve, the only change I made was to enable the DummyContainer.
When I run GetRenderFormats() with the plugin installed I get one extra entry corresponding to the plugin but it has the strange name 'Clip based format'. ( see below )
{'AVI': 'avi', 'BRAW': 'braw', 'Cineon': 'cin', 'Clip based format': 'unknown', 'DCP': 'dcp', 'DPX': 'dpx', 'EXR': 'exr', 'GIF': 'gif', 'IMF': 'imf', 'JPEG 2000': 'j2c', 'MJ2': 'mj2', 'MKV': 'mkv', 'MP4': 'mp4', 'MTS': 'mts', 'MXF OP-Atom': 'mxf', 'MXF OP1A': 'mxf_op1a', 'Panasonic AVC': 'pavc', 'QuickTime': 'mov', 'TIFF': 'tif', 'Wave': 'wav'}
Also if I enumerate the codecs supported by the plugin I get an empty list or I select the plugin in the UI and run GetCurrentRenderFormatAndCodec() I get {'format': 'unknown', 'codec': ''}.
I'm running Resolve Studio 18.5.1 Build 6 on Linux.
Any ideas on how to get this to correctly return the plugin format and supported codec names?
Thanks,
Jon.