Automatic edit in Resolve

User avatar
Hugues
Posts: 5
Joined: Thu Sep 19, 2019 8:31 am

Automatic edit in Resolve

#1

Post by Hugues » Thu Sep 19, 2019 8:48 am

Hi!
I'm a noob in scripting and beginner in DaVinci... Sorry for that! :oops:
I'm wondering if there is any way to write a script to auto edit a sequence with a list of timecodes in a CSV file (or other format).
If there is, would I have to learn Python or JSON? :geek:
Thanks a lot for your help! :D


User avatar
SecondMan
Site Admin
Posts: 3572
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 5
Location: Vancouver, Canada
Been thanked: 103 times
Contact:

Re: Automatic edit in Resolve

#2

Post by SecondMan » Thu Sep 19, 2019 4:17 pm

Before you go down the scripting route, have you tried Scene Cut Detection?

I'm assuming your edit comes in as a single long video file. In the Media tab, browse to your video file and right click on the thumbnail or filename to select Scene Cut Detection.

Image

Then in the top right corner of that window, click the three dots for the drop down menu and you'll see an option to load an EDL file (Edit Decision List). If you have such a file to accompany your clip, this will be cut accordingly.

Image

Alternatively, there is also an Auto Scene Detect mode (button on the bottom left of that window), that will analyse your clip and cut it for you based on where it detects cuts. It works rather well.

Image

After any of those, you can add the cuts to the Media Pool, and from there into the timeline.


User avatar
Iddos
Posts: 18
Joined: Sat Oct 06, 2018 4:21 pm
Been thanked: 2 times

Re: Automatic edit in Resolve

#3

Post by Iddos » Fri Sep 20, 2019 3:04 am

For the best of my knowledge there is no edit clip to timeline methods in API yet.
Hopefully the API functionality will expand with time.


User avatar
Hugues
Posts: 5
Joined: Thu Sep 19, 2019 8:31 am

Re: Automatic edit in Resolve

#4

Post by Hugues » Fri Sep 20, 2019 12:18 pm

Thanks for your answers,
Yes I had thought about transform the timecode list to an EDL but I wanted to know if there were any API solution for that.
I think I will do that and add informations in markers in the timeline.

User avatar
SecondMan
Site Admin
Posts: 3572
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 5
Location: Vancouver, Canada
Been thanked: 103 times
Contact:

Re: Automatic edit in Resolve

#5

Post by SecondMan » Fri Sep 20, 2019 12:47 pm

I would think it's fairly straightforward to write a small script to convert an EDL from a CSV file. It's basically reformatting strings. The script could be run from within Resolve and write a file alongside the CSV on disk.

You can use Python or Lua. I prefer Lua myself but it's entirely up to you.

User avatar
Iddos
Posts: 18
Joined: Sat Oct 06, 2018 4:21 pm
Been thanked: 2 times

Re: Automatic edit in Resolve

#6

Post by Iddos » Fri Sep 20, 2019 12:50 pm

Adding timeline markers is something you can do with a script. Not sure if that’s much help though

User avatar
Hugues
Posts: 5
Joined: Thu Sep 19, 2019 8:31 am

Re: Automatic edit in Resolve

#7

Post by Hugues » Sat Sep 21, 2019 6:41 am

Yes it would help!
The idea is to convert a file (for now it's a csv file), which contain the informations of the timecodes that indicate where to cut and comments, to an edited DaVinci timeline.

User avatar
SecondMan
Site Admin
Posts: 3572
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 5
Location: Vancouver, Canada
Been thanked: 103 times
Contact:

Re: Automatic edit in Resolve

#8

Post by SecondMan » Sat Sep 21, 2019 6:50 am

What may be helpful is if you could post an example of such a file... ?

File types such as .edl and .csv are supported by the forum, so you don't need to zip them for attachments :)

User avatar
Iddos
Posts: 18
Joined: Sat Oct 06, 2018 4:21 pm
Been thanked: 2 times

Re: Automatic edit in Resolve

#9

Post by Iddos » Sun Sep 22, 2019 12:10 am

Yeah if you could add the CSV file it should be straightforward to write a script to add markers to timeline based on the timecodes and notes.

User avatar
Hugues
Posts: 5
Joined: Thu Sep 19, 2019 8:31 am

Re: Automatic edit in Resolve

#10

Post by Hugues » Tue Sep 24, 2019 7:25 am

Hi,
Here is a csv of the shooting notes.
There are indications about the type of view, cuts or changes.
Thank you so much for your help! :D
You do not have the required permissions to view the files attached to this post.

User avatar
Iddos
Posts: 18
Joined: Sat Oct 06, 2018 4:21 pm
Been thanked: 2 times

Re: Automatic edit in Resolve

#11

Post by Iddos » Tue Sep 24, 2019 12:25 pm

Hi
I looked at the file.
I have to say it is not very organised.
Does this document contain notes for more than one timeline?
The timecode is not accurate.
In these conditions it’s not very useful to use a s script if there is a need to manually edit the file you want to parse programatically.
Lastly, this list is not so very long. It will take less time to manually add markers than to write a custom made script.
I'm sorry I cant help you in this one.
Best,

Iddos

User avatar
Hugues
Posts: 5
Joined: Thu Sep 19, 2019 8:31 am

Re: Automatic edit in Resolve

#12

Post by Hugues » Tue Sep 24, 2019 1:15 pm

Hi,
Yes the idea is to automate the first process of editing.
> Create project, create one timeline per file with every cuts and markers as indicated the shooting notes file.
Then edit in a more precise way.
It would be a big help in my workflow because I have to edit o lot of that files every days.
I will need to adapt the shooting notes file to the possibilities of the script and APIs of Davinci Resolve.
Thanks a lot!

User avatar
ShadowMaker SdR
Fusionista
Posts: 652
Joined: Sun Sep 21, 2014 6:17 am
Answers: 4
Been thanked: 17 times

Re: Automatic edit in Resolve

#13

Post by ShadowMaker SdR » Tue Sep 24, 2019 1:54 pm

Where do these timecodes come from? It seems like a lot more work writing them down than actually doing the edit.
It almost sounds like me you need to create an old fashioned EDL. Do you know what these are?