-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remotion
: new onVideoFrame
callback allowing an OffthreadVideo to be drawn to a canvas
#4147
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
<OffthreadVideo | ||
onVideoFrame={onVideoFrame} | ||
style={{opacity: 0}} | ||
startFrom={300} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works nicely if startFrom > 0. Consider a situation when startFrom=0 and there are multiple sequences and generating video using Lambda.
if startFrom=0, generally canvas sync will show blankscreen, since the video is not started. To remediate we have to offset 0th second to 0.1 frame to show the initial start screen to sync with canvas and avoid having the empty screen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@khanzzirfan It has nothing to do with startFrom, it works with any value.
I only put 300 as value because the video starts with a black frame.
How to draw OffthreadVideo to canvas: https://www.remotion.dev/docs/video-manipulation