#Do we need to preload static assets?

4 messages · Page 1 of 1 (latest)

young kiln
#

I am a bit confused, is there anything to be gained by preloading static assets/ assets under public/ folder? Say i want to use the same asset multiple times in a video, am i meant to preload them at all? if so, should i preload them once and remotion will reuse that cached loading or is it that if an asset is loaded once it is automatically cached/ reused?

young kiln
#

@opaque shadow somewhat related, but I also wanted to ask: let's say I wanted to produce multiple videos from a single src video, how could i avoid having to download the src video multiple times? say i wanted to make 5 videos from 1 original video, that would mean downloading it 5 times, but the original video can get up to hours long, so is there a way to produce multiple videos from one request to remotion lambda?

opaque shadow
#

during preview, you might wanna preload the asset or "premount" it so that it is ready when it enters the scene to avoid buffering during playback (https://www.remotion.dev/docs/troubleshooting/player-flicker)

during rendering the assets are downloaded as soon as they are rendered in react, so as soon as remotion realizes they are needed. unfortunately at the moment for each chunk the entire asset needs to be downloaded. we are working on that - it's not trivial to understand all multimedia formats well enough to only partially download the files. but with #1332284215307534367 + #1309415221579743272 we are working on a new tag that would only require partial downloads in the future

young kiln