Skip to main content
Inspiring
July 2, 2018
Answered

4k Rotobrush Killing My PC

  • July 2, 2018
  • 3 replies
  • 15900 views

I've got a 30-second clip (799 frames) of a table rendered in DNxHR UHD HQ (3840x2160) that's roughly 2.8GB in size. The table is filmed with the camera on a monopod, so there is a little bit of gentle camera sway (desirable), but it's really pretty steady. I need to use the Rotobrush tool to punch the table out of the clip and place it onto an all-white background.

This is M-U-R-D-E-R-I-N-G my PC.

After I rotobrush the mask into the proper shape, rendering frames (propagating the mask on down the span) goes fairly quickly for the first 5 frames or so after which it slows down massively to maybe 5-7 seconds per frame. The more frames it renders, the longer the next frame will take. After it propagates the mask to the desired position on the span, you can forget about scrubbing across the green rendered area to see the results; it can take up to 10 seconds per frame to pull up for review frames that have supposedly already been rendered. That's as long as it took to render them (if not longer). Completing the rotoscope process like this takes hours on top of hours.

If that wasn't bad enough, attempting to freeze the brush strokes sends my PC into a rendering hell from which it usually does not recover. Trying to render this 30sec project takes multiple hours just to get up to 2/3 completion where it will inevitably give me an "out of memory" error and crash my display driver and/or my entire OS.

Now, it would seem to be very obviously the case that my PC is not beefy enough to handle working with 4k video. Here are my specs:


AE CC v15.1.1
Windows 10
8th Gen Intel i7 8700k 6 core/12 thread @ 4.7gHz
Nvidia 980ti
16GB DDR4 RAM
Samsung 960 EVO 500GB NVMe SSD

4xHDD 1TB RAID10 array

I understand that my RAM count is pretty low and 32GB is really recommended. However, my NVMe SSD (where the AE cache and my RAM pagefile is located) is literally capable of read/write speeds in the gigabytes/sec range and the RAID10 array (where the clip is located) can easily read several-hundred MB/s. I have tried putting the clip on the NVMe SSD instead of the HDD RAID and there is no impact on performance at all. Long story short, even though I'm almost certainly running out of RAM, my system should be able to read/write the ENTIRETY of the clip (let alone a single frame) nearly once per second without much issue.

I have tried watching my system performance in Task Manager as After Effects is rendering frames on the span, freezing the rotoscope brushstrokes, or attempting (and miserably failing) to scrub through rendered frames within a span. I was hoping to see a bottleneck somewhere, but I couldn't find anything. GPU utilization is in the low single digits. RAM utilization is, naturally, maxed out, but my NVMe SSD is hardly breaking a sweat with transfer rates of 40-250MB/s (most often around the 30MB/s mark). My processor utilization is a mere 40ish% and it isn't even bothering to turbo up to its max boost clock; it's just sitting at 4.3gHz. Occasionally (usually when scrubbing supposedly already-rendered frames), it seems like AE will attempt to call up an astonishing 800 MB per frame, which hardly makes sense.

In summary, it seems like AE is either hardly using my hardware yet still taking FOREVER to complete a task, OR it's calling on so much data per frame that it hardly makes any sense and it seems like working with this 30sec clip would require no less than 1/4 TB of RAM or more to even be properly functional. Could anyone help me understand what's going on here? Is my lack of RAM really causing all these issues, or is this just normal behavior for 4k video?

Thanks!

This topic has been closed for replies.
Correct answer Roei Tzoref
After I rotobrush the mask into the proper shape, rendering frames (propagating the mask on down the span) goes fairly quickly for the first 5 frames or so after which it slows down massively to maybe 5-7 seconds per frame. The more frames it renders, the longer the next frame will take.

yes Rotobrush would do that, you should create a new base frame after as much frames as you see needed to keep performance. like the advice given here: rotobrush slowing down

Now, it would seem to be very obviously the case that my PC is not beefy enough to handle working with 4k video. Here are my specs:

16GB RAM is not beefy.

Is my lack of RAM really causing all these issues, or is this just normal behavior for 4k video?

Yes and Yes. Rotobrush is a resource Hog and could be difficult for High Resolutions

you can also try the advice given here as to working on a lower resolution footage, the using it as a track matte with some filtering to improve the edge: Rotobrush with R3D RAW files

3 replies

MCanada
Participant
July 27, 2021

I just figured if you purge memory (Edit/purge/All memory & Disk cache) and then refresh memory over clean my Mac, it will be even faster.

MCanada
Participant
July 27, 2021

I'm on a IMac Pro Xeon (2017) 32gb of Ram with 8Gb of Video.

I have a 4K with 35 sec, and it's crazy about the time... actually it does not matter your Processor that much, as long as you have 64Gb or even 128Gb of ram, you going to be fine. Basically, I'm rotobrushing a sec at a time and between each sec rendered, wait a coupe of seconds or even a minute to refresh the RAM using Clean my Mac before rotobrush another second of footage. This is the best way I figured to do that. If anyone have any thoughts, please let us know.

Cheers!

Roei Tzoref
Roei TzorefCorrect answer
Legend
July 2, 2018
After I rotobrush the mask into the proper shape, rendering frames (propagating the mask on down the span) goes fairly quickly for the first 5 frames or so after which it slows down massively to maybe 5-7 seconds per frame. The more frames it renders, the longer the next frame will take.

yes Rotobrush would do that, you should create a new base frame after as much frames as you see needed to keep performance. like the advice given here: rotobrush slowing down

Now, it would seem to be very obviously the case that my PC is not beefy enough to handle working with 4k video. Here are my specs:

16GB RAM is not beefy.

Is my lack of RAM really causing all these issues, or is this just normal behavior for 4k video?

Yes and Yes. Rotobrush is a resource Hog and could be difficult for High Resolutions

you can also try the advice given here as to working on a lower resolution footage, the using it as a track matte with some filtering to improve the edge: Rotobrush with R3D RAW files

Inspiring
July 3, 2018

Thank you for the help. How much RAM do you recommend to make this problem go away? <3

Roei Tzoref
Legend
July 3, 2018

the general advice for optimizing Ae's performance is to get as much RAM as you can but I would not say this is the absolute assurance it will solve your situation because I haven't tried it myself for your scenario. if you can test and see, please come back with your conclusion.

If you use Ae for heavy processing at least get 32GB that's my advice, although I know users who use 64, 128, and even 256GB of RAM.