Render <Video/> component on Lambda causes delayRender.
I am using remotion version 4.0.227.
Error
Error: A delayRender() "Rendering <Video /> with src="..."" was called but not cleared after 58000ms.
Error always occurs at one or multiple of the later lambda functions, sometimes at the start or at some frame later after rendering already some frames. The earlier lambda functions are fine rendering. Happened with 150, 120, and 30 frames per lambda and different video durations down to 10 seconds.
backgroundVideoUrl is video/mp4 url. File is ca. 6MB. Here is one of the backgroundVideoUrls which did cause this error: https://d2ydc707dxmyaz.cloudfront.net/tunnel.mp4.
The Video is functioning as a background to my other components. It works with OffThreadVideo. However, I don't want to download the video file always as I am also using video files with larger file sizes up to 2GB. Another idea was to use transparent video rendering. However, here the rendered file size is very large using Prores encoding, and webm is too slow. Also doing overlaying with ffmpeg is adding unnecessary processing time due to downloading the rendered transparent video and reencoding. Locally I was able to build this efficiently by only taking screenshots and avoiding reencoding and heavy downloads, but Lambda does not allow for this.
Maybe someone has another idea? Or is there a fix to the error I have?
Render
<Video/>
component on Lambda causes delayRender.I am using remotion version 4.0.227.
Error
Error always occurs at one or multiple of the later lambda functions, sometimes at the start or at some frame later after rendering already some frames. The earlier lambda functions are fine rendering. Happened with 150, 120, and 30 frames per lambda and different video durations down to 10 seconds.
Part of the composition causing the error:
Command flags:
--crf 23 --log verbose --timeout 60000
Lambda stats: 4096MB disk, 4096MB ram, 5 min timout.backgroundVideoUrl is video/mp4 url. File is ca. 6MB. Here is one of the backgroundVideoUrls which did cause this error:
https://d2ydc707dxmyaz.cloudfront.net/tunnel.mp4
.The Video is functioning as a background to my other components. It works with OffThreadVideo. However, I don't want to download the video file always as I am also using video files with larger file sizes up to 2GB. Another idea was to use transparent video rendering. However, here the rendered file size is very large using Prores encoding, and webm is too slow. Also doing overlaying with ffmpeg is adding unnecessary processing time due to downloading the rendered transparent video and reencoding. Locally I was able to build this efficiently by only taking screenshots and avoiding reencoding and heavy downloads, but Lambda does not allow for this.
Maybe someone has another idea? Or is there a fix to the error I have?