Page 1 of 2

individual clips and audio

PostPosted: Tue Jan 08, 2019 11:10 pm
by Jeff Brass
Hi all, Happy New Year.

I have to render out a few hundred clips, each needs to keep its original clip name - no probs doing that with deliver individual clips.

however - I also need each clip to have its edited/modified audio - which of course isn't an option using the individual method.

Any ideas of how best to tackle this?

cheers
J

Re: individual clips and audio

PostPosted: Tue Jan 08, 2019 11:24 pm
by Jim Simon
I don't think you can.

Re: individual clips and audio

PostPosted: Wed Jan 09, 2019 12:44 pm
by Peter Benson
No RENDER Page output involving Render Individual Clips with "Timeline Audio"?

#WowJustWOW! Here's hoping you're *wrong* Jim.
[Re]Pete

Re: individual clips and audio

PostPosted: Wed Jan 09, 2019 12:58 pm
by Vit Reiter
Maybe I don't understand well.
Why can't you export individual clips after editing? Each clip on the timeline will be routinely exported.

Re: individual clips and audio

PostPosted: Wed Jan 09, 2019 1:24 pm
by Peter Benson
Vit Reiter wrote:Maybe I don't understand well.
Why can't you export individual clips after editing? Each clip on the timeline will be routinely exported.
You must factor in both aspects of the OP's stated concern/question: that of exporting individual clips -- but along with the associated segment of edited/processed/mixed Timeline [i e., "Record"] Audio.

That's what many of us editors need as an option upon rendering.
[Re]Pete

Re: individual clips and audio

PostPosted: Wed Jan 09, 2019 3:30 pm
by Vit Reiter
If you have separately audio and video files, You have to link them.
Then You can use Individual clips export.

Re: individual clips and audio

PostPosted: Wed Jan 09, 2019 5:23 pm
by xunile
If you right click a clip in the clip timeline of the Render tab, you can choose "Render this clip", which should keep any edits and allow you to name it whatever you want.

Re: individual clips and audio

PostPosted: Wed Jan 09, 2019 10:41 pm
by Jeff Brass
yes, I can do it clip by clip - which is what I did. all 400 hundred of them, each manually renamed. took flipping hours, then of course the time to find the 2 that didn't render etc etc etc


xunile wrote:If you right click a clip in the clip timeline of the Render tab, you can choose "Render this clip", which should keep any edits and allow you to name it whatever you want.


yep, right click etc type in reel name/file name etc etc....that is fine for a few clips only, but 400? that's a hell of a lot of mouse and keyboard work. not to mention the introduced potential for manually naming a wrong key/number. And a seriously slow workflow.

I can't believe we have been asking for render individual clips with timeline audio for a few years now -

Re: individual clips and audio

PostPosted: Wed Jan 09, 2019 11:35 pm
by Peter Cave
I can't recall seeing this requested feature in any other professional editing software.
It's worth keeping in mind that Render Individual Clips is intended ONLY for round-trip workflows.

Re: individual clips and audio

PostPosted: Wed Jan 09, 2019 11:53 pm
by Jeff Brass
Peter Cave wrote:I can't recall seeing this requested feature in any other professional editing software.
It's worth keeping in mind that Render Individual Clips is intended ONLY for round-trip workflows.


Hi Peter, thanks for your comments.
Yeah I totally get that its designed for round tripping. However, its so close to being a valuable tool for other purposes too.

With that in mind, can you tell me an effective way to currently bring in 400 clips, apply some audio processing then render each clip as individual clips with the edited audio and existing file names?
I spent many hours doing this manually and its something we will have to do from time to time.

One of the things I enjoy with DR is the workflow speed increase with edit/grade/audio etc all in one - but this task was extremely slow, tedious and open to mistakes. and yeah I made a couple of typos once my eyes/brain started to glaze over which then added more time in finding and correcting the mistakes.

And its been talked/asked about a number of times in DR forum..as for other professional editing software - I don't use any other, and I don't frequent their forums so I have no idea what other NLE's do or can do in this respect.

I'd hope that just because others don't do it, it doesn't mean BMD won't look at it as a potential feature upgrade.

thanks

Re: individual clips and audio

PostPosted: Thu Jan 10, 2019 12:07 am
by Vit Reiter
Jeff,

maybe I still do not understand what you need to do? (this is because I do not know English well)

If you need to export each clip in a timeline with a specific name (eg file name / clip name), use the variable values in the Name fields on the Delivery page.

