stable-diffusion-webui-depthmap-script icon indicating copy to clipboard operation
stable-diffusion-webui-depthmap-script copied to clipboard

[FEATURE REQUEST] Batch processing for videos?

Open eyeEmotion opened this issue 1 year ago • 2 comments

Hi,

is there a reason why you can't batch process video's? I have to cut a 2 hour movie into 3 minute-parts, even 2 minute-parts when using Depth Anything (which I finally got working and the results are amazing for what I need it for). And it takes around 30 to 40 minutes for generating, computing and saving a Depthmap video file. And then I have to manually add the next video. So I have to constantly be around to start the next clip and I have around 60 of them. Because it also consumes a lot of my RAM, there is not much else I can do on my computer while it's processing. So for me it would be ideal to line up a few videos so it can do its thing during the night, when I'm sleeping.

As the elements are already there, wouldn't this be straightforward to implement? And ofcourse make sure the generated depthmap videos don't get overwritten by the next in line. I think that can be addressed by saving the file for example as "dpt_" + filename of the source video.

Would help me a lot, as I already have a lot of manual cutting and merging to do because of the limits with RAM-Memory.

Cheers.

eyeEmotion avatar Mar 08 '24 18:03 eyeEmotion

This sounds like an amazing idea!

petermg avatar Mar 14 '24 06:03 petermg

The proper fix would be to make video generation streamable - it converts some frames (maybe, like, 100), then saves some frames, appending them to some file.

semjonsona avatar Jun 03 '24 08:06 semjonsona