Skip to content
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

Video overlay on a video #302

Closed
2 tasks done
Umity opened this issue Dec 14, 2021 · 2 comments
Closed
2 tasks done

Video overlay on a video #302

Umity opened this issue Dec 14, 2021 · 2 comments

Comments

@Umity
Copy link

Umity commented Dec 14, 2021

Hi, I know how to use MultilayerCompositingFilter and adding images over a video, with a preferred blend mode.

My question is, how can i use a video file as an overlay, with blending mode option, over a video. Lets say, I have a few seconds of snow overlay video file and I'd like to use it over a selected video file. Which method would be more appropriate?

Checklist

@YuAo
Copy link
Member

YuAo commented Dec 15, 2021

  • Create an AVComposition with two video tracks, one for the background, one for snowflakes.
  • Create a MTIVideoComposition with that two-track asset, you can access the two tracks' images using request.sourceImages in the filter block.

@Umity
Copy link
Author

Umity commented Dec 15, 2021

Thank you, will try it on weekend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants