Trim a video by cutting off the start, end or both. This demo application shows you a how you can upload or fetch a video from a URL, set a start and

Trim Video Demo — Shotstack

submited by
Style Pass
2021-07-20 00:00:08

Trim a video by cutting off the start, end or both. This demo application shows you a how you can upload or fetch a video from a URL, set a start and end time and render a new trimmed video clip. A simple form allows you to see the total clip length and select the in and out points.

The original video file and time settings are posted to a backend script that creates a JSON payload with the edit parameters. The JSON is posted to the Shotstack video editing API and after a few seconds the video is rendered to the new length and the URL is sent back to be displayed on the web page.

This is a simple example of what can be done with the API. You might adapt this functionality as part of a simple workflow to trim an hour long stream in to shorter segments for social media, or it might be a component of a broader online video editing application.

Leave a Comment