1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. MpsAdaptiveDynamicStreamingTemplate
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.MpsAdaptiveDynamicStreamingTemplate

Explore with Pulumi AI

Provides a resource to create a mps adaptive_dynamic_streaming_template

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const adaptiveDynamicStreamingTemplate = new tencentcloud.MpsAdaptiveDynamicStreamingTemplate("adaptiveDynamicStreamingTemplate", {
    comment: "terrraform test",
    disableHigherVideoBitrate: 0,
    disableHigherVideoResolution: 1,
    format: "HLS",
    streamInfos: [
        {
            audio: {
                audioChannel: 1,
                bitrate: 55,
                codec: "libmp3lame",
                sampleRate: 32000,
            },
            removeAudio: 0,
            removeVideo: 0,
            video: {
                bitrate: 245,
                codec: "libx264",
                fillType: "black",
                fps: 30,
                gop: 0,
                height: 135,
                resolutionAdaptive: "open",
                vcrf: 0,
                width: 145,
            },
        },
        {
            audio: {
                audioChannel: 2,
                bitrate: 60,
                codec: "libfdk_aac",
                sampleRate: 32000,
            },
            removeAudio: 0,
            removeVideo: 0,
            video: {
                bitrate: 400,
                codec: "libx264",
                fillType: "black",
                fps: 40,
                gop: 0,
                height: 150,
                resolutionAdaptive: "open",
                vcrf: 0,
                width: 160,
            },
        },
    ],
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

adaptive_dynamic_streaming_template = tencentcloud.MpsAdaptiveDynamicStreamingTemplate("adaptiveDynamicStreamingTemplate",
    comment="terrraform test",
    disable_higher_video_bitrate=0,
    disable_higher_video_resolution=1,
    format="HLS",
    stream_infos=[
        {
            "audio": {
                "audio_channel": 1,
                "bitrate": 55,
                "codec": "libmp3lame",
                "sample_rate": 32000,
            },
            "remove_audio": 0,
            "remove_video": 0,
            "video": {
                "bitrate": 245,
                "codec": "libx264",
                "fill_type": "black",
                "fps": 30,
                "gop": 0,
                "height": 135,
                "resolution_adaptive": "open",
                "vcrf": 0,
                "width": 145,
            },
        },
        {
            "audio": {
                "audio_channel": 2,
                "bitrate": 60,
                "codec": "libfdk_aac",
                "sample_rate": 32000,
            },
            "remove_audio": 0,
            "remove_video": 0,
            "video": {
                "bitrate": 400,
                "codec": "libx264",
                "fill_type": "black",
                "fps": 40,
                "gop": 0,
                "height": 150,
                "resolution_adaptive": "open",
                "vcrf": 0,
                "width": 160,
            },
        },
    ])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := tencentcloud.NewMpsAdaptiveDynamicStreamingTemplate(ctx, "adaptiveDynamicStreamingTemplate", &tencentcloud.MpsAdaptiveDynamicStreamingTemplateArgs{
			Comment:                      pulumi.String("terrraform test"),
			DisableHigherVideoBitrate:    pulumi.Float64(0),
			DisableHigherVideoResolution: pulumi.Float64(1),
			Format:                       pulumi.String("HLS"),
			StreamInfos: tencentcloud.MpsAdaptiveDynamicStreamingTemplateStreamInfoArray{
				&tencentcloud.MpsAdaptiveDynamicStreamingTemplateStreamInfoArgs{
					Audio: &tencentcloud.MpsAdaptiveDynamicStreamingTemplateStreamInfoAudioArgs{
						AudioChannel: pulumi.Float64(1),
						Bitrate:      pulumi.Float64(55),
						Codec:        pulumi.String("libmp3lame"),
						SampleRate:   pulumi.Float64(32000),
					},
					RemoveAudio: pulumi.Float64(0),
					RemoveVideo: pulumi.Float64(0),
					Video: &tencentcloud.MpsAdaptiveDynamicStreamingTemplateStreamInfoVideoArgs{
						Bitrate:            pulumi.Float64(245),
						Codec:              pulumi.String("libx264"),
						FillType:           pulumi.String("black"),
						Fps:                pulumi.Float64(30),
						Gop:                pulumi.Float64(0),
						Height:             pulumi.Float64(135),
						ResolutionAdaptive: pulumi.String("open"),
						Vcrf:               pulumi.Float64(0),
						Width:              pulumi.Float64(145),
					},
				},
				&tencentcloud.MpsAdaptiveDynamicStreamingTemplateStreamInfoArgs{
					Audio: &tencentcloud.MpsAdaptiveDynamicStreamingTemplateStreamInfoAudioArgs{
						AudioChannel: pulumi.Float64(2),
						Bitrate:      pulumi.Float64(60),
						Codec:        pulumi.String("libfdk_aac"),
						SampleRate:   pulumi.Float64(32000),
					},
					RemoveAudio: pulumi.Float64(0),
					RemoveVideo: pulumi.Float64(0),
					Video: &tencentcloud.MpsAdaptiveDynamicStreamingTemplateStreamInfoVideoArgs{
						Bitrate:            pulumi.Float64(400),
						Codec:              pulumi.String("libx264"),
						FillType:           pulumi.String("black"),
						Fps:                pulumi.Float64(40),
						Gop:                pulumi.Float64(0),
						Height:             pulumi.Float64(150),
						ResolutionAdaptive: pulumi.String("open"),
						Vcrf:               pulumi.Float64(0),
						Width:              pulumi.Float64(160),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var adaptiveDynamicStreamingTemplate = new Tencentcloud.MpsAdaptiveDynamicStreamingTemplate("adaptiveDynamicStreamingTemplate", new()
    {
        Comment = "terrraform test",
        DisableHigherVideoBitrate = 0,
        DisableHigherVideoResolution = 1,
        Format = "HLS",
        StreamInfos = new[]
        {
            new Tencentcloud.Inputs.MpsAdaptiveDynamicStreamingTemplateStreamInfoArgs
            {
                Audio = new Tencentcloud.Inputs.MpsAdaptiveDynamicStreamingTemplateStreamInfoAudioArgs
                {
                    AudioChannel = 1,
                    Bitrate = 55,
                    Codec = "libmp3lame",
                    SampleRate = 32000,
                },
                RemoveAudio = 0,
                RemoveVideo = 0,
                Video = new Tencentcloud.Inputs.MpsAdaptiveDynamicStreamingTemplateStreamInfoVideoArgs
                {
                    Bitrate = 245,
                    Codec = "libx264",
                    FillType = "black",
                    Fps = 30,
                    Gop = 0,
                    Height = 135,
                    ResolutionAdaptive = "open",
                    Vcrf = 0,
                    Width = 145,
                },
            },
            new Tencentcloud.Inputs.MpsAdaptiveDynamicStreamingTemplateStreamInfoArgs
            {
                Audio = new Tencentcloud.Inputs.MpsAdaptiveDynamicStreamingTemplateStreamInfoAudioArgs
                {
                    AudioChannel = 2,
                    Bitrate = 60,
                    Codec = "libfdk_aac",
                    SampleRate = 32000,
                },
                RemoveAudio = 0,
                RemoveVideo = 0,
                Video = new Tencentcloud.Inputs.MpsAdaptiveDynamicStreamingTemplateStreamInfoVideoArgs
                {
                    Bitrate = 400,
                    Codec = "libx264",
                    FillType = "black",
                    Fps = 40,
                    Gop = 0,
                    Height = 150,
                    ResolutionAdaptive = "open",
                    Vcrf = 0,
                    Width = 160,
                },
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.MpsAdaptiveDynamicStreamingTemplate;
import com.pulumi.tencentcloud.MpsAdaptiveDynamicStreamingTemplateArgs;
import com.pulumi.tencentcloud.inputs.MpsAdaptiveDynamicStreamingTemplateStreamInfoArgs;
import com.pulumi.tencentcloud.inputs.MpsAdaptiveDynamicStreamingTemplateStreamInfoAudioArgs;
import com.pulumi.tencentcloud.inputs.MpsAdaptiveDynamicStreamingTemplateStreamInfoVideoArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var adaptiveDynamicStreamingTemplate = new MpsAdaptiveDynamicStreamingTemplate("adaptiveDynamicStreamingTemplate", MpsAdaptiveDynamicStreamingTemplateArgs.builder()
            .comment("terrraform test")
            .disableHigherVideoBitrate(0)
            .disableHigherVideoResolution(1)
            .format("HLS")
            .streamInfos(            
                MpsAdaptiveDynamicStreamingTemplateStreamInfoArgs.builder()
                    .audio(MpsAdaptiveDynamicStreamingTemplateStreamInfoAudioArgs.builder()
                        .audioChannel(1)
                        .bitrate(55)
                        .codec("libmp3lame")
                        .sampleRate(32000)
                        .build())
                    .removeAudio(0)
                    .removeVideo(0)
                    .video(MpsAdaptiveDynamicStreamingTemplateStreamInfoVideoArgs.builder()
                        .bitrate(245)
                        .codec("libx264")
                        .fillType("black")
                        .fps(30)
                        .gop(0)
                        .height(135)
                        .resolutionAdaptive("open")
                        .vcrf(0)
                        .width(145)
                        .build())
                    .build(),
                MpsAdaptiveDynamicStreamingTemplateStreamInfoArgs.builder()
                    .audio(MpsAdaptiveDynamicStreamingTemplateStreamInfoAudioArgs.builder()
                        .audioChannel(2)
                        .bitrate(60)
                        .codec("libfdk_aac")
                        .sampleRate(32000)
                        .build())
                    .removeAudio(0)
                    .removeVideo(0)
                    .video(MpsAdaptiveDynamicStreamingTemplateStreamInfoVideoArgs.builder()
                        .bitrate(400)
                        .codec("libx264")
                        .fillType("black")
                        .fps(40)
                        .gop(0)
                        .height(150)
                        .resolutionAdaptive("open")
                        .vcrf(0)
                        .width(160)
                        .build())
                    .build())
            .build());

    }
}
Copy
resources:
  adaptiveDynamicStreamingTemplate:
    type: tencentcloud:MpsAdaptiveDynamicStreamingTemplate
    properties:
      comment: terrraform test
      disableHigherVideoBitrate: 0
      disableHigherVideoResolution: 1
      format: HLS
      streamInfos:
        - audio:
            audioChannel: 1
            bitrate: 55
            codec: libmp3lame
            sampleRate: 32000
          removeAudio: 0
          removeVideo: 0
          video:
            bitrate: 245
            codec: libx264
            fillType: black
            fps: 30
            gop: 0
            height: 135
            resolutionAdaptive: open
            vcrf: 0
            width: 145
        - audio:
            audioChannel: 2
            bitrate: 60
            codec: libfdk_aac
            sampleRate: 32000
          removeAudio: 0
          removeVideo: 0
          video:
            bitrate: 400
            codec: libx264
            fillType: black
            fps: 40
            gop: 0
            height: 150
            resolutionAdaptive: open
            vcrf: 0
            width: 160
Copy

Create MpsAdaptiveDynamicStreamingTemplate Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new MpsAdaptiveDynamicStreamingTemplate(name: string, args: MpsAdaptiveDynamicStreamingTemplateArgs, opts?: CustomResourceOptions);
@overload
def MpsAdaptiveDynamicStreamingTemplate(resource_name: str,
                                        args: MpsAdaptiveDynamicStreamingTemplateArgs,
                                        opts: Optional[ResourceOptions] = None)

@overload
def MpsAdaptiveDynamicStreamingTemplate(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        format: Optional[str] = None,
                                        stream_infos: Optional[Sequence[MpsAdaptiveDynamicStreamingTemplateStreamInfoArgs]] = None,
                                        comment: Optional[str] = None,
                                        disable_higher_video_bitrate: Optional[float] = None,
                                        disable_higher_video_resolution: Optional[float] = None,
                                        mps_adaptive_dynamic_streaming_template_id: Optional[str] = None,
                                        name: Optional[str] = None)
func NewMpsAdaptiveDynamicStreamingTemplate(ctx *Context, name string, args MpsAdaptiveDynamicStreamingTemplateArgs, opts ...ResourceOption) (*MpsAdaptiveDynamicStreamingTemplate, error)
public MpsAdaptiveDynamicStreamingTemplate(string name, MpsAdaptiveDynamicStreamingTemplateArgs args, CustomResourceOptions? opts = null)
public MpsAdaptiveDynamicStreamingTemplate(String name, MpsAdaptiveDynamicStreamingTemplateArgs args)
public MpsAdaptiveDynamicStreamingTemplate(String name, MpsAdaptiveDynamicStreamingTemplateArgs args, CustomResourceOptions options)
type: tencentcloud:MpsAdaptiveDynamicStreamingTemplate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. MpsAdaptiveDynamicStreamingTemplateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. MpsAdaptiveDynamicStreamingTemplateArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. MpsAdaptiveDynamicStreamingTemplateArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. MpsAdaptiveDynamicStreamingTemplateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. MpsAdaptiveDynamicStreamingTemplateArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

MpsAdaptiveDynamicStreamingTemplate Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The MpsAdaptiveDynamicStreamingTemplate resource accepts the following input properties:

Format This property is required. string
Adaptive transcoding format, value range:HLS, MPEG-DASH.
StreamInfos This property is required. List<MpsAdaptiveDynamicStreamingTemplateStreamInfo>
Convert adaptive code stream to output sub-stream parameter information, and output up to 10 sub-streams.Note: The frame rate of each sub-stream must be consistent; if not, the frame rate of the first sub-stream is used as the output frame rate.
Comment string
Template description information, length limit: 256 characters.
DisableHigherVideoBitrate double
Whether to prohibit video from low bit rate to high bit rate, value range:0: no.1: yes.Default value: 0.
DisableHigherVideoResolution double
Whether to prohibit the conversion of video resolution to high resolution, value range:0: no.1: yes.Default value: 0.
MpsAdaptiveDynamicStreamingTemplateId string
ID of the resource.
Name string
Template name, length limit: 64 characters.
Format This property is required. string
Adaptive transcoding format, value range:HLS, MPEG-DASH.
StreamInfos This property is required. []MpsAdaptiveDynamicStreamingTemplateStreamInfoArgs
Convert adaptive code stream to output sub-stream parameter information, and output up to 10 sub-streams.Note: The frame rate of each sub-stream must be consistent; if not, the frame rate of the first sub-stream is used as the output frame rate.
Comment string
Template description information, length limit: 256 characters.
DisableHigherVideoBitrate float64
Whether to prohibit video from low bit rate to high bit rate, value range:0: no.1: yes.Default value: 0.
DisableHigherVideoResolution float64
Whether to prohibit the conversion of video resolution to high resolution, value range:0: no.1: yes.Default value: 0.
MpsAdaptiveDynamicStreamingTemplateId string
ID of the resource.
Name string
Template name, length limit: 64 characters.
format This property is required. String
Adaptive transcoding format, value range:HLS, MPEG-DASH.
streamInfos This property is required. List<MpsAdaptiveDynamicStreamingTemplateStreamInfo>
Convert adaptive code stream to output sub-stream parameter information, and output up to 10 sub-streams.Note: The frame rate of each sub-stream must be consistent; if not, the frame rate of the first sub-stream is used as the output frame rate.
comment String
Template description information, length limit: 256 characters.
disableHigherVideoBitrate Double
Whether to prohibit video from low bit rate to high bit rate, value range:0: no.1: yes.Default value: 0.
disableHigherVideoResolution Double
Whether to prohibit the conversion of video resolution to high resolution, value range:0: no.1: yes.Default value: 0.
mpsAdaptiveDynamicStreamingTemplateId String
ID of the resource.
name String
Template name, length limit: 64 characters.
format This property is required. string
Adaptive transcoding format, value range:HLS, MPEG-DASH.
streamInfos This property is required. MpsAdaptiveDynamicStreamingTemplateStreamInfo[]
Convert adaptive code stream to output sub-stream parameter information, and output up to 10 sub-streams.Note: The frame rate of each sub-stream must be consistent; if not, the frame rate of the first sub-stream is used as the output frame rate.
comment string
Template description information, length limit: 256 characters.
disableHigherVideoBitrate number
Whether to prohibit video from low bit rate to high bit rate, value range:0: no.1: yes.Default value: 0.
disableHigherVideoResolution number
Whether to prohibit the conversion of video resolution to high resolution, value range:0: no.1: yes.Default value: 0.
mpsAdaptiveDynamicStreamingTemplateId string
ID of the resource.
name string
Template name, length limit: 64 characters.
format This property is required. str
Adaptive transcoding format, value range:HLS, MPEG-DASH.
stream_infos This property is required. Sequence[MpsAdaptiveDynamicStreamingTemplateStreamInfoArgs]
Convert adaptive code stream to output sub-stream parameter information, and output up to 10 sub-streams.Note: The frame rate of each sub-stream must be consistent; if not, the frame rate of the first sub-stream is used as the output frame rate.
comment str
Template description information, length limit: 256 characters.
disable_higher_video_bitrate float
Whether to prohibit video from low bit rate to high bit rate, value range:0: no.1: yes.Default value: 0.
disable_higher_video_resolution float
Whether to prohibit the conversion of video resolution to high resolution, value range:0: no.1: yes.Default value: 0.
mps_adaptive_dynamic_streaming_template_id str
ID of the resource.
name str
Template name, length limit: 64 characters.
format This property is required. String
Adaptive transcoding format, value range:HLS, MPEG-DASH.
streamInfos This property is required. List<Property Map>
Convert adaptive code stream to output sub-stream parameter information, and output up to 10 sub-streams.Note: The frame rate of each sub-stream must be consistent; if not, the frame rate of the first sub-stream is used as the output frame rate.
comment String
Template description information, length limit: 256 characters.
disableHigherVideoBitrate Number
Whether to prohibit video from low bit rate to high bit rate, value range:0: no.1: yes.Default value: 0.
disableHigherVideoResolution Number
Whether to prohibit the conversion of video resolution to high resolution, value range:0: no.1: yes.Default value: 0.
mpsAdaptiveDynamicStreamingTemplateId String
ID of the resource.
name String
Template name, length limit: 64 characters.

Outputs

All input properties are implicitly available as output properties. Additionally, the MpsAdaptiveDynamicStreamingTemplate resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing MpsAdaptiveDynamicStreamingTemplate Resource

Get an existing MpsAdaptiveDynamicStreamingTemplate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: MpsAdaptiveDynamicStreamingTemplateState, opts?: CustomResourceOptions): MpsAdaptiveDynamicStreamingTemplate
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        comment: Optional[str] = None,
        disable_higher_video_bitrate: Optional[float] = None,
        disable_higher_video_resolution: Optional[float] = None,
        format: Optional[str] = None,
        mps_adaptive_dynamic_streaming_template_id: Optional[str] = None,
        name: Optional[str] = None,
        stream_infos: Optional[Sequence[MpsAdaptiveDynamicStreamingTemplateStreamInfoArgs]] = None) -> MpsAdaptiveDynamicStreamingTemplate
func GetMpsAdaptiveDynamicStreamingTemplate(ctx *Context, name string, id IDInput, state *MpsAdaptiveDynamicStreamingTemplateState, opts ...ResourceOption) (*MpsAdaptiveDynamicStreamingTemplate, error)
public static MpsAdaptiveDynamicStreamingTemplate Get(string name, Input<string> id, MpsAdaptiveDynamicStreamingTemplateState? state, CustomResourceOptions? opts = null)
public static MpsAdaptiveDynamicStreamingTemplate get(String name, Output<String> id, MpsAdaptiveDynamicStreamingTemplateState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:MpsAdaptiveDynamicStreamingTemplate    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Comment string
Template description information, length limit: 256 characters.
DisableHigherVideoBitrate double
Whether to prohibit video from low bit rate to high bit rate, value range:0: no.1: yes.Default value: 0.
DisableHigherVideoResolution double
Whether to prohibit the conversion of video resolution to high resolution, value range:0: no.1: yes.Default value: 0.
Format string
Adaptive transcoding format, value range:HLS, MPEG-DASH.
MpsAdaptiveDynamicStreamingTemplateId string
ID of the resource.
Name string
Template name, length limit: 64 characters.
StreamInfos List<MpsAdaptiveDynamicStreamingTemplateStreamInfo>
Convert adaptive code stream to output sub-stream parameter information, and output up to 10 sub-streams.Note: The frame rate of each sub-stream must be consistent; if not, the frame rate of the first sub-stream is used as the output frame rate.
Comment string
Template description information, length limit: 256 characters.
DisableHigherVideoBitrate float64
Whether to prohibit video from low bit rate to high bit rate, value range:0: no.1: yes.Default value: 0.
DisableHigherVideoResolution float64
Whether to prohibit the conversion of video resolution to high resolution, value range:0: no.1: yes.Default value: 0.
Format string
Adaptive transcoding format, value range:HLS, MPEG-DASH.
MpsAdaptiveDynamicStreamingTemplateId string
ID of the resource.
Name string
Template name, length limit: 64 characters.
StreamInfos []MpsAdaptiveDynamicStreamingTemplateStreamInfoArgs
Convert adaptive code stream to output sub-stream parameter information, and output up to 10 sub-streams.Note: The frame rate of each sub-stream must be consistent; if not, the frame rate of the first sub-stream is used as the output frame rate.
comment String
Template description information, length limit: 256 characters.
disableHigherVideoBitrate Double
Whether to prohibit video from low bit rate to high bit rate, value range:0: no.1: yes.Default value: 0.
disableHigherVideoResolution Double
Whether to prohibit the conversion of video resolution to high resolution, value range:0: no.1: yes.Default value: 0.
format String
Adaptive transcoding format, value range:HLS, MPEG-DASH.
mpsAdaptiveDynamicStreamingTemplateId String
ID of the resource.
name String
Template name, length limit: 64 characters.
streamInfos List<MpsAdaptiveDynamicStreamingTemplateStreamInfo>
Convert adaptive code stream to output sub-stream parameter information, and output up to 10 sub-streams.Note: The frame rate of each sub-stream must be consistent; if not, the frame rate of the first sub-stream is used as the output frame rate.
comment string
Template description information, length limit: 256 characters.
disableHigherVideoBitrate number
Whether to prohibit video from low bit rate to high bit rate, value range:0: no.1: yes.Default value: 0.
disableHigherVideoResolution number
Whether to prohibit the conversion of video resolution to high resolution, value range:0: no.1: yes.Default value: 0.
format string
Adaptive transcoding format, value range:HLS, MPEG-DASH.
mpsAdaptiveDynamicStreamingTemplateId string
ID of the resource.
name string
Template name, length limit: 64 characters.
streamInfos MpsAdaptiveDynamicStreamingTemplateStreamInfo[]
Convert adaptive code stream to output sub-stream parameter information, and output up to 10 sub-streams.Note: The frame rate of each sub-stream must be consistent; if not, the frame rate of the first sub-stream is used as the output frame rate.
comment str
Template description information, length limit: 256 characters.
disable_higher_video_bitrate float
Whether to prohibit video from low bit rate to high bit rate, value range:0: no.1: yes.Default value: 0.
disable_higher_video_resolution float
Whether to prohibit the conversion of video resolution to high resolution, value range:0: no.1: yes.Default value: 0.
format str
Adaptive transcoding format, value range:HLS, MPEG-DASH.
mps_adaptive_dynamic_streaming_template_id str
ID of the resource.
name str
Template name, length limit: 64 characters.
stream_infos Sequence[MpsAdaptiveDynamicStreamingTemplateStreamInfoArgs]
Convert adaptive code stream to output sub-stream parameter information, and output up to 10 sub-streams.Note: The frame rate of each sub-stream must be consistent; if not, the frame rate of the first sub-stream is used as the output frame rate.
comment String
Template description information, length limit: 256 characters.
disableHigherVideoBitrate Number
Whether to prohibit video from low bit rate to high bit rate, value range:0: no.1: yes.Default value: 0.
disableHigherVideoResolution Number
Whether to prohibit the conversion of video resolution to high resolution, value range:0: no.1: yes.Default value: 0.
format String
Adaptive transcoding format, value range:HLS, MPEG-DASH.
mpsAdaptiveDynamicStreamingTemplateId String
ID of the resource.
name String
Template name, length limit: 64 characters.
streamInfos List<Property Map>
Convert adaptive code stream to output sub-stream parameter information, and output up to 10 sub-streams.Note: The frame rate of each sub-stream must be consistent; if not, the frame rate of the first sub-stream is used as the output frame rate.

Supporting Types

MpsAdaptiveDynamicStreamingTemplateStreamInfo
, MpsAdaptiveDynamicStreamingTemplateStreamInfoArgs

Audio This property is required. MpsAdaptiveDynamicStreamingTemplateStreamInfoAudio
Audio parameter information.
Video This property is required. MpsAdaptiveDynamicStreamingTemplateStreamInfoVideo
Video parameter information.
RemoveAudio double
Whether to remove audio stream, value:0: reserved.1: remove.
RemoveVideo double
Whether to remove video stream, value:0: reserved.1: remove.
Audio This property is required. MpsAdaptiveDynamicStreamingTemplateStreamInfoAudio
Audio parameter information.
Video This property is required. MpsAdaptiveDynamicStreamingTemplateStreamInfoVideo
Video parameter information.
RemoveAudio float64
Whether to remove audio stream, value:0: reserved.1: remove.
RemoveVideo float64
Whether to remove video stream, value:0: reserved.1: remove.
audio This property is required. MpsAdaptiveDynamicStreamingTemplateStreamInfoAudio
Audio parameter information.
video This property is required. MpsAdaptiveDynamicStreamingTemplateStreamInfoVideo
Video parameter information.
removeAudio Double
Whether to remove audio stream, value:0: reserved.1: remove.
removeVideo Double
Whether to remove video stream, value:0: reserved.1: remove.
audio This property is required. MpsAdaptiveDynamicStreamingTemplateStreamInfoAudio
Audio parameter information.
video This property is required. MpsAdaptiveDynamicStreamingTemplateStreamInfoVideo
Video parameter information.
removeAudio number
Whether to remove audio stream, value:0: reserved.1: remove.
removeVideo number
Whether to remove video stream, value:0: reserved.1: remove.
audio This property is required. MpsAdaptiveDynamicStreamingTemplateStreamInfoAudio
Audio parameter information.
video This property is required. MpsAdaptiveDynamicStreamingTemplateStreamInfoVideo
Video parameter information.
remove_audio float
Whether to remove audio stream, value:0: reserved.1: remove.
remove_video float
Whether to remove video stream, value:0: reserved.1: remove.
audio This property is required. Property Map
Audio parameter information.
video This property is required. Property Map
Video parameter information.
removeAudio Number
Whether to remove audio stream, value:0: reserved.1: remove.
removeVideo Number
Whether to remove video stream, value:0: reserved.1: remove.

MpsAdaptiveDynamicStreamingTemplateStreamInfoAudio
, MpsAdaptiveDynamicStreamingTemplateStreamInfoAudioArgs

Bitrate This property is required. double
Bit rate of the audio stream, value range: 0 and [26, 256], unit: kbps.When the value is 0, it means that the audio bit rate is consistent with the original audio.
Codec This property is required. string
Encoding format of audio stream.When the outer parameter Container is mp3, the optional value is:libmp3lame.When the outer parameter Container is ogg or flac, the optional value is:flac.When the outer parameter Container is m4a, the optional value is:libfdk_aac.libmp3lame.ac3.When the outer parameter Container is mp4 or flv, the optional value is:libfdk_aac: more suitable for mp4.libmp3lame: more suitable for flv.When the outer parameter Container is hls, the optional value is:libfdk_aac.libmp3lame.
SampleRate This property is required. double
Sampling rate of audio stream, optional value.32000.44100.48000.Unit: Hz.
AudioChannel double
Audio channel mode, optional values:`1: single channel.2: Dual channel.6: Stereo.When the package format of the media is an audio format (flac, ogg, mp3, m4a), the number of channels is not allowed to be set to stereo.Default: 2.
Bitrate This property is required. float64
Bit rate of the audio stream, value range: 0 and [26, 256], unit: kbps.When the value is 0, it means that the audio bit rate is consistent with the original audio.
Codec This property is required. string
Encoding format of audio stream.When the outer parameter Container is mp3, the optional value is:libmp3lame.When the outer parameter Container is ogg or flac, the optional value is:flac.When the outer parameter Container is m4a, the optional value is:libfdk_aac.libmp3lame.ac3.When the outer parameter Container is mp4 or flv, the optional value is:libfdk_aac: more suitable for mp4.libmp3lame: more suitable for flv.When the outer parameter Container is hls, the optional value is:libfdk_aac.libmp3lame.
SampleRate This property is required. float64
Sampling rate of audio stream, optional value.32000.44100.48000.Unit: Hz.
AudioChannel float64
Audio channel mode, optional values:`1: single channel.2: Dual channel.6: Stereo.When the package format of the media is an audio format (flac, ogg, mp3, m4a), the number of channels is not allowed to be set to stereo.Default: 2.
bitrate This property is required. Double
Bit rate of the audio stream, value range: 0 and [26, 256], unit: kbps.When the value is 0, it means that the audio bit rate is consistent with the original audio.
codec This property is required. String
Encoding format of audio stream.When the outer parameter Container is mp3, the optional value is:libmp3lame.When the outer parameter Container is ogg or flac, the optional value is:flac.When the outer parameter Container is m4a, the optional value is:libfdk_aac.libmp3lame.ac3.When the outer parameter Container is mp4 or flv, the optional value is:libfdk_aac: more suitable for mp4.libmp3lame: more suitable for flv.When the outer parameter Container is hls, the optional value is:libfdk_aac.libmp3lame.
sampleRate This property is required. Double
Sampling rate of audio stream, optional value.32000.44100.48000.Unit: Hz.
audioChannel Double
Audio channel mode, optional values:`1: single channel.2: Dual channel.6: Stereo.When the package format of the media is an audio format (flac, ogg, mp3, m4a), the number of channels is not allowed to be set to stereo.Default: 2.
bitrate This property is required. number
Bit rate of the audio stream, value range: 0 and [26, 256], unit: kbps.When the value is 0, it means that the audio bit rate is consistent with the original audio.
codec This property is required. string
Encoding format of audio stream.When the outer parameter Container is mp3, the optional value is:libmp3lame.When the outer parameter Container is ogg or flac, the optional value is:flac.When the outer parameter Container is m4a, the optional value is:libfdk_aac.libmp3lame.ac3.When the outer parameter Container is mp4 or flv, the optional value is:libfdk_aac: more suitable for mp4.libmp3lame: more suitable for flv.When the outer parameter Container is hls, the optional value is:libfdk_aac.libmp3lame.
sampleRate This property is required. number
Sampling rate of audio stream, optional value.32000.44100.48000.Unit: Hz.
audioChannel number
Audio channel mode, optional values:`1: single channel.2: Dual channel.6: Stereo.When the package format of the media is an audio format (flac, ogg, mp3, m4a), the number of channels is not allowed to be set to stereo.Default: 2.
bitrate This property is required. float
Bit rate of the audio stream, value range: 0 and [26, 256], unit: kbps.When the value is 0, it means that the audio bit rate is consistent with the original audio.
codec This property is required. str
Encoding format of audio stream.When the outer parameter Container is mp3, the optional value is:libmp3lame.When the outer parameter Container is ogg or flac, the optional value is:flac.When the outer parameter Container is m4a, the optional value is:libfdk_aac.libmp3lame.ac3.When the outer parameter Container is mp4 or flv, the optional value is:libfdk_aac: more suitable for mp4.libmp3lame: more suitable for flv.When the outer parameter Container is hls, the optional value is:libfdk_aac.libmp3lame.
sample_rate This property is required. float
Sampling rate of audio stream, optional value.32000.44100.48000.Unit: Hz.
audio_channel float
Audio channel mode, optional values:`1: single channel.2: Dual channel.6: Stereo.When the package format of the media is an audio format (flac, ogg, mp3, m4a), the number of channels is not allowed to be set to stereo.Default: 2.
bitrate This property is required. Number
Bit rate of the audio stream, value range: 0 and [26, 256], unit: kbps.When the value is 0, it means that the audio bit rate is consistent with the original audio.
codec This property is required. String
Encoding format of audio stream.When the outer parameter Container is mp3, the optional value is:libmp3lame.When the outer parameter Container is ogg or flac, the optional value is:flac.When the outer parameter Container is m4a, the optional value is:libfdk_aac.libmp3lame.ac3.When the outer parameter Container is mp4 or flv, the optional value is:libfdk_aac: more suitable for mp4.libmp3lame: more suitable for flv.When the outer parameter Container is hls, the optional value is:libfdk_aac.libmp3lame.
sampleRate This property is required. Number
Sampling rate of audio stream, optional value.32000.44100.48000.Unit: Hz.
audioChannel Number
Audio channel mode, optional values:`1: single channel.2: Dual channel.6: Stereo.When the package format of the media is an audio format (flac, ogg, mp3, m4a), the number of channels is not allowed to be set to stereo.Default: 2.

MpsAdaptiveDynamicStreamingTemplateStreamInfoVideo
, MpsAdaptiveDynamicStreamingTemplateStreamInfoVideoArgs

Bitrate This property is required. double
Bit rate of the video stream, value range: 0 and [128, 35000], unit: kbps.When the value is 0, it means that the video bit rate is consistent with the original video.
Codec This property is required. string
Encoding format of the video stream, optional value:libx264: H.264 encoding.libx265: H.265 encoding.av1: AOMedia Video 1 encoding.Note: Currently H.265 encoding must specify a resolution, and it needs to be within 640*480.Note: av1 encoded containers currently only support mp4.
Fps This property is required. double
Video frame rate, value range: [0, 100], unit: Hz.When the value is 0, it means that the frame rate is consistent with the original video.Note: The value range for adaptive code rate is [0, 60].
FillType string
Filling type, when the aspect ratio of the video stream configuration is inconsistent with the aspect ratio of the original video, the processing method for transcoding is filling. Optional filling type:stretch: Stretching, stretching each frame to fill the entire screen, which may cause the transcoded video to be squashed or stretched.black: Leave black, keep the video aspect ratio unchanged, and fill the rest of the edge with black.white: Leave blank, keep the aspect ratio of the video, and fill the rest of the edge with white.gauss: Gaussian blur, keep the aspect ratio of the video unchanged, and use Gaussian blur for the rest of the edge.Default value: black.Note: Adaptive stream only supports stretch, black.
Gop double
The interval between keyframe I frames, value range: 0 and [1, 100000], unit: number of frames.When filling 0 or not filling, the system will automatically set the gop length.
Height double
The maximum value of the height (or short side) of the video streaming, value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
ResolutionAdaptive string
Adaptive resolution, optional value:open: At this time, Width represents the long side of the video, Height represents the short side of the video.close: At this point, Width represents the width of the video, and Height represents the height of the video.Default value: open.Note: In adaptive mode, Width cannot be smaller than Height.
Vcrf double
Video constant bit rate control factor, the value range is [1, 51].If this parameter is specified, the code rate control method of CRF will be used for transcoding (the video code rate will no longer take effect).If there is no special requirement, it is not recommended to specify this parameter.
Width double
The maximum value of the width (or long side) of the video streaming, value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
Bitrate This property is required. float64
Bit rate of the video stream, value range: 0 and [128, 35000], unit: kbps.When the value is 0, it means that the video bit rate is consistent with the original video.
Codec This property is required. string
Encoding format of the video stream, optional value:libx264: H.264 encoding.libx265: H.265 encoding.av1: AOMedia Video 1 encoding.Note: Currently H.265 encoding must specify a resolution, and it needs to be within 640*480.Note: av1 encoded containers currently only support mp4.
Fps This property is required. float64
Video frame rate, value range: [0, 100], unit: Hz.When the value is 0, it means that the frame rate is consistent with the original video.Note: The value range for adaptive code rate is [0, 60].
FillType string
Filling type, when the aspect ratio of the video stream configuration is inconsistent with the aspect ratio of the original video, the processing method for transcoding is filling. Optional filling type:stretch: Stretching, stretching each frame to fill the entire screen, which may cause the transcoded video to be squashed or stretched.black: Leave black, keep the video aspect ratio unchanged, and fill the rest of the edge with black.white: Leave blank, keep the aspect ratio of the video, and fill the rest of the edge with white.gauss: Gaussian blur, keep the aspect ratio of the video unchanged, and use Gaussian blur for the rest of the edge.Default value: black.Note: Adaptive stream only supports stretch, black.
Gop float64
The interval between keyframe I frames, value range: 0 and [1, 100000], unit: number of frames.When filling 0 or not filling, the system will automatically set the gop length.
Height float64
The maximum value of the height (or short side) of the video streaming, value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
ResolutionAdaptive string
Adaptive resolution, optional value:open: At this time, Width represents the long side of the video, Height represents the short side of the video.close: At this point, Width represents the width of the video, and Height represents the height of the video.Default value: open.Note: In adaptive mode, Width cannot be smaller than Height.
Vcrf float64
Video constant bit rate control factor, the value range is [1, 51].If this parameter is specified, the code rate control method of CRF will be used for transcoding (the video code rate will no longer take effect).If there is no special requirement, it is not recommended to specify this parameter.
Width float64
The maximum value of the width (or long side) of the video streaming, value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
bitrate This property is required. Double
Bit rate of the video stream, value range: 0 and [128, 35000], unit: kbps.When the value is 0, it means that the video bit rate is consistent with the original video.
codec This property is required. String
Encoding format of the video stream, optional value:libx264: H.264 encoding.libx265: H.265 encoding.av1: AOMedia Video 1 encoding.Note: Currently H.265 encoding must specify a resolution, and it needs to be within 640*480.Note: av1 encoded containers currently only support mp4.
fps This property is required. Double
Video frame rate, value range: [0, 100], unit: Hz.When the value is 0, it means that the frame rate is consistent with the original video.Note: The value range for adaptive code rate is [0, 60].
fillType String
Filling type, when the aspect ratio of the video stream configuration is inconsistent with the aspect ratio of the original video, the processing method for transcoding is filling. Optional filling type:stretch: Stretching, stretching each frame to fill the entire screen, which may cause the transcoded video to be squashed or stretched.black: Leave black, keep the video aspect ratio unchanged, and fill the rest of the edge with black.white: Leave blank, keep the aspect ratio of the video, and fill the rest of the edge with white.gauss: Gaussian blur, keep the aspect ratio of the video unchanged, and use Gaussian blur for the rest of the edge.Default value: black.Note: Adaptive stream only supports stretch, black.
gop Double
The interval between keyframe I frames, value range: 0 and [1, 100000], unit: number of frames.When filling 0 or not filling, the system will automatically set the gop length.
height Double
The maximum value of the height (or short side) of the video streaming, value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
resolutionAdaptive String
Adaptive resolution, optional value:open: At this time, Width represents the long side of the video, Height represents the short side of the video.close: At this point, Width represents the width of the video, and Height represents the height of the video.Default value: open.Note: In adaptive mode, Width cannot be smaller than Height.
vcrf Double
Video constant bit rate control factor, the value range is [1, 51].If this parameter is specified, the code rate control method of CRF will be used for transcoding (the video code rate will no longer take effect).If there is no special requirement, it is not recommended to specify this parameter.
width Double
The maximum value of the width (or long side) of the video streaming, value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
bitrate This property is required. number
Bit rate of the video stream, value range: 0 and [128, 35000], unit: kbps.When the value is 0, it means that the video bit rate is consistent with the original video.
codec This property is required. string
Encoding format of the video stream, optional value:libx264: H.264 encoding.libx265: H.265 encoding.av1: AOMedia Video 1 encoding.Note: Currently H.265 encoding must specify a resolution, and it needs to be within 640*480.Note: av1 encoded containers currently only support mp4.
fps This property is required. number
Video frame rate, value range: [0, 100], unit: Hz.When the value is 0, it means that the frame rate is consistent with the original video.Note: The value range for adaptive code rate is [0, 60].
fillType string
Filling type, when the aspect ratio of the video stream configuration is inconsistent with the aspect ratio of the original video, the processing method for transcoding is filling. Optional filling type:stretch: Stretching, stretching each frame to fill the entire screen, which may cause the transcoded video to be squashed or stretched.black: Leave black, keep the video aspect ratio unchanged, and fill the rest of the edge with black.white: Leave blank, keep the aspect ratio of the video, and fill the rest of the edge with white.gauss: Gaussian blur, keep the aspect ratio of the video unchanged, and use Gaussian blur for the rest of the edge.Default value: black.Note: Adaptive stream only supports stretch, black.
gop number
The interval between keyframe I frames, value range: 0 and [1, 100000], unit: number of frames.When filling 0 or not filling, the system will automatically set the gop length.
height number
The maximum value of the height (or short side) of the video streaming, value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
resolutionAdaptive string
Adaptive resolution, optional value:open: At this time, Width represents the long side of the video, Height represents the short side of the video.close: At this point, Width represents the width of the video, and Height represents the height of the video.Default value: open.Note: In adaptive mode, Width cannot be smaller than Height.
vcrf number
Video constant bit rate control factor, the value range is [1, 51].If this parameter is specified, the code rate control method of CRF will be used for transcoding (the video code rate will no longer take effect).If there is no special requirement, it is not recommended to specify this parameter.
width number
The maximum value of the width (or long side) of the video streaming, value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
bitrate This property is required. float
Bit rate of the video stream, value range: 0 and [128, 35000], unit: kbps.When the value is 0, it means that the video bit rate is consistent with the original video.
codec This property is required. str
Encoding format of the video stream, optional value:libx264: H.264 encoding.libx265: H.265 encoding.av1: AOMedia Video 1 encoding.Note: Currently H.265 encoding must specify a resolution, and it needs to be within 640*480.Note: av1 encoded containers currently only support mp4.
fps This property is required. float
Video frame rate, value range: [0, 100], unit: Hz.When the value is 0, it means that the frame rate is consistent with the original video.Note: The value range for adaptive code rate is [0, 60].
fill_type str
Filling type, when the aspect ratio of the video stream configuration is inconsistent with the aspect ratio of the original video, the processing method for transcoding is filling. Optional filling type:stretch: Stretching, stretching each frame to fill the entire screen, which may cause the transcoded video to be squashed or stretched.black: Leave black, keep the video aspect ratio unchanged, and fill the rest of the edge with black.white: Leave blank, keep the aspect ratio of the video, and fill the rest of the edge with white.gauss: Gaussian blur, keep the aspect ratio of the video unchanged, and use Gaussian blur for the rest of the edge.Default value: black.Note: Adaptive stream only supports stretch, black.
gop float
The interval between keyframe I frames, value range: 0 and [1, 100000], unit: number of frames.When filling 0 or not filling, the system will automatically set the gop length.
height float
The maximum value of the height (or short side) of the video streaming, value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
resolution_adaptive str
Adaptive resolution, optional value:open: At this time, Width represents the long side of the video, Height represents the short side of the video.close: At this point, Width represents the width of the video, and Height represents the height of the video.Default value: open.Note: In adaptive mode, Width cannot be smaller than Height.
vcrf float
Video constant bit rate control factor, the value range is [1, 51].If this parameter is specified, the code rate control method of CRF will be used for transcoding (the video code rate will no longer take effect).If there is no special requirement, it is not recommended to specify this parameter.
width float
The maximum value of the width (or long side) of the video streaming, value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
bitrate This property is required. Number
Bit rate of the video stream, value range: 0 and [128, 35000], unit: kbps.When the value is 0, it means that the video bit rate is consistent with the original video.
codec This property is required. String
Encoding format of the video stream, optional value:libx264: H.264 encoding.libx265: H.265 encoding.av1: AOMedia Video 1 encoding.Note: Currently H.265 encoding must specify a resolution, and it needs to be within 640*480.Note: av1 encoded containers currently only support mp4.
fps This property is required. Number
Video frame rate, value range: [0, 100], unit: Hz.When the value is 0, it means that the frame rate is consistent with the original video.Note: The value range for adaptive code rate is [0, 60].
fillType String
Filling type, when the aspect ratio of the video stream configuration is inconsistent with the aspect ratio of the original video, the processing method for transcoding is filling. Optional filling type:stretch: Stretching, stretching each frame to fill the entire screen, which may cause the transcoded video to be squashed or stretched.black: Leave black, keep the video aspect ratio unchanged, and fill the rest of the edge with black.white: Leave blank, keep the aspect ratio of the video, and fill the rest of the edge with white.gauss: Gaussian blur, keep the aspect ratio of the video unchanged, and use Gaussian blur for the rest of the edge.Default value: black.Note: Adaptive stream only supports stretch, black.
gop Number
The interval between keyframe I frames, value range: 0 and [1, 100000], unit: number of frames.When filling 0 or not filling, the system will automatically set the gop length.
height Number
The maximum value of the height (or short side) of the video streaming, value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
resolutionAdaptive String
Adaptive resolution, optional value:open: At this time, Width represents the long side of the video, Height represents the short side of the video.close: At this point, Width represents the width of the video, and Height represents the height of the video.Default value: open.Note: In adaptive mode, Width cannot be smaller than Height.
vcrf Number
Video constant bit rate control factor, the value range is [1, 51].If this parameter is specified, the code rate control method of CRF will be used for transcoding (the video code rate will no longer take effect).If there is no special requirement, it is not recommended to specify this parameter.
width Number
The maximum value of the width (or long side) of the video streaming, value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.

Import

mps adaptive_dynamic_streaming_template can be imported using the id, e.g.

$ pulumi import tencentcloud:index/mpsAdaptiveDynamicStreamingTemplate:MpsAdaptiveDynamicStreamingTemplate adaptive_dynamic_streaming_template adaptive_dynamic_streaming_template_id
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.