Add intro and outro to base video
Adding intro and outro segments to your videos is an effective way to create a smooth, and engaging story. FastPix makes this simple, enabling you to integrate additional segments seamlessly with your base video. This guide walks you through how to enhance your video content with intros and outros using FastPix.
Adding intro and outro videos for new media
To get started, use FastPix’s Create media from URL or Upload media from device API endpoint. This feature allows you to attach one or both segments — intro and/or outro — to your main video. Here’s how to configure it.
Step 1: Prepare your media URLs
Gather the URLs for the following media files:
- Base video: The main video content you want to enhance.
- Intro video (optional): The video segment that will play at the beginning.
- Outro video (optional): The video segment that will play at the end.
Please Note: Ensure that each video file is optimized and ready for viewing as it will directly affect playback quality in your final product.
Important considerations:
- The intro and outro video resolutions should be greater than or equal to the base video as FastPix does not support upscaling.
- The frame rate of the intro and outro videos must be same as the base video frame rate.
Step 2: Create a JSON request with intro and/or outro URLs
In the JSON configuration for the FastPix API request, specify your video segments:
- Base video URL: Set
url
to the URL of your main video. - Intro video URL: If you want an intro, add
introUrl
with the intro video’s URL. - Outro video URL: If you want an outro, add
outroUrl
with the outro video’s URL.
Request body for creating media from URL
{
"inputs": [
{
"type": "video",
"url": "https://static.fastpix.io/sample.mp4",
"introUrl": "https://static.fastpix.io/sample.mp4",
"outroUrl": "https://static.fastpix.io/sample.mp4"
}
],
"accessPolicy": "public",
"maxResolution": "1080p"
}
Request body while creating new media by direct upload
{
"corsOrigin": "*",
"pushMediaSettings": {
"inputs": [
{
"type": "video",
"introUrl": "https://static.fastpix.io/sample.mp4",
"outroUrl": "https://static.fastpix.io/sample.mp4"
}
],
"metadata": {
"key1": "value1"
},
"accessPolicy": "public",
"maxResolution": "1080p"
}
}
IMPORTANT
Replace each URL in the request example above with the actual path to your media files.
Adding intro and outro videos to existing media
Similar to the steps for new media you can to use either Create media from URL or Upload media from device API endpoint to add intro and/or outro video to an exisiting media.
PLEASE NOTE
A new media always gets created when you add an intro or outro to an existing media.
Step 1: Prepare your media URLs
You would need the URLs for the following media files:
- Base video: The existing main video content you want to enhance.
- Intro video (optional): The video segment that will play at the beginning.
- Outro video (optional): The video segment that will play at the end.
Step 2: Create a JSON request with intro and/or outro URLs
In the JSON configuration of the FastPix API request, specify your video segments:
- Base video URL: The mediaId of the existing media with “fp_mediaId://” prefix.
- Intro video URL: If you want an intro, add introUrl with the intro video’s URL.
- Outro video URL: If you want an outro, add outroUrl with the outro video’s URL.
Example JSON request
{
"inputs": [
{
"type": "video",
"url": "fp_mediaId://7271d4de-e83c-431c-8aea-896c55f52645",
"introUrl": "https://static.fastpix.io/sample.mp4",
"outroUrl": "https://static.fastpix.io/sample.mp4"
}
],
"accessPolicy": "public",
"maxResolution": "1080p"
}
PLEASE NOTE
Replace the introUrl and outroUrl with your URL paths in the request example above with the actual path to your media files.
Creating impactful intros and outros
To maximize the effectiveness of your intro and outro videos, keep these tips in mind:
-
Keep it brief: Intros and outros should be concise, ideally lasting between 5-10 seconds.
-
Maintain brand consistency: Use brand colors, logos, and fonts to make your intro and outro recognizable.
-
Incorporate a call-to-action: The outro is an excellent place for a CTA, such as asking viewers to subscribe, like, or follow for more content.
Updated 6 days ago