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

Frame rate corresponding to the input video #49

Open
mireczech opened this issue Dec 7, 2022 · 0 comments
Open

Frame rate corresponding to the input video #49

mireczech opened this issue Dec 7, 2022 · 0 comments

Comments

@mireczech
Copy link

I have been recently looking into how you could watermark a video using the library while maintaining the original frame rate. What worked for me just fine was to retrieve the frame rate from the MediaItem like so:
let fps = Int32(item.sourceAsset.tracks(withMediaType: .video).first!.nominalFrameRate)

Then I only changed this line in the MediaVideoProcessor.swift file to contain the desired frame rate.

I would suggest you include this, if possible, as an optional argument of the function so that the user could control that behaviour more easily.

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

1 participant