Slow rendering with OffthreadVideo #3070
-
First of all I just want to say that Remotion is amazing! I'm having a lot of fun with it :) I have a composition that contains two side-by-side OffthreadVideo components. Each of the videos are ~40 minutes long, and are static files in my public dir. The composition also contains a few other basic HTML elements. The video also contains intro and outro compositions, and this is all housed in Sequence components. Rendering starts off fine, but after about 20%-30% of the rendering is complete (by frame count) it grinds to a crawl, and renders at about 5fps and continues to slow. This is with default render settings, and I have tried a few of the options, without any luck. The same thing occurs with faster render presets, and other encoders. Does anybody have an idea as to how I can attempt to solve this? Or is there an inherent issue with off-thread videos? I previously rendered this with shorter videos (~5 mins) and didn't have any issue. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
Hey @coleatkinson1! A few things you can try:
Do you see a lot of "cache pruned" messages in the logs? Then you could also fix it by increasing the cache. |
Beta Was this translation helpful? Give feedback.
-
@JonnyBurger To test whether it was something that I was doing wrong in that project, I started a new remotion project with a blank canvas, which only has 1 composition with 1 offthreadvideo (also tested with the normal Video component). I tested with multiple different videos of length 30mins - 45mins and they all had the same issue. I also tried rendering on different machines, with the same result. They all encountered lots of cache pruning messages and significant reduction in render/encoding speed at ~20% and would continue to slow. This leads me to believe that there is some fundamental issue with the video component(s) when using videos >30mins in length. |
Beta Was this translation helpful? Give feedback.
-
Thanks for sending the video! I can see some slowdown as well once the cache pruning hits. |
Beta Was this translation helpful? Give feedback.
-
Running into the same issue! Rendering a 1m video containing an offthread video with a 1h source takes ages. |
Beta Was this translation helpful? Give feedback.
Thanks for sending the video! I can see some slowdown as well once the cache pruning hits.
I'll look into if we can optimize this.