Other settings

更新时间:
复制 MD 格式

Modify the Timeline parameters of the SubmitMediaProducingJob operation to add a global background image and watermark logo.

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.

Add a global background image and a global logo

Set "Type": "GlobalImage" to configure the global background and logo. You do not need to specify Duration. By default, the background and the logo are displayed throughout the entire video.

The following example shows how to add a background image and a foreground logo to a video.

The following configurations are used:

  1. Place the background_v.jpg image in the first video track and set the Type parameter to GlobalImage to use the image as the global background image.

  2. Place the video material f10.mp4 in the second video track as the main content of the video.

  3. Place the image material aliyun_logo_white.png in the third track, set the Type parameter to GlobalImage, and set the width, height, and position of the image. This way, the image is used as the foreground logo.

Effect

Timeline example

OutputMediaConfig example

{
    "VideoTracks": [{
        "VideoTrackClips": [{
            "Type": "GlobalImage",
            "MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/background_v.jpg"
        }]
    }, {
        "VideoTrackClips": [{
            "MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/food/f10.mp4"
        }]
    }, {
        "VideoTrackClips": [{
            "Type": "GlobalImage",
            "MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/aliyun_logo_white.png",
            "X": 10,
            "Y": 10,
            "Width": 247,
            "Height": 74
        }]
    }]
}

Set the video to portrait mode by setting Width to 1080 and Height to 1920.

{
    "MediaURL": "Specify the OSS URL of the media asset"
    "Width": 1080,
    "Height": 1920
}