Type " % " to the Filename or Custom name (it doesn't matter) and choose any values from the contextual menu.


I'm sorry if I still do not understand what you're looking for ;)

Re: individual clips and audio

PostPosted: Thu Jan 10, 2019 12:35 am
by Jeff Brass
Vit Reiter wrote:Jeff,

maybe I still do not understand what you need to do? (this is because I do not know English well)

If you need to export each clip in a timeline with a specific name (eg file name / clip name), use the variable values in the Name fields on the Delivery page.

Type " % " to the Filename or Custom name (it doesn't matter) and choose any values from the contextual menu.


I'm sorry if I still do not understand what you're looking for ;)


Thanks Vit

ah...I missed the % - that would have made it easier, thanks for that. - still, I don't feel this should be needed as a simple "render TL audio" will still save a lot of time rather then manually queuing up 400 clips

Re: individual clips and audio

PostPosted: Thu Jan 10, 2019 1:59 am
by Peter Cave
Hi Jeff,

I work with Avid, FCPX, FCP7, Premiere & Resolve. None of those programs will do what you are asking. I have never seen ANY software capable of this. However, I agree it would be a useful option. There would have to be some serious audio options for routing tracks when the track count gets too high!

Re: individual clips and audio

PostPosted: Fri Jan 11, 2019 6:18 pm
by Jim Simon
Jeff Brass wrote:an effective way to currently bring in 400 clips, apply some audio processing then render each clip as individual clips with the edited audio and existing file names?


That's an unusual work flow. Most times audio isn't 'processed' until after editing. That may be why the feature you want doesn't yet exist.

You could try using something like Adobe Audition or possibly Audacity to work on the individual clips.

Re: individual clips and audio

PostPosted: Thu Jan 02, 2020 10:23 pm
by timberthrax
The workaround for this that I have found is to make each clip a compound clip that includes the correct audio. Still tedious but a little better than exporting each clip manually.

Re: individual clips and audio

PostPosted: Sat Jan 11, 2020 2:01 pm
by infocus_jc
I get this problem too.

Client for a media training session wants 1 video file per attendee.
I have hundreds of clips.
Edited the audio for each one.

But when I export individual clips, the sound tweakings are not embedded in audio... So why does Resolve has the option to export audio on individual clips ? It doesn't make sense.

And if I make a compound clip out of every video/sound clips, the render just crashes all the time.

So I'm basically stuck. Or I have to put each and every clip on a new timeline and export one by one. What a waste of time.

Running DVR 16.1.2
On Mac Os Mojave 10.14.6

Re: individual clips and audio

PostPosted: Sat Jan 11, 2020 3:02 pm
by Jim Simon
infocus_jc wrote:I have to put each and every clip on a new timeline and export one by one.


You can put them all in the same timeline, but you do have to set up each individual export with In/Out points.

Re: individual clips and audio

PostPosted: Sat Jan 11, 2020 11:07 pm
by Peter Cave
infocus_jc wrote:But when I export individual clips, the sound tweakings are not embedded in audio... So why does Resolve has the option to export audio on individual clips ? It doesn't make sense.


RTFM

Individual clips is designed specifically for round-trip workflows from other editing software. It is NOT designed for delivery of timelines or parts of timelines.

Resolve as a tool to make proxies

PostPosted: Fri Feb 07, 2020 10:17 am
by MichRichGreene
So I use Resolve to make synced and graded proxies, whether I am doing it for my own editing or if I am DIT on set and delivering to an editor or post house.
I find that it is the simplest, most precise program in which to do so, even manually syncing if necessary once the mechanisms are understood (as opposed to using jammed timecode).
I use the "Render Individual clips" mode, with the number of audio tracks set to "Same as Source".
The timecode stays the same upon export so that the post audio crew can easily relink the raw audio clips when the time comes.

However, I have begun to realize that it does have a few rather major limitations.
Namely, that 1) there is absolutely no way to alter an audio file once you link it to a video clip and 2) that you can only associate one video clip to one audio clip.

Here are few examples where those facts are indeed drawbacks:
1. Sometimes there are more than one audio source and they both need to be attached to each proxy, in order to give the editors (or myself) all possible options. So...adding extra tracks to sync beyond the main linked audio clip. Resolve does not allow this. :'(
(Or...conversely, there might be some unnecessary tracks that you wanted to delete in order to simplify things.)

