RollingDepth icon indicating copy to clipboard operation
RollingDepth copied to clipboard

Split a long video into smaller segments and calculate the depth separately

Open jingxin-yingsi-shaosiming-daye opened this issue 1 year ago • 5 comments

If the video is too long and the depth consumes a lot of memory during the composition phase, can it be changed to many 10-second segments to calculate the depth video and then merge it into the final depth video?

Hi, what is the resolution and how many frames do you have? In most cases it should fit into the memory. Otherwise, you can try to use a larger downsample factor during the co-alignment process by passing coalign_kwargs={'factor': 20} to this line

markkua avatar Apr 10 '25 20:04 markkua

I want to handle a two-hour movie in 4k resolution......

@markkua Isn't that technologically impossible at this stage? I use cpu to run, it does not require high computer memory

I assume the movie is not "long take"? In this case, you can split it into several cuts by the transitions.

markkua avatar Apr 16 '25 05:04 markkua

thanks