This topic describes how to modify the Timeline parameters in the SubmitMediaProducingJob operation to configure transitions, visual effects, and filters.
Usage notes
Intelligent production supports editing and compositing, effect rendering, and templates for live streams, VOD files, and material files from Object Storage Service (OSS). For more information, see Intelligent production overview.
You can produce a video from one or more videos, audio files, images, and subtitle materials by configuring Timeline parameters and calling the SubmitMediaProducingJob operation.
A timeline is created when you add materials and configure effects to create a video. A timeline consists of tracks, materials, and effects. For more information, see Timeline configurations.
For more information about how to use the IMS SDK to edit audio and video files, see Preparations.
Transitions
Add transitions
Add a wiperight transition between the first and second clips. The transition duration is 1 second by default.
Add a perlin transition between the second and third clips, and set the transition duration to 2 seconds by specifying Duration.
Effect | Timeline example |
|
Add random transitions
Set SubType to
random
to add a random transition between the first and second clips. This indicates that a transition is selected and applied at random from all available transitions.Set SubType to
wiperight,perlin
to add a random transition between the second and third clips. This indicates one of wiperight and perlin is used as the transition at random.
Effect | Timeline example |
|
Visual effects
Add visual effects to a single clip
Add a horizontal blur effect to the first clip. In this case, the configuration field of the visual effect must be included in the Effect array of the corresponding clip. If you do not specify the start time and end time, the visual effect lasts for the same duration as that of the corresponding clip by default.
Effect | Timeline example |
|
Add visual effects to the entire video
Add a horizontal blur effect to the entire video. In this case, the configuration field of the visual effect must be included in an independent EffectTracks array and is not associated with any clip. If you do not specify the start time and end time, the visual effect lasts for the same duration as that of the video by default.
Effect | Timeline example |
|
Add visual effects to part of the video
Set TimelineIn to 3
and TimelineOut to 7
to add a horizontal blur effect to the part between the 3rd and 7th seconds of the video.
Effect | Timeline example |
|
Add random visual effects
Set SubType to
random
to add a random visual effect to the first clip. This indicates that a visual effect is selected and applied at random from all available effects.Set SubType to
movie,image_in_image
to add a random visual effect to the second clip. This indicates one of movie and image_in_image is used as the visual effect at random.
Effect | Timeline example |
|
Filters
Add filters to a single clip
Add a gray-orange filter to the first clip. In this case, the filter configuration field must be included in the Effect array of the corresponding clip. If you do not specify the start time and end time, the filter lasts for the same duration as that of the corresponding clip by default.
Effect | Timeline example |
|
Add filters to the entire video
Add a gray-orange filter to the entire video. In this case, the filter configuration field must be included in an independent EffectTracks array and is not associated with any clip. If you do not specify the start time and end time, the filter lasts for the same duration as that of the video by default.
Effect | Timeline example |
|
Add filters to part of the video
Set TimelineIn to 3
and TimelineOut to 7
to add a gray-orange filter to the part between the 3rd and 7th seconds of the video.
Effect | Timeline example |
|
Video color grading
You can set SubType under Filter to color
to edit video colors.
In the following example, the configurations are applied to the third to seventh seconds of the video:
Set brightness to -10 to decrease the brightness.
Set contrast to 10 to increase the contrast.
Set saturation to 10 to increase the saturation.
Set dark_corner_ratio to 50 to increase the vignette effect.
Effect | Timeline example |
|
Add random filters
Set SubType to random
to add a random filter to the first clip. This indicates that a filter is selected and applied at random from all available filters.
Set SubType to pj2,pj3
to add a random filter to the second clip. This indicates one of pj2 and pj3 is used as the filter at random.
Effect | Timeline example |
|
Ken Burns
You can apply the Ken Burns effect when converting images to videos or creating photo albums.
The following example configurations add a Ken Burns effect to pan from the original image in the lower left corner to the upper right corner.
Effect | Illustration | Timeline example |
|
Default effect
If you do not configure the KenBurns parameters, the animation behaves in the following ways:
If the input and output are both in landscape or portrait mode, the effect is a slow zoom out.
If the input is in landscape mode and the output is in portrait mode, the effect is a slow slide to the right.
If the input is in portrait mode and the output is in landscape mode, the effect is a slow slide downward.
Default effect 1: A slow zoom-out if the input and output are both in landscape or portrait mode
Effect | Illustration | Timeline example |
|
Default effect 2: A slow slide to the right if the input is in landscape mode and the output is in portrait mode
Effect | Illustration | Timeline example | OutputMediaConfig example |
| Set the output to portrait mode by setting Width to 1080 and Height to 1920.
|
Default effect 3: A slow slide downward if the input is in portrait mode and the output is in landscape mode
Effect | Illustration | Timeline example | OutputMediaConfig example |
| Set the output to landscape mode by setting Width to 1920 and Height to 1080.
|
Configure transitions, visual effects, and filters altogether
The following example shows the configurations of combining filters, visual effects, and transitions.
Add a random transition between the first and second clips.
Add a perlin transition between the second and third clips.
Add a visual effect named withcircleflashlight to the first clip.
Add a filter named pl3 to the second clip.
Add a filter named warm to the part between the 11th and 13th seconds of the video.
Effect | Timeline example |
|