The Media Track currently works best with Img Media Source objects for images sequences, particularly EXR sequences.
MP4 movies and other movie formats are supported but are experimental, as is rendering out Media Tracks.
When optimizing playback of Media Tracks, there are a few things to configure.
First, there is a global setting in the Project Settings > Plugins > IMG Media
. The Cache Size GB
is the number of gigabytes that each active Media Player will cache. You need to set this to a reasonable number, depending on how many Media Players you have active at a time, and what the memory footprint of video frames is. As a recommendation, 0.5 or 1.0 is usually a good number, but your requirements may differ.
The Cache Behind Percentage is the percentage of the cache that will be used to cache frames behind the current play position. For real-time playback you want to set this to 0 as you are only interested in caching frames forward.
Second, each Media Track Section needs to have its Pre-roll time configured for the frames to be preloaded in time. Again, the correct amount depends on a number of factors, such as how many videos you're playing, how big the frames are or how fast your machine is.
In general, you want to make sure that video frames are pre-rolled early enough so they are available by the time they are needed, but you also don't want to pre-roll too soon as that may interfere with the performance of other sections that are still playing and loading video frames. You should adjust the Cache Size and Pre-roll settings in such a way that the least number of video frames are pre-rolled at any given point in time while still guaranteeing that all frames are ready when needed.