Trimming
Front Space's trimming and concatenating functionality is useful when you need to adjust the length of your videos or combine multiple videos together during the process of transforming and editing them.
Trim a video (and discard the rest) by using a combination of the following 3 parameters to specify the section of the video to keep after trimming:
- start_offset (so in URLs) specifies the start.
- end_offset (eo in URLs) specifies the end.
- duration (du in URLs) specifies the duration.
Possible values:
- A float representing the time in seconds e.g. 5.44 (5 seconds and 440 milliseconds).
- A string representing the percentage of the video length. This string consists of a number with a p appended e.g. 35p (0p is the first frame and 100p is the last frame). The client libraries also support appending a % instead of a p.
Other API References: so (start offset) | eo (end offset) | du (duration) | h (height) | w (width) | c (pad) | c (limit) | c (scale)
Examples with the uploaded mp4 video named sample4:
- Trimming the video to the section that starts at 6 seconds and ends at 10 seconds:
- Trimming the video to the section that starts at 10 percent with a duration of 30 percent (effectively from the 10 percent mark to the 40 percent mark):
💡Tip
If you want a video to play at a certain position but not trim the rest of the video out, you can make use of the HTML5 t parameter in the video source. For example, this URL starts playback of the sample4 video at 6 seconds and stops it again at 10 seconds: