Instant live clipping
What is live clipping?
Live clipping is the process of capturing and creating short video clips from a live stream as it happens. This feature lets broadcasters instantly extract key moments, turning them into highlights, social media content, or on-demand clips. It eliminates the need to wait for the live stream to finish, making it perfect for sharing engaging moments in real time.
To start creating live clips, first set up a livestream on FastPix by creating a live stream using the dashboard or using the API. Once the livestream is active, you can generate the Stream URL using the provided playback ID. This URL can be used in any HLS-compatible player and serves as the basis for generating live clips.
Your stream URL would look like this:
https://stream.fastpix.io/><playbackId>.m3u8
Generating clips from live stream
Creating a live clip involves defining the clip's duration by appending query parameters to the Stream URL. FastPix simplifies this process by using start and end times in seconds.
Use the Stream URL with query parameters
You can generate a live clip by adding start and end parameters to your Stream URL. These parameters define the beginning and end of your clip.
Example:
https://stream.fastpix.io/><playbackId>.m3u8?start=10s&end=40s
This URL extracts a 30-second clip starting from the 10-second mark to the 40-second mark.
PLEASE NOTE
The maximum duration for a clip is 30 seconds. If the start and end parameters exceed this limit, the clip will be automatically trimmed to 30 seconds.
Guidelines for start and end times
To ensure your live clips are generated correctly, follow these guidelines:
- Use positive values only: Both
start
andend
times must be positive integers, representing seconds in the livestream. Negative values are not allowed and will result in an error.
- Start time must be earlier than end time: The
start
time should always precede theend
time. Providing an end time that is less than the start time is invalid and will prevent the clip from being generated.
- Valid time range: Ensure the
start
and end times fall within the duration of the live stream. For example, if the live stream has only reached 20 seconds, specifyingend=30s
will result in an error.
Updated 2 days ago