2. Occasionally, especially on run-and-gun/verite/reality shoots, audio will cut at separate times from the camera crew. This is not ideal...but it happens and I am given what I am given from set without any way to alter that. So, often one video clip will sync to a first audio clip that cuts and then that same video clip will sync with the next sequential audio clip moments later.

Now, while tedious, both of these situations can be remedied in the timeline in the 'Edit' tab.
You can manually sync a second source or a second sequential clip from the same source to a single video clip.
HOWEVER...exporting using "Render Individual clips" completely ignores any of this work, defaulting instead to the original linked clip from the 'Media' tab ONLY...even if you had "Link[ed] Clips" in the 'Edit' tab.

WHY WHY WHY WHY WHY WHY WHY WHY???

I've thought that I could get around this by perhaps manually exporting each individual clip I might have to do any of this to, using the "Render Single clip" and specifying exactly how many tracks of audio there were supposed to be and by typing in the exact name myself.
HOWEVER...then the clips lose the original timecode, instead defaulting to the timeline audio!

It really seems like such a small jump to make these things possible.
WHY, oh WHY doesn't it work this way??

Does anyone have any suggestions of workarounds for these situations I stated above?
Thank you for any feedback!

Re: Resolve as a tool to make proxies

PostPosted: Mon Feb 24, 2020 11:33 pm
by MichRichGreene
MichRichGreene wrote: Does anyone have any suggestions of workarounds for these situations I stated above?
Thank you for any feedback!


Just thought I would bump this to see if I could catch some genius' attention...someone who might have an answer to this perplexing technical quandary.

Re: individual clips and audio

PostPosted: Wed Apr 08, 2020 6:16 am
by helpme12345
I have a similar issue.

I'm not well-versed in Da Vinci, but I know people use it to sync picture and audio/transcode footage that is later used to be edited in Premiere or Avid.

I am trying to use Da Vinci for this purpose. I want to sync picture and audio and export individual clips that have the new audio synced with picture.

What I've done:

I made 6 timelines, labeled by the day we shot. I dragged the audio and video from those days, and synced based on Waveform with append tracks (this was so I could make sure the correct audio synced with it's intended clip. NOTE: I did not have timecode, unfortunately). I manually checked each clip to make sure the clips synced correctly. The clips that did not sync correctly (about 35% of them), I deleted and synced manually in Premiere Pro much later.

I deleted the camera audio, so I was left with just video with it's corresponding audio. I then exported each timeline individually, with INDIVIDUAL CLIPS selected in the deliver tab. I get a bunch of proxies in a new folder I created.

What happened:

I get into Premiere, organize my project, and get to work. Unfortunately, after editing a couple scenes (none of them had dialogue so it was hard to tell, and this is my FIRST TIME DOING THIS in Da Vinci), I realized that NONE of the clips that were synced in Da Vinci synced with the audio. It just kept the camera audio, even though I deleted it from the Da Vinci timeline after I made sure it was synced with the correct clip.

We shot on a Black Magic URSA Mini and the audio was strictly boom audio (though recorded in some Stereo format I think)

I've spent weeks on this trying to avoid any mistakes, because I know one mistake can set me back a long time when it comes to delivering clips. I've never done this before. I'm just trying to make proxies to edit in premiere with the new audio synced. I know it's possible, because I've had files delivered to me in the past like this.

Does anyone have a solution or know anything about this? You would be really saving me right now.

Re: individual clips and audio

PostPosted: Wed Dec 30, 2020 6:10 am
by @StanfromIBF
Hi all, Merry Christmas and Happy New Year.

Firstly, I see many people ask "why would you want to do this" when there is a request for perfecting the rendering of multiple clips from a single clip.

One user had 400 clips s/he wanted to export, but had to manually go through all of them.

Let me start by explaining why I want to do it and what my thoughts are: I have a long clip. It's a single cut, of about 50 individual speakers.

In order for me to send that clip to each of the speakers (which is something often done at conferences), I would like to place them all on the timeline, add markers for the start and end of each speaker segment (removing "dead space between speakers") and then to cut the clip up into its parts. Then I'd like to render individual clips (with whatever filenames) either automatically (name each cut) or rename them later.

I see a lot of people saying "nothing I've ever worked with does this." Well - perhaps this would give DVR a "leg-up" on the competitors.

The idea that you'd have to sit and mark and cut individual clips, select the in-and-out points for each, set up the render, add it to the render queue and repeat anything from 20 to 400 times - is an absolute waste of what software and computers are designed to do: To remove the pain of repetitive work.

SURELY this is something that would greatly enhance workflow and speed up rendering time (saving money for commercial operations) - not so?

In my mind (I have some experience with software development), this feature is discussed repeatedly enough to warrant the "development time" to add this as a natural feature. In my mind (also), the tool is self-explanatory (individual clips), and the timeline is a single "thing," so why would you go through the hassle of creating a "clip" with audio and effects in tow if you're going to export only video (layers and effects). THAT, to me, seems more counter-intuitive than just exploring it all.

I can't imagine too many people complaining that they are working on projects and having trouble exporting WITHOUT Sound, since you can simply unlink and remove sound before render, anyway.

Does this help clarify the request, the need and logic behind including it, as a feature?

Re: individual clips and audio

PostPosted: Fri Jan 01, 2021 5:05 pm
by Michael Hancock
An interesting post. I agree with the comments made that the audio if edited within an individual clip was processed in individual clips this would be a good option.

The use cases I have are:

1) channel mapping audio
2) basic level correction / normalisation
3) possible other factors like using a de-reverb filter

