https://bugs.kde.org/show_bug.cgi?id=445214
Bug ID: 445214 Summary: OpenTimelinIO Export/Import Fails: OTIO kdenlive/mlt adapter is out of date> Product: kdenlive Version: 21.08.2 Platform: Archlinux Packages OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Video Display & Export Assignee: j...@kdenlive.org Reporter: david.johanna...@gmail.com Target Milestone: --- Created attachment 143376 --> https://bugs.kde.org/attachment.cgi?id=143376&action=edit error dialog SUMMARY Based on the output from kdenlive OpenTimelineIO export dialog, and the referenced line in the adpaters.py file, it appears the support for kdenlive in OTIO is out of date. Is this the right place to raise this issue? STEPS TO REPRODUCE 1. Set up a project; import footage 2. Assemble footage in timeline 3. Select File > OpenTimelinIO Export OBSERVED RESULT Project conversion failed: Traceback (most recent call last): File "/usr/bin/otioconvert", line 33, in <module> sys.exit(load_entry_point('OpenTimelineIO==0.13.0', 'console_scripts', 'otioconvert')()) File "/usr/lib/python3.9/site-packages/opentimelineio/console/otioconvert.py", line 226, in main result_tl = otio.adapters.read_from_file( File "/usr/lib/python3.9/site-packages/opentimelineio/adapters/__init__.py", line 140, in read_from_file return adapter.read_from_file( File "/usr/lib/python3.9/site-packages/opentimelineio/adapters/adapter.py", line 131, in read_from_file result = self._execute_function( File "/usr/lib/python3.9/site-packages/opentimelineio/plugins/python_plugin.py", line 174, in _execute_function return (getattr(self.module(), func_name)(**kwargs)) File "/usr/lib/python3.9/site-packages/opentimelineio_contrib/adapters/kdenlive.py", line 76, in read_from_string for maintrack in maintractor.findall('track'): AttributeError: 'NoneType' object has no attribute 'findall' EXPECTED RESULT fcpxml compatible xml file SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: 21.08.2 (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION The OTIO adapter script talks about a "global_feed" tractor which does not appear in the kdenlive xml file. def read_from_string(input_str): """Read a Kdenlive project (MLT XML) Kdenlive uses a given MLT project layout, similar to Shotcut, combining a "main_bin" playlist to organize source media, and a "global_feed" tractor for timeline. (in Kdenlive 19.x, timeline tracks include virtual sub-track, unused for now)""" mlt, byid = ET.XMLID(input_str) profile = mlt.find('profile') rate = (float(profile.get('frame_rate_num')) / float(profile.get('frame_rate_den', 1))) timeline = otio.schema.Timeline( name=mlt.get('name', 'Kdenlive imported timeline')) maintractor = mlt.find("tractor[@global_feed='1']") for maintrack in maintractor.findall('track'): -- You are receiving this mail because: You are watching all bug changes.