customizable video rendering #1343
Unanswered
shubhraneelatlas
asked this question in
Q&A
Replies: 1 comment 2 replies
-
thanks for the question! This issue occurs because the image does not load in time before the render begins. The following component is a refactor of yours that will render without problems: import {AbsoluteFill, Img, useCurrentFrame} from 'remotion';
export const MissingImg = ({text}) => {
const frame = useCurrentFrame();
const opacity = Math.min(1, frame / 60);
// Return <div>Hello {text}!</div>;
return (
<AbsoluteFill>
<AbsoluteFill>
<Img
style={{
objectFit: 'cover',
}}
src="https://images.pexels.com/photos/1563356/pexels-photo-1563356.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"
/>
</AbsoluteFill>
<AbsoluteFill>
<h1 style={{opacity, color: 'white', fontSize: '50px'}}>
Hello {text}!
</h1>
</AbsoluteFill>
</AbsoluteFill>
);
}; |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was very amazed with the part where user can change the content of video in run time, just like its been shown here https://www.remotion.dev/docs/player#demo
and was trying to replicate this, but I also wanted to download the same video after making those changes, but I am not able to do so,
When i am running npx remotion render it is dowloading the video with no background.
Can anyone please help me.
Beta Was this translation helpful? Give feedback.
All reactions