Basically cleaning things up for exporting files for other editors using other NLE's. This is alongside using DR to transcode VFR (Iphone) footage to CFR.

Re: individual clips and audio

PostPosted: Tue Feb 02, 2021 6:02 pm
by Simon Rabeder
I would like to be able to do this as well. It would bevery useful for dailies, when you want to boost the audio levels or have camera mics you want to level out from a doc shoot but need to send out individual files for edit and want to go back to original audio later.

TLDR: Proxies, Dailies, Rushes

Re: individual clips and audio

PostPosted: Wed Feb 17, 2021 7:02 am
by msundman
There is really no reason for Resolve not to support this. It would be trivial to implement (the code already exists), minimal changes to the UI (a single checkbox added to the "individual clips" page), and be extremely useful in many, many situations.

Re: individual clips and audio

PostPosted: Wed Feb 17, 2021 3:26 pm
by Jim Simon
In version 17, you can now modify audio to clips in a bin. Such changes carry over wherever that clip is used in a timeline.

I wonder if that might help any.

Re: Resolve as a tool to make proxies

PostPosted: Mon Mar 01, 2021 6:56 am
by Stefan Vrachev
MichRichGreene wrote:So I use Resolve to make synced and graded proxies, whether I am doing it for my own editing or if I am DIT on set and delivering to an editor or post house.
I find that it is the simplest, most precise program in which to do so, even manually syncing if necessary once the mechanisms are understood (as opposed to using jammed timecode).
I use the "Render Individual clips" mode, with the number of audio tracks set to "Same as Source".
The timecode stays the same upon export so that the post audio crew can easily relink the raw audio clips when the time comes.

However, I have begun to realize that it does have a few rather major limitations.
Namely, that 1) there is absolutely no way to alter an audio file once you link it to a video clip and 2) that you can only associate one video clip to one audio clip.

Here are few examples where those facts are indeed drawbacks:
1. Sometimes there are more than one audio source and they both need to be attached to each proxy, in order to give the editors (or myself) all possible options. So...adding extra tracks to sync beyond the main linked audio clip. Resolve does not allow this. :'(
(Or...conversely, there might be some unnecessary tracks that you wanted to delete in order to simplify things.)

2. Occasionally, especially on run-and-gun/verite/reality shoots, audio will cut at separate times from the camera crew. This is not ideal...but it happens and I am given what I am given from set without any way to alter that. So, often one video clip will sync to a first audio clip that cuts and then that same video clip will sync with the next sequential audio clip moments later.

Now, while tedious, both of these situations can be remedied in the timeline in the 'Edit' tab.
You can manually sync a second source or a second sequential clip from the same source to a single video clip.
HOWEVER...exporting using "Render Individual clips" completely ignores any of this work, defaulting instead to the original linked clip from the 'Media' tab ONLY...even if you had "Link[ed] Clips" in the 'Edit' tab.

WHY WHY WHY WHY WHY WHY WHY WHY???

I've thought that I could get around this by perhaps manually exporting each individual clip I might have to do any of this to, using the "Render Single clip" and specifying exactly how many tracks of audio there were supposed to be and by typing in the exact name myself.
HOWEVER...then the clips lose the original timecode, instead defaulting to the timeline audio!

It really seems like such a small jump to make these things possible.
WHY, oh WHY doesn't it work this way??

Does anyone have any suggestions of workarounds for these situations I stated above?
Thank you for any feedback!


