website logo
HomeBlogPricingDemoAnalyse WebsiteOpen ConsoleSign Up for FREE
API Documentation
Navigate through spaces
⌘K
🏡Home
Welcome to Front.Space 👋
About Us 🫶
🚀Getting Started
Step 1: Creating an Account
Step 2: Configuring Origins
Step 3: Select the Pricing Plan
🪴Introduction
Transformation Basics
Credits
🔗API Reference
URL Transformation API
🖼️Image
Overview
Image Format Support
Resizing and Cropping
Image Effects
Watermarking and Overlays
Background Removal
🎬Video
Overview
Video Format Support
Resizing and Cropping
Trimming
👥Team & Project Management
User Roles & Invite Members
Create or Rename Projects
Docs powered by
Archbee
Video

Trimming

4min

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.

Trimming videos

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.

See: Trimming Videos using Front.Space - API Reference

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:

  1. Trimming the video to the section that starts at 6 seconds and ends at 10 seconds:
  2. 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:

https://cdn.front.space/demo-project/demo-origin/sample4.mp4#t=6,10



Updated 24 Aug 2023
Did this page help you?
PREVIOUS
Resizing and Cropping
NEXT
User Roles & Invite Members
Docs powered by
Archbee
TABLE OF CONTENTS
Trimming videos
💡Tip
Docs powered by
Archbee