Skip to content

Can't export xml (nor any other format) from kdenlive 24 #1881

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

Open
cervier opened this issue Apr 29, 2025 · 1 comment
Open

Can't export xml (nor any other format) from kdenlive 24 #1881

cervier opened this issue Apr 29, 2025 · 1 comment

Comments

@cervier
Copy link

cervier commented Apr 29, 2025

Windows 11. Exported a short project from DaVinci Resolve in FCP7 XML, opened it with no problem in kdenlive. But when trying to "Export OTIO", there were problems with "docversion", then with "time", then... I changed the script following ChatGPT advice (eg replacing line 248 with if docversion and float(docversion) < float("1.1"):, or changing the time function) but still got

Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Users\genia\AppData\Local\Programs\Python\Python312\Scripts\otioconvert.exe_main
.py", line 7, in
File "C:\Users\genia\AppData\Local\Programs\Python\Python312\Lib\site-packages\opentimelineio\console\otioconvert.py", line 238, in main
result_tl = otio.adapters.read_from_file(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\genia\AppData\Local\Programs\Python\Python312\Lib\site-packages\opentimelineio\adapters_init
.py", line 143, in read_from_file
return adapter.read_from_file(
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\genia\AppData\Local\Programs\Python\Python312\Lib\site-packages\opentimelineio\adapters\adapter.py", line 110, in read_from_file
result = self._execute_function(
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\genia\AppData\Local\Programs\Python\Python312\Lib\site-packages\opentimelineio\plugins\python_plugin.py", line 144, in _execute_function
return (getattr(self.module(), func_name)(**kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:/Users/genia/AppData/Local/Programs/Python/Python312/Lib/site-packages/otio_kdenlive_adapter\adapters\kdenlive.py", line 310, in read_from_string
item = item_from_xml(xml_item, rate, byid, bin_producer_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:/Users/genia/AppData/Local/Programs/Python/Python312/Lib/site-packages/otio_kdenlive_adapter\adapters\kdenlive.py", line 142, in item_from_xml
gap = otio.schema.Gap(
^^^^^^^^^^^^^^^^
TypeError: init(): incompatible constructor arguments. The following argument types are supported:
1. opentimelineio._otio.Gap(name: str = '', source_range: opentimelineio._opentime.TimeRange = otio.opentime.TimeRange(start_time=otio.opentime.RationalTime(value=0, rate=1), duration=otio.opentime.RationalTime(value=0, rate=1)), effects: Optional[List[opentimelineio._otio.Effect]] = None, markers: Optional[List[opentimelineio._otio.Marker]] = None, metadata: object = None)
2. opentimelineio._otio.Gap(name: str = '', duration: opentimelineio._opentime.RationalTime = otio.opentime.RationalTime(value=0, rate=1), effects: Optional[List[opentimelineio._otio.Effect]] = None, markers: Optional[List[opentimelineio._otio.Marker]] = None, metadata: object = None)

Invoked with: kwargs: duration=None

@darbyjohnston
Copy link
Contributor

Hi, the new version of kdenlive (25.04.0) supports OTIO natively, could you try using that instead? You should be able to export an .otio file from Resolve, and then open it in kdenlive directly with the "File/OpenTimelineIO Import" menu.

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

No branches or pull requests

2 participants