Skip to content
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

Issues importing EDL and XML files from Davinci Resolve #811

Closed
jaaaamIron opened this issue Aug 15, 2021 · 4 comments
Closed

Issues importing EDL and XML files from Davinci Resolve #811

jaaaamIron opened this issue Aug 15, 2021 · 4 comments

Comments

@jaaaamIron
Copy link

jaaaamIron commented Aug 15, 2021

Hi. This looks like an amazing piece of software.
I'm having issues using the EDL or XML import.

Here is what I am doing.

Davinci Resolve 17 -> File -> Export -> TImeline, and then choosing .edl

When I try to import I get the message, "Failed to load segments (Invalid EDL data found)".
I've had a look at the EDL and here is what it says (looks fairly standard to me, and loads elsewhere).

TITLE: Timeline 1 selects
FCM: NON-DROP FRAME

001  AX       V     C        00:00:00:00 00:00:07:17 01:00:00:00 01:00:07:17  
* FROM CLIP NAME: Flowers.mov

002  AX       V     C        00:00:07:17 00:00:13:00 01:00:07:17 01:00:13:00  
* FROM CLIP NAME: Flowers.mov

I've also tried the same with XML import, both with the old style .xml (Final Cut Pro 7), which gives me the error "Failed to load segments (Cannot read property 'children' of undefined)", and with the more recent .fcpxml file.

It's probable I am just doing this wrong, but I can't really find anything in the documentation much about these features. Can you give me some pointers? Thanks!

@mifi
Copy link
Owner

mifi commented Aug 23, 2021

I don't know what is that format you posted, so I don't think that is supported. You can see a sample Final Cut XMEML file here:
https://github.com/mifi/lossless-cut-fixtures/blob/master/Final%20Cut%20Pro%20XMEML.xml

Maybe you could share one of your XML files, then I can see if I understand why it can't find children.

@mifi mifi added the need info label Aug 24, 2021
@mrolappe
Copy link
Contributor

regarding the FCP XML import: I had the same problem/error message. Looking at the Apple documentation that was linked in the source (edlFormats.js/parseXmeml) I saw that the problem is the function unconditionally expecting the sequence element as child of a project.children element hierarchy.

After inspecting a sample export from DaVinci Resolve I saw that the exported XML did not contain the project.children element hierarchy but a sequence element as direct child of the xmeml element.

According to the documentation the sequence element as direct xmeml element child is also valid.

To cut a long story short: The timeline import seemed to work fine after adjusting the access path for the parse XML result (i.e. change to xml.xmeml.sequence.media.video.track.clipitem).

It might be sufficient to just conditionally handle these two paths in the code.

@mrolappe
Copy link
Contributor

One more thing: parseXmeml should use the clipitems' in and out attributes instead of the start and end attributes. Otherwise deleted parts/clips are not considered and the clips resulting from the import are wrong.

@mifi
Copy link
Owner

mifi commented Jan 15, 2022

I think this can be closed

@mifi mifi closed this as completed Jan 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants