You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: