In some cases, you just need to upload a smaller piece of a video, but you would like to do that programmatically, without resorting to editing programs.
api.video allows you to clip a video to upload only specific parts of the video. You will be able to specify the start and end time of the clip before you upload the source video to api.video.
How does video clipping work?
The videos are clipped by the definition of the object. When you create a video object, you can pass the clip parameter, which will take the start and end time of the clip. Once the object is created with the clip time, you can upload the video to the video object.
You can also find more information on the /videos endpoints on the API reference page.
For this example, let’s assume that we have a video file that is 00:10:00 in length and we would like to get only 5 seconds of the clip between the 20th to the 22nd second of the video.
Clipping and trimming videos from local file or URL source
Once you’ve determined what video you would like to clip and trim, you need to create a video object with the clip parameter.
Once the object is created, all you have to do is just upload the video to the object:
Once the video is uploaded and trancoded it will only include the segment of the clip that you have configured.