I am so happy that am not the only one stuck in this situation.
I do a job as DIT and am creating dailies. For this specific project sometimes audio in the camera is lost(die to camera being too far away from sound). In that case I sync with audio from the sound mixer. But then in the export I wish I had the output option. So I can control what kind of audio am exporting for the dailies and the editor.

Is it so hard what we are asking. Since no workaround I have to use "same as source" option.

Re: individual clips and audio

PostPosted: Fri Mar 12, 2021 9:03 am
by uibbxofy
I have same situation, I've been asked to bulking replace audio track for 250+ clips because of copyright, add one clip by one to render list is quite frustrating.

but I finally find a workaround in Davinci 17 (maybe works on previous version)

- make a compound clip of many cuts and audios, Davinci will treat this compound clip as a normal clip, and keep everything in compound clip when export which of course including the edited audio part.



or, use Vegas Pro for bulking editing if possible: make region marks for what you want to export in timeline, then use build-in script "batch render"

Re: individual clips and audio

PostPosted: Tue Jun 01, 2021 11:19 pm
by BingoGo
Anyway, it will be nice to use linked tracks with FX as option on export.

Re: individual clips and audio

PostPosted: Wed Jun 30, 2021 6:02 am
by IvanTheEditor
I can't believe that I am sitting here 2 years later and this feature is STILL not here.

There are SO MANY applications where this could be a total game-changer!! How is the usefulness of this feature even up for discussion?? :o

BMD, PLEASE!!!! :cry: :cry: :cry:

Re: individual clips and audio

PostPosted: Fri Jul 02, 2021 10:23 am
by IvanTheEditor
After spending a whole day trying to figure this out and reading all the comments from other threads talking about this same issue I've come up with a workaround that is actually pretty good. I don't know if this would work for everyone's case but I'm sharing it here in case it might help someone else out there:

1. Edit your clips on the timeline however you want - both video and audio.
2. Make as many cuts as you want to as long as you always cut both video and audio together. Every time there is a cut - that becomes a new clip.
3. Select all your clips. Cope them. Paste them at the end of your timeline. Select the new copies and turn them into one big compound clip. The reason you do that is because once those clips have been converted into a compound clip Resolve now treats that new compound clip you just created as an original clip and when using the "export as individual clips" option Resolve always exports the original clip's audio (which in this case is the audio of the compound clip which references the EDITED audio).
4. Take that compound clip and put it on the track above all your original clips. That way you'll be able to see where the cuts are.
5. This is where the magic happens. You can use automation to replicate all the cuts on your timeline. I would typically edit all my clips and cut out all the useless stuff out so I always end up with 100's of clips on my timeline. I use Keyboard Maestro for the automation part. I have it set up to do the following: add cut, go to the next edit, add cut, go to the next edit, add cut, go to the next edit, etc until I press the ESC button. It goes through the timeline in seconds.
6. Now take the chopped up compound clip (which should have the exact same cuts in the exact same places as the original clips) and move it back to the end of the timeline and export just that.
7. Don't forget to select "custom name" then "Use unique filenames" from the "file" tab on the export page otherwise it won't work.

I know it might seem like a lot of work but once you've done it a couple of times you realize it's so quick that I don't really even care if DR ever adds that feature or not. I hope this helps someone else out there. Happy editing!

Re: individual clips and audio

PostPosted: Wed Sep 01, 2021 8:53 pm
by Matt Penn
I've seen a couple reactions to this scenario by users on this forum:

    Apathy over use case since it's not part of intended product design.
    Confusion as to why this would be a useful scenario
    Contempt that editors are not reading the manuals and asking for solutions to problems created by not using the product as intended.
    Others chiming in that this hits the nail on the head as something they could use in their production

As for me, I've run into this exact scenario today, and my searching landed me here and I could not agree more that this should be in the software. I could have really used the ability to export individual clips with mixed bus audio instead of pass through *as designed*. I had a stack of raw footage, and as many others have chimed in on, needed to use Resolve to lightly process the footage (in this case .BRAW) to bake a LUT AND clean up and sync audio from an external sound recorder for client review.

I really believe this will help those who are in the position of a DIT or Assistant Editor that needs to qualify footage and turn it around for daily screening while using a familiar tool such as Resolve, while being able to preserve other clip metadata by using the "individual clips" feature!

Something to consider as a feature request.

Re: individual clips and audio

PostPosted: Thu Sep 02, 2021 8:24 am
by TheBloke
I would really love the option for changing the audio in Individual Clips.

