Stitch Videos together
Stitching is a process of combining two or more video clips together to create single output video. You can use this to create a video filled with scenes from different videos, or even a compilation of clips from the same video.
To stitch videos together, use the stitch attribute of query object to create JSON list of strings containing the video URLs (or video-objects) defined using the following structure:
Video Object Description
ATTRIBUTES
url | required |
start_time | optional |
duration | optional |
See the example of a stitch value below (the syntax is the same both for Preset and Custom jobs):
[
"https://nyc3.s3.qencode.com/qencode/bbb_30s.mp4",
"https://nyc3.s3.qencode.com/qencode/bbb_60s.mp4",
{
"url":"https://nyc3.s3.qencode.com/qencode/bbb_90s.mp4",
"start_time":"100.0",
"duration":"60.0"
}
]
If you are developing using the Qencode SDKs,you can add videos to your stitch job as instances of the StitchVideoItem class.
Input videos can have different settings making it hard to predict the result you want for your output videos.
If your input videos have different framerates, and framerate is not explicitly specified for your output, the output framerate will be taken from the first video in the list.