Skip to content

Frame rate corresponding to the input video #49

Description

@mireczech

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions