Error
- After Effects User Guide
- Beta releases
- Getting started
- Workspaces
- Projects and compositions
- Importing footage
- Text and Graphics
- Text
- Motion Graphics
- Work with Motion Graphics templates in After Effects
- Use expressions to create drop-down lists in Motion Graphics templates
- Work with Essential Properties to create Motion Graphics templates
- Replace images and videos in Motion Graphics templates and Essential Properties
- Animate faster and easier using the Properties panel
- Drawing, Painting, and Paths
- Overview of shape layers, paths, and vector graphics
- Paint tools: Brush, Clone Stamp, and Eraser
- Taper shape strokes
- Shape attributes, paint operations, and path operations for shape layers
- Use Offset Paths shape effect to alter shapes
- Creating shapes
- Create masks
- Remove objects from your videos with the Content-Aware Fill panel
- Roto Brush and Refine Matte
- Layers, Markers, and Camera
- Animation, Keyframes, Motion Tracking, and Keying
- Animation
- Keyframe
- Motion tracking
- Keying
- Transparency and Compositing
- Adjusting color
- Effects and Animation Presets
- Effects and animation presets overview
- Effect list
- Effect Manager
- Simulation effects
- Stylize effects
- Audio effects
- Distort effects
- Perspective effects
- Channel effects
- Generate effects
- Time effects
- Transition effects
- The Rolling Shutter Repair effect
- Blur and Sharpen effects
- 3D Channel effects
- Utility effects
- Matte effects
- Noise and Grain effects
- Detail-preserving Upscale effect
- Obsolete effects
- Expressions and Automation
- Expressions
- Expression basics
- Understanding the expression language
- Using expression controls
- Syntax differences between the JavaScript and Legacy ExtendScript expression engines
- Editing expressions
- Expression errors
- Using the Expressions editor
- Use expressions to edit and access text properties
- Expression language reference
- Expression examples
- Automation
- Expressions
- Immersive video, VR, and 3D
- Construct VR environments in After Effects
- Apply immersive video effects
- Compositing tools for VR/360 videos
- Advanced 3D Renderer
- Import and add 3D models to your composition
- Import 3D models from Creative Cloud Libraries
- Image-Based Lighting
- Extract and animate lights and cameras from 3D models
- Tracking 3D camera movement
- Cast and accept shadows
- Embedded 3D model animations
- Shadow Catcher
- 3D depth data extraction
- Modify materials properties of a 3D layer
- Work in 3D Design Space
- 3D Transform Gizmos
- Do more with 3D animation
- Preview changes to 3D designs real time with the Mercury 3D engine
- Add responsive design to your graphics
- Views and Previews
- Rendering and Exporting
- Basics of rendering and exporting
- H.264 Encoding in After Effects
- Export an After Effects project as an Adobe Premiere Pro project
- Converting movies
- Multi-frame rendering
- Automated rendering and network rendering
- Rendering and exporting still images and still-image sequences
- Using the GoPro CineForm codec in After Effects
- Working with other applications
- Collaboration: Frame.io, and Team Projects
- Memory, storage, performance
- Knowledge Base
Memory (RAM) usage in 64-bit After Effects
Memory preferences
Set memory preferences by choosing Edit > Preferences > Memory (Windows) or After Effects > Preferences > Memory & Performance (macOS).
As you modify settings in the Memory dialog box, After Effects dynamically updates helpful text in the dialog box that reports how it will allocate and use memory and CPUs.
The RAM reserved for other applications preference is relevant whether or not Enable Multiple-Frames Rendering is selected.
RAM Reserved For Other Applications
Increase this value to leave more RAM available for the operating system and for applications other than After Effects and the application with which it shares a memory pool. If you know that you will be using a specific application along with After Effects, check its system requirements and set this value to at least the minimum amount of RAM required for that application. Because performance is best when adequate memory is left for the operating system, you can’t set this value below a minimum baseline value.
Memory pool shared between After Effects, Premiere Pro, Photoshop, and Audition
After Effects shares a memory pool with Adobe Creative Cloud applications. This is indicated in the Memory preferences panel by the icons for each of these applications at the top of the panel. The icons are dimmed for the applications that are not running.
A memory balancer prevents swapping of RAM to disk by dynamically managing the memory allocated to each of the applications. Each application registers with the memory balancer with some basic information: minimum memory requirements, maximum memory able to be used, current memory in use, and a priority. The priority has three settings: low, normal, and highest. Highest is currently reserved for After Effects and Premiere Pro, when it is the active application. Normal is for After Effects in the background or Adobe Media Encoder in the foreground. Low is for background servers of Premiere Pro or Adobe Media Encoder in the background.
An example of a practical result of the shared memory pool is that starting Premiere Pro will decrease the amount of RAM available to After Effects for previews; quitting Premiere Pro will immediately free RAM for After Effects and extend the possible duration of previews.
Memory dialog box
The Memory Details dialog box contains additional information about installed RAM and current and allowed RAM usage. It also includes a multicolumn table listing processes related to the applications. The table includes information about each process, such as ID, Application Name, Minimum Needed Memory, Maximum Usable Memory, Maximum Allowed Memory, Current Memory, and Current Priority.
To open the dialog box, choose Edit > Preferences > Memory (Windows) or After Effects > Preferences > Memory & Performance (macOS), and select the Show Memory Usage Details button at the bottom of the preferences dialog box.
You can copy the information to the clipboard with the Copy button.
Memory (RAM) requirements for rendering
Memory requirements for rendering of a frame (either for previews or for final output) increase with the memory requirement of the most memory-intensive layer in the composition.
After Effects renders each frame of a composition one layer at a time. For this reason, the memory requirement of each individual layer is more relevant than the duration of the composition or the number of layers in the composition when determining whether a given frame can be rendered with the available memory. The memory requirement for a composition is equivalent to the memory requirement for the most memory-intensive single layer in the composition.
The memory requirements of a layer increase under several circumstances, including the following:
Increasing the project’s color bit depth
Increasing the composition resolution
Using a larger source image
Enabling color management
Adding a mask
Adding per-character 3D properties
Precomposing without collapsing transformations
Using certain blending modes, layer styles, or effects, especially those involving multiple layers
Applying certain output options, such as 3:2 pulldown, cropping, and resizing
Adding shadows or depth-of-field effects when using 3D layers
After Effects requires a contiguous block of memory to store each frame; it cannot store a frame in pieces in fragmented memory. For information about how much RAM is required to store an uncompressed frame, see Storage requirements for output files.
For tips on decreasing memory requirements and increasing performance, see Improve performance by simplifying your project.
Purging memory (RAM)
Occasionally, After Effects may display an alert message indicating that it requires more memory to display or render a composition. If you receive an out-of-memory alert, free memory or reduce the memory requirements of the most memory-intensive layers, and then try again.
You can free memory immediately with commands from the Edit > Purge menu:
- All Memory & Disk Cache
- All Memory
- Undo
- Image Cache Memory
- Snapshot
Purging memory is faster for large projects. Purging memory do not synchronize the project database; If you want force synchronization of the project database, press the Option (macOS) or Alt (Windows) key and choose Edit >Purge > All Memory. You can do this if you see that the Composition panel fails to update correctly and the Purge> All Memory or All Memory & Disk Cache commands do not help.
|
Solution |
“Unable to allocate enough memory to render the current frame....” |
Either decrease the memory requirements for the rendering of this frame, or install more RAM. |
“Unable to allocate [n] MB of memory....” |
Either decrease the memory requirements for the rendering of this frame, or install more RAM. |
“Image buffers of size [width]x[height] @ [depth] bpc ([n] GB) exceed internal limits...” |
Decrease the memory requirements for the rendering of this frame. The maximum amount of memory that one frame can occupy is 2 GB. |
“Memory allocation of [n] GB exceeds internal limits...” |
Decrease the memory requirements for the rendering of this frame. The maximum size for any single memory allocation is 2 GB. |
“Frame dimensions exceed internal limits. Decrease the dimensions to render this frame." |
Decrease the dimensions of the composition or solid and ensure it's under the limit of 16384. This limit applies to Advanced 3D or Draft 3D and to solids, images, and textures, including ones contained inside 3D models. |
Storage requirements for output files
Use the following formula to determine the number of megabytes required to store one uncompressed frame at full resolution:
(height in pixels) x (width in pixels) x (number of bits per channel) / 2,097,152
The value 2,097,152 is a conversion factor that accounts for the number of bytes per megabyte (220), the number of bits per byte (8), and the number of channels per pixel (4).
Some example frame sizes and memory requirements, in megabytes (MB) per frame:
DV NTSC (720x480) frame in an 8-bpc project: 1.3 MB
D1/DV PAL (720x576) frame in an 8-bpc project: 1.6 MB
HDTV (1920x1080) frame in a 16-bpc project: 16 MB
4K digital cinema (4096x2304) frame in a 32-bpc project: 144 MB
Because video is typically compressed during encoding when you render to final output, you can’t just multiply the amount of memory required for a single frame by the frame rate and composition duration to determine the amount of disk space required to store your final output movie. However, such a calculation can give you a rough idea of the maximum storage space you may need. For example, one second (approximately 30 frames) of uncompressed standard-definition 8-bpc video requires approximately 40 MB. A feature-length movie at that data rate would require more than 200 GB to store. Even with DV compression, which reduces file size to 3.6 MB per second of video, this storage requirement translates to more than 20 GB for a typical feature-length movie.
It is not unusual for a feature-film project—with its higher color bit depth, greater frame size, and much lower compression ratios—to require terabytes of storage for footage and rendered output movies.
Caches: RAM cache, disk cache, and media cache
As you work on a composition, After Effects temporarily stores some rendered frames and source images in RAM, so that previewing and editing can occur more quickly. After Effects does not cache frames that require little time to render. Frames remain uncompressed in the image cache.
After Effects also caches at the footage and layer levels for faster previews; layers that have been modified are rendered during the preview, and unmodified layers are composited from the cache.
When the RAM cache is full, any new frame added to the RAM cache replaces a frame cached earlier. When After Effects renders frames for previews, it stops adding frames to the image cache when the cache is full and begins playing only the frames that could fit in the RAM cache.
Green bars in the time ruler of the Timeline, Layer, and Footage panels mark frames that are cached to RAM. Blue bars in the Timeline panel mark frames that are cached to disk.
Layer Cache Indicators
Layer cache indicators allow you to visualize cached frames on a per-layer basis. This is helpful when trying to determine which layers are cached in a composition.
Enable the Layer Cache Indicators option by pressing Ctrl (Windows) or Command (macOS), and then choose Show Cache Indicators in the Timeline panel menu. The Show Cache Indicators option must be enabled in the menu to see the indicators.
Showing the cache indicators decreases performance slightly.
The RAM cache is automatically purged when you quit After Effects.
You can choose to purge the RAM cache, or the RAM cache and the disk cache from the Edit > Purge menu.
Choose Edit > Purge > All Memory & Disk Cache to purge the contents of all RAM caches (like the existing All Memory command) and the contents of the disk cache (like the existing Empty Disk Cache button in the Media & Disk Cache preferences).
After Effects purges memory faster for large projects. Purging memory do not synchronize the project database. If you want force synchronization of the project database, press the Option (macOS) or Alt (Windows) key and choose Edit >Purge > All Memory. You can do this if you see that the Composition panel fails to update correctly and the Purge> All Memory or All Memory & Disk Cache commands do not help.
Purging the disk cache for one version of After Effects doesn't purge the cache for other versions. For example, purging the disk cache from After Effects won't affect the disk cache for After Effects CS6.
The global performance cache
The global performance cache consists of the following:
Global RAM cache: When you modify a composition, frames in the RAM cache are not automatically erased and are reused if you undo the change or restore the previous state of the composition. The oldest frames in the RAM cache are erased when the RAM cache is full and After Effects needs to cache new frames.
Persistent disk cache: Frames cached to disk are still available, even after closing After Effects.
The disk cache is not used for previews. It is only used for previews without real time playback of cached frames and audio. (See Previewing.)
Disk Cache is enabled by default. For disk cache preferences, and to enable, or disable disk caching:
-
Choose Edit > Preferences > Media & Disk Cache (Windows) or After Effects > Preferences > Media & Disk Cache (macOS), and select or deselect Enable Disk Cache.
Disk cache preferences allow you to select a folder to contain your cache.
-
Select the Choose Folder button, and then select OK (Windows) or Choose (macOS).
To empty the disk cache:
-
Select the Empty Disk Cache button or Edit > Purge > All Memory and Disk Cache option.
Even when disk caching is enabled, each frame must be able to fit into a contiguous block of RAM. Enabling the disk cache doesn’t help with limitations regarding inadequate RAM to hold or render a single frame of your composition.
For best performance with disk caching, select a folder on a different physical hard disk than your source footage. It is best if the folder is on a hard disk that uses a different drive controller than the disk that contains your source footage. A fast hard drive or SSD with as much space allocated as possible is recommended for the disk cache folder. The disk cache folder can’t be the root folder of the hard disk.
As with the RAM cache, After Effects only uses the disk cache to store a frame if it’s faster to retrieve a frame from the cache than to rerender the frame.
The Maximum Disk Cache Size setting specifies the number of gigabytes of hard disk space to use. The default disk cache size is set to 10% of the volume's total size, up to 100 GB.
The application checks to make sure that you have 10 GB free above what is set in Preferences > Media & Disk Cache. After Effects warns you if there is not enough room for the disk cache.
Global RAM cache
Global RAM cache offers these advantages:
- Cached frames are restored after an undo/redo.
- Cached frames are restored when a composition or layer is returned to a previous state, such as turning a layer's visibility off then back on.
- Reusable frames are recognized anywhere on the timeline (e.g., when using loop expressions, time remapping, or copy/paste of keyframes), not just adjacent frames.
- Reusable frames are recognized on duplicated layers or duplicated compositions;
- Cache is not automatically destroyed by a render queue rendering using anything other than Current Settings.
Persistent disk cache
Once you save a project, frames in the disk cache are retained even after you close the project or quit After Effects. This protocol is called persistent disk cache. The disk cache is no longer emptied at the end of a session. With the persistent disk cache feature, frames stored in the disk cache is retained between sessions. This saves rendering time as you work on a project or other projects that use the same cached frames.
Upon opening a project, the disk cache is scanned looking for frames matching those in the project, and makes them available for use. The disk cache contains frames from all projects you've opened in the same or earlier sessions, so disk-cached frames from one project will be retrieved for reuse in other projects that need those same frames. As the cache is scanned, blue marks gradually fill in on your timeline.
Because previous versions of After Effects didn't store everything on disk needed for this feature, resave CS5.5 and earlier projects, to experience persistent caching.
Roto Brush frames are not persistently cached.
Cache Work Area in background also uses the disk cache to store frames. See Improve performance using Global Performance Cache.
Media cache
When After Effects imports video and audio in some formats, it processes and caches versions of these items that it can readily access when generating previews. Imported audio files are each conformed to a new .cfa file, and MPEG files are indexed to a new .mpgindex file. The media cache greatly improves performance for previews, because the video and audio items are not reprocessed for each preview.
When you first import a file, you may experience a delay while the media is being processed and cached.
A database retains links to each of the cached media files. This media cache database is shared with Adobe Media Encoder, Premiere Pro, Encore, Soundbooth, so each of these applications can each read from and write to the same set of cached media files. If you change the location of the database from within any of these applications, the location is updated for the other applications, too. Each application can use its own cache folder, but the same database keeps track of them all.
-
Choose Edit > Preferences > Media & Disk Cache (Windows) or After Effects > Preferences > Media & Disk Cache (macOS), and do one of the following:
- Select one of the Choose Folder buttons to change the location of the media cache database or the media cache itself.
- Select Clean Database & Cache to remove conformed and indexed files from the cache and to remove their entries from the database. This command only removes files associated with footage items for which the source file is no longer available.
Lưu ý:Before clicking the Clean Database & Cache button, make sure that any storage devices that contain your currently used source media are connected to your computer. If the footage is determined to be missing because the storage device on which it is located is not connected, the associated files in the media cache will be removed. This removal results in the need to reconform or re-index the footage when you attempt to use the footage later.
Watch the following video for quick steps on how to delete the media cache files in After Effects.
Cleaning the database and cache with the Clean Database & Cache button does not remove files that are associated with footage items for which the source files are still available. To manually remove conformed files and index files, navigate to the media cache folder and delete the files. The location of the media cache folder is shown in the Conformed Media Cache preferences. If the path is truncated, click the Choose Folder button to show the path.