Splicing refers to the process of splicing multiple videos of different formats, encoding, and resolutions and outputting a new video with the same format, encoding methods, and resolution. This function is often used to add fixed titles and credits and splice live broadcast videos.
Cutting refers to the process where you extract a certain clip of a video and output into a new video. This function is often used to extract the highlights or essential contents of videos.
When splicing a video, you need to take note of the following parameters:
Set the following parameters in Output:
Specifies the width, height, and bit rate of the final output video. If the width and height of multiple clips (including titles and credits) are inconsistent with those of the final video, the margins will be automatically filled with black. We recommend that you prepare titles and credits of different widths and heights based on the actual resolutions of different jobs to create a better video.
- The list order is the splicing order. The last item of the list is the credits. You can splice up to five videos (including the title and credits) into one. You can use the
MergeConfigUrlparameter to splice more videos together.Note
MergeConfigUrlare mutually exclusive. You can specify only one of them.
Each spliced video has three parameters:
MergeURLSpecifies the OSS URL of a splicing video.Note The OSS region of the video that you splice must be consistent with that of the title. Videos from different regions cannot be spliced.
When you splice videos, you can specify a start point to extract a desired clip for the final video. The default value is 0.
When you splice videos, you can specify a duration (with the start point as the value of Start) to extract a desired clip for the final video. The default duration is from Start to the end of the video.
Specifies the OSS URL of the configuration file of the videos that you are splicing. The content of the configuration file is a JSON object, with the same value of MergeList.
The list order is the splicing order. The last item of the list is the credits. You can splice up to 100 clips (including the title and credits) into one.
You can splice a
720P(1280x720) video with the
480P(640x480) title and credit in MP4 format. The resolution of the output video is
1280x720. When you play the output video, black borders are displayed on the left and right sides of the title and credit. However, the video is normally displayed.
Code example details: