Configure transitions, visual effects, and filters by modifying the Timeline parameters in the SubmitMediaProducingJob.
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 Overview of intelligent production.
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 Get started.
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 with a 2-second duration.
|
Effect |
Timeline example |
|
Add random transitions
-
Set SubType to
randomto apply a randomly selected transition between the first and second clips. -
Set SubType to
wiperight,perlinto randomly apply either wiperight or perlin as the transition between the second and third clips.
|
Effect |
Timeline example |
|
Visual effects
Add visual effects to a single clip
Add a horizontal blur effect to the first clip. Place the effect in the clip's Effect array. The effect spans the entire clip duration unless you specify a start and end time.
|
Effect |
Timeline example |
|
Add visual effects to the entire video
Add a horizontal blur effect to the entire video. Place the effect in an independent EffectTracks array. The effect spans the full video duration unless you specify a start and end time.
|
Effect |
Timeline example |
|
Add visual effects to part of the video
Set TimelineIn to 3 and TimelineOut to 7 to apply a horizontal blur effect from the 3rd to the 7th second of the video.
|
Effect |
Timeline example |
|
Add random visual effects
-
Set SubType to
randomto apply a randomly selected visual effect to the first clip. -
Set SubType to
movie,image_in_imageto randomly apply either movie or image_in_image as the visual effect on the second clip.
|
Effect |
Timeline example |
|
Filters
Add filters to a single clip
Add a gray-orange filter to the first clip. Place the filter in the clip's Effect array. The filter spans the entire clip duration unless you specify a start and end time.
|
Effect |
Timeline example |
|
Add filters to the entire video
Add a gray-orange filter to the entire video. Place the filter in an independent EffectTracks array. The filter spans the full video duration unless you specify a start and end time.
|
Effect |
Timeline example |
|
Add filters to part of the video
Set TimelineIn to 3 and TimelineOut to 7 to apply a gray-orange filter from the 3rd to the 7th second of the video.
|
Effect |
Timeline example |
|
Video color grading
Set SubType to color under Filter to adjust video colors.
The following example applies color grading from the 3rd to the 7th second 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 apply a randomly selected filter to the first clip.
Set SubType to pj2,pj3 to randomly apply either pj2 or pj3 as the filter on the second clip.
|
Effect |
Timeline example |
|
Ken Burns
Apply the Ken Burns effect when converting images to videos or creating photo albums.
The following example pans from the lower-left to the upper-right corner of the image.
|
Effect |
Illustration |
Timeline example |
|
|
|
Default effect
Without explicit KenBurns parameters, the default animation depends on input and output orientations:
-
Same orientation (both landscape or both portrait): slow zoom out.
-
Landscape input to portrait output: slow slide right.
-
Portrait input to landscape output: slow slide down.
Default effect 1: Slow zoom-out (same orientation)
|
Effect |
Illustration |
Timeline example |
|
|
|
Default effect 2: Slow slide right (landscape to portrait)
|
Effect |
Illustration |
Timeline example |
OutputMediaConfig example |
|
|
|
Set Width to 1080 and Height to 1920 for portrait output.
|
Default effect 3: Slow slide down (portrait to landscape)
|
Effect |
Illustration |
Timeline example |
OutputMediaConfig example |
|
|
|
Set Width to 1920 and Height to 1080 for landscape output.
|
Combined example
The following example combines transitions, visual effects, and filters in a single Timeline.
-
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 |
|



