Precision Video Trimming

Comments

1 comment

  • Avatar
    Michal Kuperman

    Hi James,

    I would suggest getting the exact `video_duration` and `frame_rate` details, to calculate the timing. 

    You can get these details via the Admin API and including the `image_metadata` parameter in your request.

    For example:

    cloudinary.api().resource("myVideo", ObjectUtils.asMap("resource_type", "video","image_metadata", "true"));

    Please refer here for more details: https://cloudinary.com/documentation/admin_api#get_the_details_of_a_single_resource

    The response will include these details which you can use to calculate.

    For example, the calculation to get the last timeframe would be `video_duration - 1/frame_rate`. 

    If you would like to provide the Video URL we will gladly further assist. If privacy is a concern you can open a ticket at support@cloudinary.com.

    Thanks,

    Michal

    0
    Comment actions Permalink

Please sign in to leave a comment.