- Hello RenderGarden
- Things to Keep in Mind 🌼
- Performance Benchmarks
- Adobe Licensing User Error
- Final Thoughts
Recently, I found myself deinterlacing footage from two Blu-ray discs using some Red Giant After Effects plugins1. The two compositions were HD 1080 59.94i files2, 51 minutes and 94 minutes each. My jaw dropped when I saw the estimated time for just the first file start at 50 hours, and keep increase. Plenty of CPU was still available on the machine…
That got me searching for a way to multithread After Effects renders.
RenderGarden by Mekajiki is a neat way to chunk and multithread renders from After Effects. It invokes
aerender which is a headless way of running After Effects. It costs $99 and comes with a 7 day trial.
In my case I had two computers (the MacBook Pro and the iMac) with the project files accessible via a Synology NAS. I installed After Effects on both machines and procured a render-only license from Red Giant via email (less than one business day) to use the iMac as a headless render node.
Things to Keep in Mind 🌼
RenderGarden’s getting started videos are quite helpful3 and got me up and running in less than an hour. Here is a summary of some things I additionally learned from experience.
- A seed is an atomic unit of work. The number of seeds a composition is broken up into is set when generating the script files from After Effects. It cannot be changed afterwards.
- Cancelled renders that are later re-seeded/restarted do not pickup from where they left off. The file segment is overwritten and starts over from the beginning (the log file is appended to though).
- Having the Recycle Bin feature on the Synology is helpful in the event of recovering accidentally deleted segments.
- If the Launch Gardener window doesn’t appear after launching the app, it is probably hidden behind other windows. Use Expose to reveal it, or click on the Python launcher in the dock.
- The Launch Gardener window has four types of Gardener nodes.
aenode type is for actually running After Effects
aerenderin the background.
ffmpegnode type is only used for post-processing conversion to H.264, etc. and the
combinenode is to combine segments together. This was slightly confusing at first because RenderGarden technically also uses FFmpeg to stitch movie segments together, as noted in the documentation.
notifynode type is for some type of notification system, which I didn’t use.
- The folder that you select for the
aenode is essentially the Gardener watch folder. It will continually scan it for work, and it can either be the parent RenderGarden folder or that of an individual composition.
- I find it good practice to only launch
aetype nodes and wait for them all to complete before running
combinenodes. That way I can inspect logs and file sizes and preview the segments for issues before combining them.
- For network machines only running Gardener nodes, licensing After Effects is usually not necessary. As long as the composition and render are not using proprietary codecs first like MPEG-2 or AC3 audio
aerenderwill run on the network node and the Adobe login is only needed on the primary machine. Double check the full list of formats first on this Adobe blog post.
Since I was running renders on both the MacBook Pro (MBP) as well as the iMac, I was curious how the two would compare in terms of speed and CPU usuage. Both compositions (A and B) where seeded to eight segments.
The following table is sorted by End Time ascending. As you can see both the Quad Core iMac i5 and Quad Core MBP i7 have an ideal throughput of roughly 20 frames/minute.
|Comp||Seed||Machine||Frames Start||Frames End||Num Frames||Elapsed Mins||Frames/Min||End Time||Graceful End|
What are “Graceful” renders? Read on…
Some Idle CPU is Good
I initially started with the RenderGarden recommendation of no more Gardeners than the number of physical cores4, which is a maximum of four on each machines.
However I saw via iStat Menus that the MacBook Pro had still roughly 20% idle CPU, so I added an additional fifth node…
Sure enough, the idle CPU was now less than 10%. However, as the table showed above, doing so dropped the throughput drops to 13 frames/minute, which even with five processes is
100 - (13*5)/(20*4) = 20 percent slower. I later went back to three-four nodes max, and the throughput stabilized to 20 frames/minute.
iMac i5 vs MacBook Pro i7
To my delight, the iMac’s older i5 processor was more than enough to keep pace with the MacBook Pro’s i7. With two render nodes, it happily hummed along with comparable CPU usage. The time per frame as you can see is also about the same (two to three seconds each).
Complete specs of each machine are listed on the Gear page.
Adobe Licensing User Error
Shout out to the folks at Mekajiki who even reached out to Adobe to help root cause this issue. Now that’s customer support!
The log file for a successful
ae segment render looks like the following.
PROGRESS: 1;34;40;09 (21280): 0 Seconds PROGRESS: 1;34;40;09 (21280): 1 Seconds PROGRESS: 4/7/19 3:01:44 AM EDT: Finished composition 00003 (30p). PROGRESS: Total Time Elapsed: 26 Hr, 15 Min aerender version 16.1x204 PROGRESS: Launching After Effects... PROGRESS: ...After Effects successfully launched RENDER COMPLETE 2019-04-07 09:03:01.130557 RenderGarden end 2019-04-07 09:03:01
The un-graceful renders however would also complete with
Finished composition, but nothing else would be written. The Terminal window would just stay there without writing
Total Time Elapsed ... RENDER COMPLETE ... etc. On some rare occassions, the filename also didn’t rename from
I started to see these strange popup windows on the MBP but didn’t know what they meant at first.
It took me a while to realize this was because I never verified my email with by Adobe! If you notice from the table before, the ungraceful completions were (1) only on the main MacBook Pro which needed to be licensed and (2) only occured towards the end, probably when the check was failing. Opening up the actual After Effects program displayed the following prompt.
In either case, the actual segement completed. If you encounter this situation, before issuing CTRL+C to “gracefully” exit RenderGarden Terminal window, check if the file needs to be renamed to
complete_ first. Otherwise another free node may overwrite the actually completed segment.
Basically, make sure you verify your email with Adobe first or you’ll be a newb like me.
RenderGarden is amazing. If you’re planning to use After Effects for a long render, definitely check it out and procure render-only licenses for any plugins you’ll be using on the network.
If it’s your first time, I suggest manually verify/scrub segments for proper length and sync issues before running
Happy gardening! 🌱
In particular, I used Red Giant’s Deinterlace plugin and the Deartificater plugin, the latter of which really increases render time. ↩
Yes, interlaced H.264 is a thing. See https://en.wikipedia.org/wiki/Blu-ray#Video for the full list of supported rates. The footage was from a dance recital, and 1080p is only possible at 24 fps. The original authors probably captured it at the higher frame rate for smoother motion. ↩