I have created the video using Remotion. But after generating the video, There is a lot of flickering in the video. Here are my codes to generate the video using Remotion.
return (
<>
<Composition
id="Story"
component={Story}
durationInFrames={DURATION_IN_FRAMES > videoDuretion ? DURATION_IN_FRAMES : videoDuretion}
fps={FRAME_PER_SECOND}
width={VIDEO_RESOLTION_WIDTH}
height={VIDEO_RESOLTION_HEIGHT}
defaultProps={{
messageIds: '',
apiResponse
}}
/>
</>
);
Need your help to understand the problem and its solution.
And this is the command to generate the Remotion videos.
"scripts": {
"start": "remotion preview src/index.tsx",
"build": "remotion render src/index.tsx Story results/$(date \"+%Y-%m-%d_%H-%M-%S\").mp4",
}
One of our projects was built with remotion and we rendered the video using server API. We also got the flickering issue. We solved that using less concurrency. We used concurrency level 2. I think you can try to reduce the concurrency