I recently needed to do a great deal of audio->video syncing. Auto Sync Audio didn't work, so I did this with a combination of in-timeline Align Audio, plus manual work. I ended up with my original video clips laid out against the synced external audio, with each external audio clip matching the original video clip length.

Because there's no way to embed these manual syncs (another feature request), what I really wanted to do then was Individual Clip render these video clips, adding in the synced external audio. But of course there's no way to do that. I would have had to do dozens of Single Clip renders, with manually set in/out points, or the Compound Clip + recreate the cuts.

In terms of implementation:
A simple Audio dropdown in Individual Clips mode. Default to "Embedded Audio", as now. Then a new option for "Use Timeline Bus X" or similar. Plus the tickboxes for "Render one track per channel" and "Render as discrete audio tracks"

The logic would be: for each video clip on this timeline, ignore the embedded audio and instead take the audio from the selected Bus for the duration of the video clip.

This feature would have saved me a lot of time and hassle in my recent project.

EDIT: I just realised this thread isn't in the Feature Request forum. Added my suggestion to this existing FR thread. +1 it there if you also want this

Re: individual clips and audio

PostPosted: Thu Sep 02, 2021 12:57 pm
by jiiiitro
I wrote a Python script that does what you need. I’m away from big computer, but if you look at my post history it’s my most recent post. Let me know if you need a hand getting it working!

Re: individual clips and audio

PostPosted: Sat Sep 04, 2021 11:42 am
by jiiiitro
Here we are. This Python script will export each individual clip in the lowest down timeline track (i.e. track one) with the clip name, and using any render preset required. This includes any VFX or additional audio tracks - it's literally the same as manually punching in and out on every clip and adding it to the render queue.

AFAIK this solves the problems talked about in this thread. Getting python working with Resolve is a bit of a faff, but there's a few guides online that should help.

There's a few extra python calls I left in as I was debugging it, but it is tested and works - I've exported a timline with 1100 clips using it. It also works with compound clips. The comments should show you what to do - the only thing you need to change is the line with the render preset, depending on what you want to export.

Code: Select all
#!/usr/bin/env python
import os #these arent needed but hey
import sys
import time
from python_get_resolve import GetResolve
 
#######CUSTOM PARAMETERS########
render_preset_name = '72096K' #change this to the name of your render preset
################################

resolve = GetResolve()
projectManager = resolve.GetProjectManager()
project = projectManager.GetCurrentProject()
timeline = project.GetCurrentTimeline()
     
def renderjob_create( vfx_name, start_frame, end_frame ):
    render_settings = project.SetRenderSettings({'CustomName': vfx_name, 'MarkIn': start_frame, 'MarkOut': end_frame})
    project.AddRenderJob()  #add renderjob

for item in timeline.GetItemListInTrack('Video', 1) :
   print ( item.GetStart(), item.GetName(), item.GetDuration(), item.GetEnd(), item.GetLeftOffset(), item.GetRightOffset())
   outputname = item.GetName()
   output_startframe = item.GetStart()
   output_endframe = (item.GetEnd() - 1)
   renderjob_create(outputname, output_startframe, output_endframe)

Re: individual clips and audio

PostPosted: Mon Sep 06, 2021 7:24 am
by TheBloke
Thanks for sharing the script, Jack. I played about with rendering scripts last year in Lua, but hadn't got around to trying to make one specifically for this issue.

I do think this feature should be added as a standard in-UI feature so it's easily available for everyone at all times, but it's great to have a workaround that's tested and known to work well.

Re: individual clips and audio

PostPosted: Mon Sep 06, 2021 9:34 am
by jiiiitro
TheBloke wrote:Thanks for sharing the script, Jack. I played about with rendering scripts last year in Lua, but hadn't got around to trying to make one specifically for this issue.

I do think this feature should be added as a standard in-UI feature so it's easily available for everyone at all times, but it's great to have a workaround that's tested and known to work well.


I totally agree. In my case I initially wrote it because individual clips has a bug where it downsamples audio to 48k regardless of the audio encoded in the original file or the timeline settings. Once you get Python properly linked (I couldn't even say how I managed to - I just tried a load of things and eventually Resolve could see my Python install) this works a treat, though!

Another solution for those not wanting to dip into Python (or using free Resolve which I think doesn't do scripting) is to use an app called lossless-cut: https://mifi.github.io/lossless-cut/

This is based on FFmpeg and will losslessly cut (using FFmpegs passthrough, so AFAIK it's bit-perfect to your input file) a file based on an EDL input.
Therefore your workflow would be:
Export whole timeline from Resolve
Export EDL of timeline from Resolve
Import movie of timeline and EDL into Lossless Cut
Lossless Cut exports chopped up files of each clip

I had reasonably good results with this. I think you could get it perfect if you have good Excel/CSV skills.

Re: individual clips and audio

PostPosted: Mon Sep 06, 2021 10:51 pm
by Jeff Brass
jiiiitro wrote:Here we are. This Python script will export each individual clip in the lowest down timeline track (i.e. track one) with the clip name, and using any render preset required. This includes any VFX or additional audio tracks - it's literally the same as manually punching in and out on every clip and adding it to the render queue.



Thanks so much for this Jack, thats awesome- I haven't used python before in resolve but will definitely be giving this a go. Always looking for new things to learn :)

Re: individual clips and audio

PostPosted: Mon Dec 20, 2021 3:44 am
by Mike Potton
I get that passthrough audio made sense when Resolve was primarily a grading app, but now that it's a lot more powerful being able to batch process audio, keep filenames and TC using export individual clips would be a godsend for a few workflows.

I came across this thread looking for a solution, bummer to find it's been an ongoing request.

Re: individual clips and audio

PostPosted: Mon Dec 20, 2021 8:03 am
by TheBloke
Mike Potton wrote:I came across this thread looking for a solution, bummer to find it's been an ongoing request.
I opened a feature request for it if you want to add your +1, here: viewtopic.php?f=33&t=150610

Re: individual clips and audio

PostPosted: Thu Feb 10, 2022 7:59 pm
by Glen Stromquist
I too would like to see this feature. I edit 10 to 60 second clips to create stock video. Some clips I want sound where it adds to the visual content, some I don't so I drag the audio level right down. For others I will tweak audio in the timeline to turn it up or down.

I often will do 40-50 clips at a time, and it would be very nice if I could render all these clips with the audio levels I have set for each individual clip.

Re: individual clips and audio

PostPosted: Fri Feb 18, 2022 4:02 am
by Jay Bills
Just wanted to say thanks to you, Jack - this script is just what the dr ordered, and has been a big help. Been after this for a long time.

I'm still pretty new to the dev stuff for Resolve, but it was easy to get your script going once I figured out I needed to drop in the BMD-supplied python_get_resolve.py into the folder next to it, so your script could import it. It fired right up after that!

This is a great fix for the problem. Hey, no pressure (I know, privacy) but if you PM me the email you use for Paypal, I'd love to buy you a beverage of some kind. If that's not against the rules. Or if not, just know that this is really going to save me a lot of time and I am hugely grateful - I was running out audio for 70-100 individual shots per episode of this little animated show I work on MANUALLY up until now and it was such a chore. Awesome!

Re: individual clips and audio

PostPosted: Thu Apr 14, 2022 8:12 pm
by Burmestr
I'm upset Davinci Resolve Studio ignores audio effects when exporting individual clips.

I'm surprised that some community members are literally against this feature request :roll: May be that's not a "normal| workflow, but as we see it's a frequent request. I have a 2 hours long speech and I needed just to cut specific quotes and I have like 700 of them, each one is named manually and I used Data Burn-In to add %ClipName as a Custom Text to each clip, so I got some subtitles effect this way, and I was so happy that Davinci got this Export of individual clips and you can name each file via %ClipName, but the audio tuning is completely ignored! I'd call it a bug, not even a missing feature. There must be a checkbox saying "Apply all Fairlight stuff to individual clips" and that's all!

Davinci has so many options to fit almost any type of workflow and I bet that's why we all love it. I can understand that they don't want to add VFR support, because it's professional software, so I use Handbreak to fix my VFR files before importing it into Davinci, but I didn't expect that audio effects may be ignored that way..

What a bummer..

Re: individual clips and audio

PostPosted: Thu Apr 14, 2022 8:28 pm
by Burmestr
jiiiitro wrote:Here we are. This Python script will export each individual clip in the lowest down timeline track (i.e. track one) with the clip name, and using any render preset required. This includes any VFX or additional audio tracks - it's literally the same as manually punching in and out on every clip and adding it to the render queue.

AFAIK this solves the problems talked about in this thread. Getting python working with Resolve is a bit of a faff, but there's a few guides online that should help.

There's a few extra python calls I left in as I was debugging it, but it is tested and works - I've exported a timline with 1100 clips using it. It also works with compound clips. The comments should show you what to do - the only thing you need to change is the line with the render preset, depending on what you want to export.

Code: Select all
#!/usr/bin/env python
import os #these arent needed but hey
import sys
import time
from python_get_resolve import GetResolve
 
#######CUSTOM PARAMETERS########
render_preset_name = '72096K' #change this to the name of your render preset
################################

resolve = GetResolve()
projectManager = resolve.GetProjectManager()
project = projectManager.GetCurrentProject()
timeline = project.GetCurrentTimeline()
     
def renderjob_create( vfx_name, start_frame, end_frame ):
    render_settings = project.SetRenderSettings({'CustomName': vfx_name, 'MarkIn': start_frame, 'MarkOut': end_frame})
    project.AddRenderJob()  #add renderjob

for item in timeline.GetItemListInTrack('Video', 1) :
   print ( item.GetStart(), item.GetName(), item.GetDuration(), item.GetEnd(), item.GetLeftOffset(), item.GetRightOffset())
   outputname = item.GetName()
   output_startframe = item.GetStart()
   output_endframe = (item.GetEnd() - 1)
   renderjob_create(outputname, output_startframe, output_endframe)


Can you please instruct a noob how to apply it? I got Python 3.6 and Davinci console for Python 3 starts up well, but I have no idea what should I do next with this script to get it working as intended :cry:

Re: individual clips and audio

PostPosted: Mon Apr 18, 2022 7:53 am
by JesseBrauning
I see this same set of reply types under every feature request post in this forum. Ad Nauseum. From many many different editors, all of whom seem to be suffering from a kind of rigid thinking, a lack of curiosity, and what seems to be a vast ego that rejects all new ideas.


Matt Penn wrote:I've seen a couple reactions to this scenario by users on this forum:

    Apathy over use case since it's not part of intended product design.
    Confusion as to why this would be a useful scenario
    Contempt that editors are not reading the manuals and asking for solutions to problems created by not using the product as intended.
    Others chiming in that this hits the nail on the head as something they could use in their production


Re: individual clips and audio

PostPosted: Sat Apr 23, 2022 3:04 am
by Peter Cave
I only criticise ideas that would compromise my ability to work in a broadcast environment.
I also see a lot of comments from "prosumers" who think that broadcast professionals are all arrogant pricks who are resistant to new ideas. I have had to adapt more times than I care for, and have had to put up with really awful software along the way. Many ideas will just clutter the app, because some users wish for software inclusions that will suit their own personal needs. An app like Resolve needs to work efficiently for all users, so some requests are just too specialised to include, or can be achieved in other ways. Some requests are just NOT good ideas!

Re: individual clips and audio

PostPosted: Sat Apr 23, 2022 3:13 pm
by Jim Simon
Wow, Peter. We agree on something! :)

Re: individual clips and audio

PostPosted: Tue Apr 26, 2022 11:09 am
by Jeff Brass
Peter Cave wrote:I only criticise ideas that would compromise my ability to work in a broadcast environment.
I also see a lot of comments from "prosumers" who think that broadcast professionals are all arrogant pricks who are resistant to new ideas. I have had to adapt more times than I care for, and have had to put up with really awful software along the way. Many ideas will just clutter the app, because some users wish for software inclusions that will suit their own personal needs. An app like Resolve needs to work efficiently for all users, so some requests are just too specialised to include, or can be achieved in other ways. Some requests are just NOT good ideas!


for the most part I agree Peter, but I am curious as to why this as an option, would compromise your (broadcast) workflow, and why its "just NOT a good idea"

I don't work in broadcast. but I do work, so not a prosumer. There are times that for a client, or an agency, I need to provide the clips with the synced audio. doing that manually for 2,3 or 4 hundred clips is a poor use of time. So to me, the ability to be able to send individual clips with replaced audio IS a good idea.

All I'm asking for is the OPTION, so nothing would be taken away from a broadcast workflow. And no, I don't think this would clutter the software

Re: individual clips and audio

PostPosted: Wed Apr 27, 2022 12:51 am
by Peter Cave
I would prefer a dedicated function to sync dailies rather than an option that could be overlooked and mess up a round trip workflow.

Re: individual clips and audio

PostPosted: Fri Aug 26, 2022 12:25 pm
by bumshik
there is a easy solution...read carefully....
1.Link ur video and separate audio file clicking opt + cmd + L
2. Then drag the linked clip into media pool for making subclip...
3. Then drag back the clip into ur timeline
4. go to deliver page and export individual clip with audio