1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. CiMediaTranscodeTemplate
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.CiMediaTranscodeTemplate

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a ci media_transcode_template

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const mediaTranscodeTemplate = new tencentcloud.CiMediaTranscodeTemplate("mediaTranscodeTemplate", {
        audio: {
            bitrate: "128",
            channels: "4",
            codec: "aac",
            keepTwoTracks: "false",
            remove: "false",
            sampleFormat: "",
            samplerate: "44100",
            switchTrack: "false",
        },
        audioMixes: [{
            audioSource: "https://terraform-ci-1308919341.cos.ap-guangzhou.myqcloud.com/mp3%2Fnizhan-test.mp3",
            effectConfig: {
                bgmFadeTime: "1.7",
                enableBgmFade: "true",
                enableEndFadeout: "false",
                enableStartFadein: "true",
                endFadeoutTime: "0",
                startFadeinTime: "3",
            },
            mixMode: "Once",
            replace: "true",
        }],
        bucket: "terraform-ci-1308919341",
        container: {
            format: "mp4",
        },
        timeInterval: {
            duration: "60",
            start: "0",
        },
        transConfig: {
            adjDarMethod: "scale",
            audioBitrateAdjMethod: "0",
            deleteMetadata: "false",
            isCheckAudioBitrate: "false",
            isCheckReso: "false",
            isCheckVideoBitrate: "false",
            isHdr2Sdr: "false",
            resoAdjMethod: "1",
            videoBitrateAdjMethod: "0",
        },
        video: {
            bitrate: "1000",
            codec: "H.264",
            fps: "30",
            longShortMode: "false",
            preset: "medium",
            profile: "high",
            remove: "false",
            width: "1280",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    media_transcode_template = tencentcloud.CiMediaTranscodeTemplate("mediaTranscodeTemplate",
        audio={
            "bitrate": "128",
            "channels": "4",
            "codec": "aac",
            "keep_two_tracks": "false",
            "remove": "false",
            "sample_format": "",
            "samplerate": "44100",
            "switch_track": "false",
        },
        audio_mixes=[{
            "audio_source": "https://terraform-ci-1308919341.cos.ap-guangzhou.myqcloud.com/mp3%2Fnizhan-test.mp3",
            "effect_config": {
                "bgm_fade_time": "1.7",
                "enable_bgm_fade": "true",
                "enable_end_fadeout": "false",
                "enable_start_fadein": "true",
                "end_fadeout_time": "0",
                "start_fadein_time": "3",
            },
            "mix_mode": "Once",
            "replace": "true",
        }],
        bucket="terraform-ci-1308919341",
        container={
            "format": "mp4",
        },
        time_interval={
            "duration": "60",
            "start": "0",
        },
        trans_config={
            "adj_dar_method": "scale",
            "audio_bitrate_adj_method": "0",
            "delete_metadata": "false",
            "is_check_audio_bitrate": "false",
            "is_check_reso": "false",
            "is_check_video_bitrate": "false",
            "is_hdr2_sdr": "false",
            "reso_adj_method": "1",
            "video_bitrate_adj_method": "0",
        },
        video={
            "bitrate": "1000",
            "codec": "H.264",
            "fps": "30",
            "long_short_mode": "false",
            "preset": "medium",
            "profile": "high",
            "remove": "false",
            "width": "1280",
        })
    
    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.NewCiMediaTranscodeTemplate(ctx, "mediaTranscodeTemplate", &tencentcloud.CiMediaTranscodeTemplateArgs{
    			Audio: &tencentcloud.CiMediaTranscodeTemplateAudioArgs{
    				Bitrate:       pulumi.String("128"),
    				Channels:      pulumi.String("4"),
    				Codec:         pulumi.String("aac"),
    				KeepTwoTracks: pulumi.String("false"),
    				Remove:        pulumi.String("false"),
    				SampleFormat:  pulumi.String(""),
    				Samplerate:    pulumi.String("44100"),
    				SwitchTrack:   pulumi.String("false"),
    			},
    			AudioMixes: tencentcloud.CiMediaTranscodeTemplateAudioMixArray{
    				&tencentcloud.CiMediaTranscodeTemplateAudioMixArgs{
    					AudioSource: pulumi.String("https://terraform-ci-1308919341.cos.ap-guangzhou.myqcloud.com/mp3%2Fnizhan-test.mp3"),
    					EffectConfig: &tencentcloud.CiMediaTranscodeTemplateAudioMixEffectConfigArgs{
    						BgmFadeTime:       pulumi.String("1.7"),
    						EnableBgmFade:     pulumi.String("true"),
    						EnableEndFadeout:  pulumi.String("false"),
    						EnableStartFadein: pulumi.String("true"),
    						EndFadeoutTime:    pulumi.String("0"),
    						StartFadeinTime:   pulumi.String("3"),
    					},
    					MixMode: pulumi.String("Once"),
    					Replace: pulumi.String("true"),
    				},
    			},
    			Bucket: pulumi.String("terraform-ci-1308919341"),
    			Container: &tencentcloud.CiMediaTranscodeTemplateContainerArgs{
    				Format: pulumi.String("mp4"),
    			},
    			TimeInterval: &tencentcloud.CiMediaTranscodeTemplateTimeIntervalArgs{
    				Duration: pulumi.String("60"),
    				Start:    pulumi.String("0"),
    			},
    			TransConfig: &tencentcloud.CiMediaTranscodeTemplateTransConfigArgs{
    				AdjDarMethod:          pulumi.String("scale"),
    				AudioBitrateAdjMethod: pulumi.String("0"),
    				DeleteMetadata:        pulumi.String("false"),
    				IsCheckAudioBitrate:   pulumi.String("false"),
    				IsCheckReso:           pulumi.String("false"),
    				IsCheckVideoBitrate:   pulumi.String("false"),
    				IsHdr2Sdr:             pulumi.String("false"),
    				ResoAdjMethod:         pulumi.String("1"),
    				VideoBitrateAdjMethod: pulumi.String("0"),
    			},
    			Video: &tencentcloud.CiMediaTranscodeTemplateVideoArgs{
    				Bitrate:       pulumi.String("1000"),
    				Codec:         pulumi.String("H.264"),
    				Fps:           pulumi.String("30"),
    				LongShortMode: pulumi.String("false"),
    				Preset:        pulumi.String("medium"),
    				Profile:       pulumi.String("high"),
    				Remove:        pulumi.String("false"),
    				Width:         pulumi.String("1280"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var mediaTranscodeTemplate = new Tencentcloud.CiMediaTranscodeTemplate("mediaTranscodeTemplate", new()
        {
            Audio = new Tencentcloud.Inputs.CiMediaTranscodeTemplateAudioArgs
            {
                Bitrate = "128",
                Channels = "4",
                Codec = "aac",
                KeepTwoTracks = "false",
                Remove = "false",
                SampleFormat = "",
                Samplerate = "44100",
                SwitchTrack = "false",
            },
            AudioMixes = new[]
            {
                new Tencentcloud.Inputs.CiMediaTranscodeTemplateAudioMixArgs
                {
                    AudioSource = "https://terraform-ci-1308919341.cos.ap-guangzhou.myqcloud.com/mp3%2Fnizhan-test.mp3",
                    EffectConfig = new Tencentcloud.Inputs.CiMediaTranscodeTemplateAudioMixEffectConfigArgs
                    {
                        BgmFadeTime = "1.7",
                        EnableBgmFade = "true",
                        EnableEndFadeout = "false",
                        EnableStartFadein = "true",
                        EndFadeoutTime = "0",
                        StartFadeinTime = "3",
                    },
                    MixMode = "Once",
                    Replace = "true",
                },
            },
            Bucket = "terraform-ci-1308919341",
            Container = new Tencentcloud.Inputs.CiMediaTranscodeTemplateContainerArgs
            {
                Format = "mp4",
            },
            TimeInterval = new Tencentcloud.Inputs.CiMediaTranscodeTemplateTimeIntervalArgs
            {
                Duration = "60",
                Start = "0",
            },
            TransConfig = new Tencentcloud.Inputs.CiMediaTranscodeTemplateTransConfigArgs
            {
                AdjDarMethod = "scale",
                AudioBitrateAdjMethod = "0",
                DeleteMetadata = "false",
                IsCheckAudioBitrate = "false",
                IsCheckReso = "false",
                IsCheckVideoBitrate = "false",
                IsHdr2Sdr = "false",
                ResoAdjMethod = "1",
                VideoBitrateAdjMethod = "0",
            },
            Video = new Tencentcloud.Inputs.CiMediaTranscodeTemplateVideoArgs
            {
                Bitrate = "1000",
                Codec = "H.264",
                Fps = "30",
                LongShortMode = "false",
                Preset = "medium",
                Profile = "high",
                Remove = "false",
                Width = "1280",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CiMediaTranscodeTemplate;
    import com.pulumi.tencentcloud.CiMediaTranscodeTemplateArgs;
    import com.pulumi.tencentcloud.inputs.CiMediaTranscodeTemplateAudioArgs;
    import com.pulumi.tencentcloud.inputs.CiMediaTranscodeTemplateAudioMixArgs;
    import com.pulumi.tencentcloud.inputs.CiMediaTranscodeTemplateAudioMixEffectConfigArgs;
    import com.pulumi.tencentcloud.inputs.CiMediaTranscodeTemplateContainerArgs;
    import com.pulumi.tencentcloud.inputs.CiMediaTranscodeTemplateTimeIntervalArgs;
    import com.pulumi.tencentcloud.inputs.CiMediaTranscodeTemplateTransConfigArgs;
    import com.pulumi.tencentcloud.inputs.CiMediaTranscodeTemplateVideoArgs;
    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 mediaTranscodeTemplate = new CiMediaTranscodeTemplate("mediaTranscodeTemplate", CiMediaTranscodeTemplateArgs.builder()
                .audio(CiMediaTranscodeTemplateAudioArgs.builder()
                    .bitrate("128")
                    .channels("4")
                    .codec("aac")
                    .keepTwoTracks("false")
                    .remove("false")
                    .sampleFormat("")
                    .samplerate("44100")
                    .switchTrack("false")
                    .build())
                .audioMixes(CiMediaTranscodeTemplateAudioMixArgs.builder()
                    .audioSource("https://terraform-ci-1308919341.cos.ap-guangzhou.myqcloud.com/mp3%2Fnizhan-test.mp3")
                    .effectConfig(CiMediaTranscodeTemplateAudioMixEffectConfigArgs.builder()
                        .bgmFadeTime("1.7")
                        .enableBgmFade("true")
                        .enableEndFadeout("false")
                        .enableStartFadein("true")
                        .endFadeoutTime("0")
                        .startFadeinTime("3")
                        .build())
                    .mixMode("Once")
                    .replace("true")
                    .build())
                .bucket("terraform-ci-1308919341")
                .container(CiMediaTranscodeTemplateContainerArgs.builder()
                    .format("mp4")
                    .build())
                .timeInterval(CiMediaTranscodeTemplateTimeIntervalArgs.builder()
                    .duration("60")
                    .start("0")
                    .build())
                .transConfig(CiMediaTranscodeTemplateTransConfigArgs.builder()
                    .adjDarMethod("scale")
                    .audioBitrateAdjMethod("0")
                    .deleteMetadata("false")
                    .isCheckAudioBitrate("false")
                    .isCheckReso("false")
                    .isCheckVideoBitrate("false")
                    .isHdr2Sdr("false")
                    .resoAdjMethod("1")
                    .videoBitrateAdjMethod("0")
                    .build())
                .video(CiMediaTranscodeTemplateVideoArgs.builder()
                    .bitrate("1000")
                    .codec("H.264")
                    .fps("30")
                    .longShortMode("false")
                    .preset("medium")
                    .profile("high")
                    .remove("false")
                    .width("1280")
                    .build())
                .build());
    
        }
    }
    
    resources:
      mediaTranscodeTemplate:
        type: tencentcloud:CiMediaTranscodeTemplate
        properties:
          audio:
            bitrate: '128'
            channels: '4'
            codec: aac
            keepTwoTracks: 'false'
            remove: 'false'
            sampleFormat: ""
            samplerate: '44100'
            switchTrack: 'false'
          audioMixes:
            - audioSource: https://terraform-ci-1308919341.cos.ap-guangzhou.myqcloud.com/mp3%2Fnizhan-test.mp3
              effectConfig:
                bgmFadeTime: '1.7'
                enableBgmFade: 'true'
                enableEndFadeout: 'false'
                enableStartFadein: 'true'
                endFadeoutTime: '0'
                startFadeinTime: '3'
              mixMode: Once
              replace: 'true'
          bucket: terraform-ci-1308919341
          container:
            format: mp4
          timeInterval:
            duration: '60'
            start: '0'
          transConfig:
            adjDarMethod: scale
            audioBitrateAdjMethod: '0'
            deleteMetadata: 'false'
            isCheckAudioBitrate: 'false'
            isCheckReso: 'false'
            isCheckVideoBitrate: 'false'
            isHdr2Sdr: 'false'
            resoAdjMethod: '1'
            videoBitrateAdjMethod: '0'
          video:
            bitrate: '1000'
            codec: H.264
            fps: '30'
            longShortMode: 'false'
            preset: medium
            profile: high
            remove: 'false'
            width: '1280'
    

    Create CiMediaTranscodeTemplate Resource

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

    Constructor syntax

    new CiMediaTranscodeTemplate(name: string, args: CiMediaTranscodeTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def CiMediaTranscodeTemplate(resource_name: str,
                                 args: CiMediaTranscodeTemplateArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def CiMediaTranscodeTemplate(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 bucket: Optional[str] = None,
                                 container: Optional[CiMediaTranscodeTemplateContainerArgs] = None,
                                 audio: Optional[CiMediaTranscodeTemplateAudioArgs] = None,
                                 audio_mixes: Optional[Sequence[CiMediaTranscodeTemplateAudioMixArgs]] = None,
                                 ci_media_transcode_template_id: Optional[str] = None,
                                 name: Optional[str] = None,
                                 time_interval: Optional[CiMediaTranscodeTemplateTimeIntervalArgs] = None,
                                 trans_config: Optional[CiMediaTranscodeTemplateTransConfigArgs] = None,
                                 video: Optional[CiMediaTranscodeTemplateVideoArgs] = None)
    func NewCiMediaTranscodeTemplate(ctx *Context, name string, args CiMediaTranscodeTemplateArgs, opts ...ResourceOption) (*CiMediaTranscodeTemplate, error)
    public CiMediaTranscodeTemplate(string name, CiMediaTranscodeTemplateArgs args, CustomResourceOptions? opts = null)
    public CiMediaTranscodeTemplate(String name, CiMediaTranscodeTemplateArgs args)
    public CiMediaTranscodeTemplate(String name, CiMediaTranscodeTemplateArgs args, CustomResourceOptions options)
    
    type: tencentcloud:CiMediaTranscodeTemplate
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

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

    CiMediaTranscodeTemplate 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 CiMediaTranscodeTemplate resource accepts the following input properties:

    Bucket string
    bucket name.
    Container CiMediaTranscodeTemplateContainer
    container format.
    Audio CiMediaTranscodeTemplateAudio
    Audio information, do not transmit Audio, which is equivalent to deleting audio information.
    AudioMixes List<CiMediaTranscodeTemplateAudioMix>
    mixing parameters.
    CiMediaTranscodeTemplateId string
    ID of the resource.
    Name string
    The template name only supports Chinese, English, numbers, _, - and *.
    TimeInterval CiMediaTranscodeTemplateTimeInterval
    time interval.
    TransConfig CiMediaTranscodeTemplateTransConfig
    transcoding configuration.
    Video CiMediaTranscodeTemplateVideo
    video information, do not upload Video, which is equivalent to deleting video information.
    Bucket string
    bucket name.
    Container CiMediaTranscodeTemplateContainerArgs
    container format.
    Audio CiMediaTranscodeTemplateAudioArgs
    Audio information, do not transmit Audio, which is equivalent to deleting audio information.
    AudioMixes []CiMediaTranscodeTemplateAudioMixArgs
    mixing parameters.
    CiMediaTranscodeTemplateId string
    ID of the resource.
    Name string
    The template name only supports Chinese, English, numbers, _, - and *.
    TimeInterval CiMediaTranscodeTemplateTimeIntervalArgs
    time interval.
    TransConfig CiMediaTranscodeTemplateTransConfigArgs
    transcoding configuration.
    Video CiMediaTranscodeTemplateVideoArgs
    video information, do not upload Video, which is equivalent to deleting video information.
    bucket String
    bucket name.
    container CiMediaTranscodeTemplateContainer
    container format.
    audio CiMediaTranscodeTemplateAudio
    Audio information, do not transmit Audio, which is equivalent to deleting audio information.
    audioMixes List<CiMediaTranscodeTemplateAudioMix>
    mixing parameters.
    ciMediaTranscodeTemplateId String
    ID of the resource.
    name String
    The template name only supports Chinese, English, numbers, _, - and *.
    timeInterval CiMediaTranscodeTemplateTimeInterval
    time interval.
    transConfig CiMediaTranscodeTemplateTransConfig
    transcoding configuration.
    video CiMediaTranscodeTemplateVideo
    video information, do not upload Video, which is equivalent to deleting video information.
    bucket string
    bucket name.
    container CiMediaTranscodeTemplateContainer
    container format.
    audio CiMediaTranscodeTemplateAudio
    Audio information, do not transmit Audio, which is equivalent to deleting audio information.
    audioMixes CiMediaTranscodeTemplateAudioMix[]
    mixing parameters.
    ciMediaTranscodeTemplateId string
    ID of the resource.
    name string
    The template name only supports Chinese, English, numbers, _, - and *.
    timeInterval CiMediaTranscodeTemplateTimeInterval
    time interval.
    transConfig CiMediaTranscodeTemplateTransConfig
    transcoding configuration.
    video CiMediaTranscodeTemplateVideo
    video information, do not upload Video, which is equivalent to deleting video information.
    bucket str
    bucket name.
    container CiMediaTranscodeTemplateContainerArgs
    container format.
    audio CiMediaTranscodeTemplateAudioArgs
    Audio information, do not transmit Audio, which is equivalent to deleting audio information.
    audio_mixes Sequence[CiMediaTranscodeTemplateAudioMixArgs]
    mixing parameters.
    ci_media_transcode_template_id str
    ID of the resource.
    name str
    The template name only supports Chinese, English, numbers, _, - and *.
    time_interval CiMediaTranscodeTemplateTimeIntervalArgs
    time interval.
    trans_config CiMediaTranscodeTemplateTransConfigArgs
    transcoding configuration.
    video CiMediaTranscodeTemplateVideoArgs
    video information, do not upload Video, which is equivalent to deleting video information.
    bucket String
    bucket name.
    container Property Map
    container format.
    audio Property Map
    Audio information, do not transmit Audio, which is equivalent to deleting audio information.
    audioMixes List<Property Map>
    mixing parameters.
    ciMediaTranscodeTemplateId String
    ID of the resource.
    name String
    The template name only supports Chinese, English, numbers, _, - and *.
    timeInterval Property Map
    time interval.
    transConfig Property Map
    transcoding configuration.
    video Property Map
    video information, do not upload Video, which is equivalent to deleting video information.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CiMediaTranscodeTemplate 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 CiMediaTranscodeTemplate Resource

    Get an existing CiMediaTranscodeTemplate 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?: CiMediaTranscodeTemplateState, opts?: CustomResourceOptions): CiMediaTranscodeTemplate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            audio: Optional[CiMediaTranscodeTemplateAudioArgs] = None,
            audio_mixes: Optional[Sequence[CiMediaTranscodeTemplateAudioMixArgs]] = None,
            bucket: Optional[str] = None,
            ci_media_transcode_template_id: Optional[str] = None,
            container: Optional[CiMediaTranscodeTemplateContainerArgs] = None,
            name: Optional[str] = None,
            time_interval: Optional[CiMediaTranscodeTemplateTimeIntervalArgs] = None,
            trans_config: Optional[CiMediaTranscodeTemplateTransConfigArgs] = None,
            video: Optional[CiMediaTranscodeTemplateVideoArgs] = None) -> CiMediaTranscodeTemplate
    func GetCiMediaTranscodeTemplate(ctx *Context, name string, id IDInput, state *CiMediaTranscodeTemplateState, opts ...ResourceOption) (*CiMediaTranscodeTemplate, error)
    public static CiMediaTranscodeTemplate Get(string name, Input<string> id, CiMediaTranscodeTemplateState? state, CustomResourceOptions? opts = null)
    public static CiMediaTranscodeTemplate get(String name, Output<String> id, CiMediaTranscodeTemplateState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:CiMediaTranscodeTemplate    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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:
    Audio CiMediaTranscodeTemplateAudio
    Audio information, do not transmit Audio, which is equivalent to deleting audio information.
    AudioMixes List<CiMediaTranscodeTemplateAudioMix>
    mixing parameters.
    Bucket string
    bucket name.
    CiMediaTranscodeTemplateId string
    ID of the resource.
    Container CiMediaTranscodeTemplateContainer
    container format.
    Name string
    The template name only supports Chinese, English, numbers, _, - and *.
    TimeInterval CiMediaTranscodeTemplateTimeInterval
    time interval.
    TransConfig CiMediaTranscodeTemplateTransConfig
    transcoding configuration.
    Video CiMediaTranscodeTemplateVideo
    video information, do not upload Video, which is equivalent to deleting video information.
    Audio CiMediaTranscodeTemplateAudioArgs
    Audio information, do not transmit Audio, which is equivalent to deleting audio information.
    AudioMixes []CiMediaTranscodeTemplateAudioMixArgs
    mixing parameters.
    Bucket string
    bucket name.
    CiMediaTranscodeTemplateId string
    ID of the resource.
    Container CiMediaTranscodeTemplateContainerArgs
    container format.
    Name string
    The template name only supports Chinese, English, numbers, _, - and *.
    TimeInterval CiMediaTranscodeTemplateTimeIntervalArgs
    time interval.
    TransConfig CiMediaTranscodeTemplateTransConfigArgs
    transcoding configuration.
    Video CiMediaTranscodeTemplateVideoArgs
    video information, do not upload Video, which is equivalent to deleting video information.
    audio CiMediaTranscodeTemplateAudio
    Audio information, do not transmit Audio, which is equivalent to deleting audio information.
    audioMixes List<CiMediaTranscodeTemplateAudioMix>
    mixing parameters.
    bucket String
    bucket name.
    ciMediaTranscodeTemplateId String
    ID of the resource.
    container CiMediaTranscodeTemplateContainer
    container format.
    name String
    The template name only supports Chinese, English, numbers, _, - and *.
    timeInterval CiMediaTranscodeTemplateTimeInterval
    time interval.
    transConfig CiMediaTranscodeTemplateTransConfig
    transcoding configuration.
    video CiMediaTranscodeTemplateVideo
    video information, do not upload Video, which is equivalent to deleting video information.
    audio CiMediaTranscodeTemplateAudio
    Audio information, do not transmit Audio, which is equivalent to deleting audio information.
    audioMixes CiMediaTranscodeTemplateAudioMix[]
    mixing parameters.
    bucket string
    bucket name.
    ciMediaTranscodeTemplateId string
    ID of the resource.
    container CiMediaTranscodeTemplateContainer
    container format.
    name string
    The template name only supports Chinese, English, numbers, _, - and *.
    timeInterval CiMediaTranscodeTemplateTimeInterval
    time interval.
    transConfig CiMediaTranscodeTemplateTransConfig
    transcoding configuration.
    video CiMediaTranscodeTemplateVideo
    video information, do not upload Video, which is equivalent to deleting video information.
    audio CiMediaTranscodeTemplateAudioArgs
    Audio information, do not transmit Audio, which is equivalent to deleting audio information.
    audio_mixes Sequence[CiMediaTranscodeTemplateAudioMixArgs]
    mixing parameters.
    bucket str
    bucket name.
    ci_media_transcode_template_id str
    ID of the resource.
    container CiMediaTranscodeTemplateContainerArgs
    container format.
    name str
    The template name only supports Chinese, English, numbers, _, - and *.
    time_interval CiMediaTranscodeTemplateTimeIntervalArgs
    time interval.
    trans_config CiMediaTranscodeTemplateTransConfigArgs
    transcoding configuration.
    video CiMediaTranscodeTemplateVideoArgs
    video information, do not upload Video, which is equivalent to deleting video information.
    audio Property Map
    Audio information, do not transmit Audio, which is equivalent to deleting audio information.
    audioMixes List<Property Map>
    mixing parameters.
    bucket String
    bucket name.
    ciMediaTranscodeTemplateId String
    ID of the resource.
    container Property Map
    container format.
    name String
    The template name only supports Chinese, English, numbers, _, - and *.
    timeInterval Property Map
    time interval.
    transConfig Property Map
    transcoding configuration.
    video Property Map
    video information, do not upload Video, which is equivalent to deleting video information.

    Supporting Types

    CiMediaTranscodeTemplateAudio, CiMediaTranscodeTemplateAudioArgs

    Bitrate string
    Original audio bit rate, unit: Kbps, Value range: [8, 1000].
    Channels string
    number of channels- When Codec is set to aac/flac, support 1, 2, 4, 5, 6, 8- When Codec is set to mp3/opus, support 1, 2- When Codec is set to Vorbis, only 2 is supported- When Codec is set to amr, only 1 is supported- When Codec is set to pcm_s16le, only 1 and 2 are supported- When the encapsulation format is dash, 8 is not supported.
    Codec string
    Codec format, value aac, mp3, flac, amr, Vorbis, opus, pcm_s16le.
    KeepTwoTracks string
    Keep dual audio tracks, the value is true, false. This parameter is invalid when Video.Codec is H.265.
    Remove string
    Whether to delete the source audio stream, the value is true, false.
    SampleFormat string
    Sampling bit width- When Codec is set to aac, support fltp- When Codec is set to mp3, fltp, s16p, s32p are supported- When Codec is set to flac, s16, s32, s16p, s32p are supported- When Codec is set to amr, support s16, s16p- When Codec is set to opus, support s16- When Codec is set to pcm_s16le, support s16- When Codec is set to Vorbis, support fltp- This parameter is invalid when Video.Codec is H.265.
    Samplerate string
    Sampling Rate- Unit: Hz- Optional 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 88200, 96000- Different packages, mp3 supports different sampling rates, as shown in the table below- When Codec is set to amr, only 8000 is supported- When Codec is set to opus, it supports 8000, 16000, 24000, 48000.
    SwitchTrack string
    Convert track, the value is true, false. This parameter is invalid when Video.Codec is H.265.
    Bitrate string
    Original audio bit rate, unit: Kbps, Value range: [8, 1000].
    Channels string
    number of channels- When Codec is set to aac/flac, support 1, 2, 4, 5, 6, 8- When Codec is set to mp3/opus, support 1, 2- When Codec is set to Vorbis, only 2 is supported- When Codec is set to amr, only 1 is supported- When Codec is set to pcm_s16le, only 1 and 2 are supported- When the encapsulation format is dash, 8 is not supported.
    Codec string
    Codec format, value aac, mp3, flac, amr, Vorbis, opus, pcm_s16le.
    KeepTwoTracks string
    Keep dual audio tracks, the value is true, false. This parameter is invalid when Video.Codec is H.265.
    Remove string
    Whether to delete the source audio stream, the value is true, false.
    SampleFormat string
    Sampling bit width- When Codec is set to aac, support fltp- When Codec is set to mp3, fltp, s16p, s32p are supported- When Codec is set to flac, s16, s32, s16p, s32p are supported- When Codec is set to amr, support s16, s16p- When Codec is set to opus, support s16- When Codec is set to pcm_s16le, support s16- When Codec is set to Vorbis, support fltp- This parameter is invalid when Video.Codec is H.265.
    Samplerate string
    Sampling Rate- Unit: Hz- Optional 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 88200, 96000- Different packages, mp3 supports different sampling rates, as shown in the table below- When Codec is set to amr, only 8000 is supported- When Codec is set to opus, it supports 8000, 16000, 24000, 48000.
    SwitchTrack string
    Convert track, the value is true, false. This parameter is invalid when Video.Codec is H.265.
    bitrate String
    Original audio bit rate, unit: Kbps, Value range: [8, 1000].
    channels String
    number of channels- When Codec is set to aac/flac, support 1, 2, 4, 5, 6, 8- When Codec is set to mp3/opus, support 1, 2- When Codec is set to Vorbis, only 2 is supported- When Codec is set to amr, only 1 is supported- When Codec is set to pcm_s16le, only 1 and 2 are supported- When the encapsulation format is dash, 8 is not supported.
    codec String
    Codec format, value aac, mp3, flac, amr, Vorbis, opus, pcm_s16le.
    keepTwoTracks String
    Keep dual audio tracks, the value is true, false. This parameter is invalid when Video.Codec is H.265.
    remove String
    Whether to delete the source audio stream, the value is true, false.
    sampleFormat String
    Sampling bit width- When Codec is set to aac, support fltp- When Codec is set to mp3, fltp, s16p, s32p are supported- When Codec is set to flac, s16, s32, s16p, s32p are supported- When Codec is set to amr, support s16, s16p- When Codec is set to opus, support s16- When Codec is set to pcm_s16le, support s16- When Codec is set to Vorbis, support fltp- This parameter is invalid when Video.Codec is H.265.
    samplerate String
    Sampling Rate- Unit: Hz- Optional 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 88200, 96000- Different packages, mp3 supports different sampling rates, as shown in the table below- When Codec is set to amr, only 8000 is supported- When Codec is set to opus, it supports 8000, 16000, 24000, 48000.
    switchTrack String
    Convert track, the value is true, false. This parameter is invalid when Video.Codec is H.265.
    bitrate string
    Original audio bit rate, unit: Kbps, Value range: [8, 1000].
    channels string
    number of channels- When Codec is set to aac/flac, support 1, 2, 4, 5, 6, 8- When Codec is set to mp3/opus, support 1, 2- When Codec is set to Vorbis, only 2 is supported- When Codec is set to amr, only 1 is supported- When Codec is set to pcm_s16le, only 1 and 2 are supported- When the encapsulation format is dash, 8 is not supported.
    codec string
    Codec format, value aac, mp3, flac, amr, Vorbis, opus, pcm_s16le.
    keepTwoTracks string
    Keep dual audio tracks, the value is true, false. This parameter is invalid when Video.Codec is H.265.
    remove string
    Whether to delete the source audio stream, the value is true, false.
    sampleFormat string
    Sampling bit width- When Codec is set to aac, support fltp- When Codec is set to mp3, fltp, s16p, s32p are supported- When Codec is set to flac, s16, s32, s16p, s32p are supported- When Codec is set to amr, support s16, s16p- When Codec is set to opus, support s16- When Codec is set to pcm_s16le, support s16- When Codec is set to Vorbis, support fltp- This parameter is invalid when Video.Codec is H.265.
    samplerate string
    Sampling Rate- Unit: Hz- Optional 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 88200, 96000- Different packages, mp3 supports different sampling rates, as shown in the table below- When Codec is set to amr, only 8000 is supported- When Codec is set to opus, it supports 8000, 16000, 24000, 48000.
    switchTrack string
    Convert track, the value is true, false. This parameter is invalid when Video.Codec is H.265.
    bitrate str
    Original audio bit rate, unit: Kbps, Value range: [8, 1000].
    channels str
    number of channels- When Codec is set to aac/flac, support 1, 2, 4, 5, 6, 8- When Codec is set to mp3/opus, support 1, 2- When Codec is set to Vorbis, only 2 is supported- When Codec is set to amr, only 1 is supported- When Codec is set to pcm_s16le, only 1 and 2 are supported- When the encapsulation format is dash, 8 is not supported.
    codec str
    Codec format, value aac, mp3, flac, amr, Vorbis, opus, pcm_s16le.
    keep_two_tracks str
    Keep dual audio tracks, the value is true, false. This parameter is invalid when Video.Codec is H.265.
    remove str
    Whether to delete the source audio stream, the value is true, false.
    sample_format str
    Sampling bit width- When Codec is set to aac, support fltp- When Codec is set to mp3, fltp, s16p, s32p are supported- When Codec is set to flac, s16, s32, s16p, s32p are supported- When Codec is set to amr, support s16, s16p- When Codec is set to opus, support s16- When Codec is set to pcm_s16le, support s16- When Codec is set to Vorbis, support fltp- This parameter is invalid when Video.Codec is H.265.
    samplerate str
    Sampling Rate- Unit: Hz- Optional 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 88200, 96000- Different packages, mp3 supports different sampling rates, as shown in the table below- When Codec is set to amr, only 8000 is supported- When Codec is set to opus, it supports 8000, 16000, 24000, 48000.
    switch_track str
    Convert track, the value is true, false. This parameter is invalid when Video.Codec is H.265.
    bitrate String
    Original audio bit rate, unit: Kbps, Value range: [8, 1000].
    channels String
    number of channels- When Codec is set to aac/flac, support 1, 2, 4, 5, 6, 8- When Codec is set to mp3/opus, support 1, 2- When Codec is set to Vorbis, only 2 is supported- When Codec is set to amr, only 1 is supported- When Codec is set to pcm_s16le, only 1 and 2 are supported- When the encapsulation format is dash, 8 is not supported.
    codec String
    Codec format, value aac, mp3, flac, amr, Vorbis, opus, pcm_s16le.
    keepTwoTracks String
    Keep dual audio tracks, the value is true, false. This parameter is invalid when Video.Codec is H.265.
    remove String
    Whether to delete the source audio stream, the value is true, false.
    sampleFormat String
    Sampling bit width- When Codec is set to aac, support fltp- When Codec is set to mp3, fltp, s16p, s32p are supported- When Codec is set to flac, s16, s32, s16p, s32p are supported- When Codec is set to amr, support s16, s16p- When Codec is set to opus, support s16- When Codec is set to pcm_s16le, support s16- When Codec is set to Vorbis, support fltp- This parameter is invalid when Video.Codec is H.265.
    samplerate String
    Sampling Rate- Unit: Hz- Optional 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 88200, 96000- Different packages, mp3 supports different sampling rates, as shown in the table below- When Codec is set to amr, only 8000 is supported- When Codec is set to opus, it supports 8000, 16000, 24000, 48000.
    switchTrack String
    Convert track, the value is true, false. This parameter is invalid when Video.Codec is H.265.

    CiMediaTranscodeTemplateAudioMix, CiMediaTranscodeTemplateAudioMixArgs

    AudioSource string
    The media address of the audio track that needs to be mixed.
    EffectConfig CiMediaTranscodeTemplateAudioMixEffectConfig
    Mix Fade Configuration.
    MixMode string
    Mixing mode Repeat: background sound loop, Once: The background sound is played once.
    Replace string
    Whether to replace the original audio of the Input media file with the mixed audio track media.
    AudioSource string
    The media address of the audio track that needs to be mixed.
    EffectConfig CiMediaTranscodeTemplateAudioMixEffectConfig
    Mix Fade Configuration.
    MixMode string
    Mixing mode Repeat: background sound loop, Once: The background sound is played once.
    Replace string
    Whether to replace the original audio of the Input media file with the mixed audio track media.
    audioSource String
    The media address of the audio track that needs to be mixed.
    effectConfig CiMediaTranscodeTemplateAudioMixEffectConfig
    Mix Fade Configuration.
    mixMode String
    Mixing mode Repeat: background sound loop, Once: The background sound is played once.
    replace String
    Whether to replace the original audio of the Input media file with the mixed audio track media.
    audioSource string
    The media address of the audio track that needs to be mixed.
    effectConfig CiMediaTranscodeTemplateAudioMixEffectConfig
    Mix Fade Configuration.
    mixMode string
    Mixing mode Repeat: background sound loop, Once: The background sound is played once.
    replace string
    Whether to replace the original audio of the Input media file with the mixed audio track media.
    audio_source str
    The media address of the audio track that needs to be mixed.
    effect_config CiMediaTranscodeTemplateAudioMixEffectConfig
    Mix Fade Configuration.
    mix_mode str
    Mixing mode Repeat: background sound loop, Once: The background sound is played once.
    replace str
    Whether to replace the original audio of the Input media file with the mixed audio track media.
    audioSource String
    The media address of the audio track that needs to be mixed.
    effectConfig Property Map
    Mix Fade Configuration.
    mixMode String
    Mixing mode Repeat: background sound loop, Once: The background sound is played once.
    replace String
    Whether to replace the original audio of the Input media file with the mixed audio track media.

    CiMediaTranscodeTemplateAudioMixEffectConfig, CiMediaTranscodeTemplateAudioMixEffectConfigArgs

    BgmFadeTime string
    bgm transition fade-in duration, support floating point numbers.
    EnableBgmFade string
    Enable bgm conversion fade in.
    EnableEndFadeout string
    enable fade out.
    EnableStartFadein string
    enable fade in.
    EndFadeoutTime string
    fade out time, greater than 0, support floating point numbers.
    StartFadeinTime string
    Fade in duration, greater than 0, support floating point numbers.
    BgmFadeTime string
    bgm transition fade-in duration, support floating point numbers.
    EnableBgmFade string
    Enable bgm conversion fade in.
    EnableEndFadeout string
    enable fade out.
    EnableStartFadein string
    enable fade in.
    EndFadeoutTime string
    fade out time, greater than 0, support floating point numbers.
    StartFadeinTime string
    Fade in duration, greater than 0, support floating point numbers.
    bgmFadeTime String
    bgm transition fade-in duration, support floating point numbers.
    enableBgmFade String
    Enable bgm conversion fade in.
    enableEndFadeout String
    enable fade out.
    enableStartFadein String
    enable fade in.
    endFadeoutTime String
    fade out time, greater than 0, support floating point numbers.
    startFadeinTime String
    Fade in duration, greater than 0, support floating point numbers.
    bgmFadeTime string
    bgm transition fade-in duration, support floating point numbers.
    enableBgmFade string
    Enable bgm conversion fade in.
    enableEndFadeout string
    enable fade out.
    enableStartFadein string
    enable fade in.
    endFadeoutTime string
    fade out time, greater than 0, support floating point numbers.
    startFadeinTime string
    Fade in duration, greater than 0, support floating point numbers.
    bgm_fade_time str
    bgm transition fade-in duration, support floating point numbers.
    enable_bgm_fade str
    Enable bgm conversion fade in.
    enable_end_fadeout str
    enable fade out.
    enable_start_fadein str
    enable fade in.
    end_fadeout_time str
    fade out time, greater than 0, support floating point numbers.
    start_fadein_time str
    Fade in duration, greater than 0, support floating point numbers.
    bgmFadeTime String
    bgm transition fade-in duration, support floating point numbers.
    enableBgmFade String
    Enable bgm conversion fade in.
    enableEndFadeout String
    enable fade out.
    enableStartFadein String
    enable fade in.
    endFadeoutTime String
    fade out time, greater than 0, support floating point numbers.
    startFadeinTime String
    Fade in duration, greater than 0, support floating point numbers.

    CiMediaTranscodeTemplateContainer, CiMediaTranscodeTemplateContainerArgs

    Format string
    Package format.
    ClipConfig CiMediaTranscodeTemplateContainerClipConfig
    Fragment configuration, valid when format is hls and dash.
    Format string
    Package format.
    ClipConfig CiMediaTranscodeTemplateContainerClipConfig
    Fragment configuration, valid when format is hls and dash.
    format String
    Package format.
    clipConfig CiMediaTranscodeTemplateContainerClipConfig
    Fragment configuration, valid when format is hls and dash.
    format string
    Package format.
    clipConfig CiMediaTranscodeTemplateContainerClipConfig
    Fragment configuration, valid when format is hls and dash.
    format str
    Package format.
    clip_config CiMediaTranscodeTemplateContainerClipConfig
    Fragment configuration, valid when format is hls and dash.
    format String
    Package format.
    clipConfig Property Map
    Fragment configuration, valid when format is hls and dash.

    CiMediaTranscodeTemplateContainerClipConfig, CiMediaTranscodeTemplateContainerClipConfigArgs

    Duration string
    Fragmentation duration, default 5s.
    Duration string
    Fragmentation duration, default 5s.
    duration String
    Fragmentation duration, default 5s.
    duration string
    Fragmentation duration, default 5s.
    duration str
    Fragmentation duration, default 5s.
    duration String
    Fragmentation duration, default 5s.

    CiMediaTranscodeTemplateTimeInterval, CiMediaTranscodeTemplateTimeIntervalArgs

    Duration string
    duration, [0 video duration], in seconds, Support float format, the execution accuracy is accurate to milliseconds.
    Start string
    Starting time, [0 video duration], in seconds, Support float format, the execution accuracy is accurate to milliseconds.
    Duration string
    duration, [0 video duration], in seconds, Support float format, the execution accuracy is accurate to milliseconds.
    Start string
    Starting time, [0 video duration], in seconds, Support float format, the execution accuracy is accurate to milliseconds.
    duration String
    duration, [0 video duration], in seconds, Support float format, the execution accuracy is accurate to milliseconds.
    start String
    Starting time, [0 video duration], in seconds, Support float format, the execution accuracy is accurate to milliseconds.
    duration string
    duration, [0 video duration], in seconds, Support float format, the execution accuracy is accurate to milliseconds.
    start string
    Starting time, [0 video duration], in seconds, Support float format, the execution accuracy is accurate to milliseconds.
    duration str
    duration, [0 video duration], in seconds, Support float format, the execution accuracy is accurate to milliseconds.
    start str
    Starting time, [0 video duration], in seconds, Support float format, the execution accuracy is accurate to milliseconds.
    duration String
    duration, [0 video duration], in seconds, Support float format, the execution accuracy is accurate to milliseconds.
    start String
    Starting time, [0 video duration], in seconds, Support float format, the execution accuracy is accurate to milliseconds.

    CiMediaTranscodeTemplateTransConfig, CiMediaTranscodeTemplateTransConfigArgs

    AdjDarMethod string
    Resolution adjustment method, value scale, crop, pad, none, When the aspect ratio of the output video is different from the original video, adjust the resolution accordingly according to this parameter.
    AudioBitrateAdjMethod string
    Audio bit rate adjustment mode, value 0, 1; when the output audio bit rate is greater than the original audio bit rate, 0 means use the original audio bit rate; 1 means return transcoding failed, Take effect when IsCheckAudioBitrate is true.
    DeleteMetadata string
    Whether to delete the MetaData information in the file, true, false, When false, keep source file information.
    HlsEncrypt CiMediaTranscodeTemplateTransConfigHlsEncrypt
    hls encryption configuration.
    IsCheckAudioBitrate string
    Whether to check the audio code rate, true, false, When false, transcode according to configuration parameters.
    IsCheckReso string
    Whether to check the resolution, when it is false, transcode according to the configuration parameters.
    IsCheckVideoBitrate string
    Whether to check the video code rate, when it is false, transcode according to the configuration parameters.
    IsHdr2Sdr string
    Whether to enable HDR to SDR true, false.
    ResoAdjMethod string
    Resolution adjustment mode, value 0, 1; 0 means use the original video resolution; 1 means return transcoding failed, Take effect when IsCheckReso is true.
    VideoBitrateAdjMethod string
    Video bit rate adjustment method, value 0, 1; when the output video bit rate is greater than the original video bit rate, 0 means use the original video bit rate; 1 means return transcoding failed, Take effect when IsCheckVideoBitrate is true.
    AdjDarMethod string
    Resolution adjustment method, value scale, crop, pad, none, When the aspect ratio of the output video is different from the original video, adjust the resolution accordingly according to this parameter.
    AudioBitrateAdjMethod string
    Audio bit rate adjustment mode, value 0, 1; when the output audio bit rate is greater than the original audio bit rate, 0 means use the original audio bit rate; 1 means return transcoding failed, Take effect when IsCheckAudioBitrate is true.
    DeleteMetadata string
    Whether to delete the MetaData information in the file, true, false, When false, keep source file information.
    HlsEncrypt CiMediaTranscodeTemplateTransConfigHlsEncrypt
    hls encryption configuration.
    IsCheckAudioBitrate string
    Whether to check the audio code rate, true, false, When false, transcode according to configuration parameters.
    IsCheckReso string
    Whether to check the resolution, when it is false, transcode according to the configuration parameters.
    IsCheckVideoBitrate string
    Whether to check the video code rate, when it is false, transcode according to the configuration parameters.
    IsHdr2Sdr string
    Whether to enable HDR to SDR true, false.
    ResoAdjMethod string
    Resolution adjustment mode, value 0, 1; 0 means use the original video resolution; 1 means return transcoding failed, Take effect when IsCheckReso is true.
    VideoBitrateAdjMethod string
    Video bit rate adjustment method, value 0, 1; when the output video bit rate is greater than the original video bit rate, 0 means use the original video bit rate; 1 means return transcoding failed, Take effect when IsCheckVideoBitrate is true.
    adjDarMethod String
    Resolution adjustment method, value scale, crop, pad, none, When the aspect ratio of the output video is different from the original video, adjust the resolution accordingly according to this parameter.
    audioBitrateAdjMethod String
    Audio bit rate adjustment mode, value 0, 1; when the output audio bit rate is greater than the original audio bit rate, 0 means use the original audio bit rate; 1 means return transcoding failed, Take effect when IsCheckAudioBitrate is true.
    deleteMetadata String
    Whether to delete the MetaData information in the file, true, false, When false, keep source file information.
    hlsEncrypt CiMediaTranscodeTemplateTransConfigHlsEncrypt
    hls encryption configuration.
    isCheckAudioBitrate String
    Whether to check the audio code rate, true, false, When false, transcode according to configuration parameters.
    isCheckReso String
    Whether to check the resolution, when it is false, transcode according to the configuration parameters.
    isCheckVideoBitrate String
    Whether to check the video code rate, when it is false, transcode according to the configuration parameters.
    isHdr2Sdr String
    Whether to enable HDR to SDR true, false.
    resoAdjMethod String
    Resolution adjustment mode, value 0, 1; 0 means use the original video resolution; 1 means return transcoding failed, Take effect when IsCheckReso is true.
    videoBitrateAdjMethod String
    Video bit rate adjustment method, value 0, 1; when the output video bit rate is greater than the original video bit rate, 0 means use the original video bit rate; 1 means return transcoding failed, Take effect when IsCheckVideoBitrate is true.
    adjDarMethod string
    Resolution adjustment method, value scale, crop, pad, none, When the aspect ratio of the output video is different from the original video, adjust the resolution accordingly according to this parameter.
    audioBitrateAdjMethod string
    Audio bit rate adjustment mode, value 0, 1; when the output audio bit rate is greater than the original audio bit rate, 0 means use the original audio bit rate; 1 means return transcoding failed, Take effect when IsCheckAudioBitrate is true.
    deleteMetadata string
    Whether to delete the MetaData information in the file, true, false, When false, keep source file information.
    hlsEncrypt CiMediaTranscodeTemplateTransConfigHlsEncrypt
    hls encryption configuration.
    isCheckAudioBitrate string
    Whether to check the audio code rate, true, false, When false, transcode according to configuration parameters.
    isCheckReso string
    Whether to check the resolution, when it is false, transcode according to the configuration parameters.
    isCheckVideoBitrate string
    Whether to check the video code rate, when it is false, transcode according to the configuration parameters.
    isHdr2Sdr string
    Whether to enable HDR to SDR true, false.
    resoAdjMethod string
    Resolution adjustment mode, value 0, 1; 0 means use the original video resolution; 1 means return transcoding failed, Take effect when IsCheckReso is true.
    videoBitrateAdjMethod string
    Video bit rate adjustment method, value 0, 1; when the output video bit rate is greater than the original video bit rate, 0 means use the original video bit rate; 1 means return transcoding failed, Take effect when IsCheckVideoBitrate is true.
    adj_dar_method str
    Resolution adjustment method, value scale, crop, pad, none, When the aspect ratio of the output video is different from the original video, adjust the resolution accordingly according to this parameter.
    audio_bitrate_adj_method str
    Audio bit rate adjustment mode, value 0, 1; when the output audio bit rate is greater than the original audio bit rate, 0 means use the original audio bit rate; 1 means return transcoding failed, Take effect when IsCheckAudioBitrate is true.
    delete_metadata str
    Whether to delete the MetaData information in the file, true, false, When false, keep source file information.
    hls_encrypt CiMediaTranscodeTemplateTransConfigHlsEncrypt
    hls encryption configuration.
    is_check_audio_bitrate str
    Whether to check the audio code rate, true, false, When false, transcode according to configuration parameters.
    is_check_reso str
    Whether to check the resolution, when it is false, transcode according to the configuration parameters.
    is_check_video_bitrate str
    Whether to check the video code rate, when it is false, transcode according to the configuration parameters.
    is_hdr2_sdr str
    Whether to enable HDR to SDR true, false.
    reso_adj_method str
    Resolution adjustment mode, value 0, 1; 0 means use the original video resolution; 1 means return transcoding failed, Take effect when IsCheckReso is true.
    video_bitrate_adj_method str
    Video bit rate adjustment method, value 0, 1; when the output video bit rate is greater than the original video bit rate, 0 means use the original video bit rate; 1 means return transcoding failed, Take effect when IsCheckVideoBitrate is true.
    adjDarMethod String
    Resolution adjustment method, value scale, crop, pad, none, When the aspect ratio of the output video is different from the original video, adjust the resolution accordingly according to this parameter.
    audioBitrateAdjMethod String
    Audio bit rate adjustment mode, value 0, 1; when the output audio bit rate is greater than the original audio bit rate, 0 means use the original audio bit rate; 1 means return transcoding failed, Take effect when IsCheckAudioBitrate is true.
    deleteMetadata String
    Whether to delete the MetaData information in the file, true, false, When false, keep source file information.
    hlsEncrypt Property Map
    hls encryption configuration.
    isCheckAudioBitrate String
    Whether to check the audio code rate, true, false, When false, transcode according to configuration parameters.
    isCheckReso String
    Whether to check the resolution, when it is false, transcode according to the configuration parameters.
    isCheckVideoBitrate String
    Whether to check the video code rate, when it is false, transcode according to the configuration parameters.
    isHdr2Sdr String
    Whether to enable HDR to SDR true, false.
    resoAdjMethod String
    Resolution adjustment mode, value 0, 1; 0 means use the original video resolution; 1 means return transcoding failed, Take effect when IsCheckReso is true.
    videoBitrateAdjMethod String
    Video bit rate adjustment method, value 0, 1; when the output video bit rate is greater than the original video bit rate, 0 means use the original video bit rate; 1 means return transcoding failed, Take effect when IsCheckVideoBitrate is true.

    CiMediaTranscodeTemplateTransConfigHlsEncrypt, CiMediaTranscodeTemplateTransConfigHlsEncryptArgs

    IsHlsEncrypt string
    Whether to enable HLS encryption, support encryption when Container.Format is hls.
    UriKey string
    HLS encrypted key, this parameter is only meaningful when IsHlsEncrypt is true.
    IsHlsEncrypt string
    Whether to enable HLS encryption, support encryption when Container.Format is hls.
    UriKey string
    HLS encrypted key, this parameter is only meaningful when IsHlsEncrypt is true.
    isHlsEncrypt String
    Whether to enable HLS encryption, support encryption when Container.Format is hls.
    uriKey String
    HLS encrypted key, this parameter is only meaningful when IsHlsEncrypt is true.
    isHlsEncrypt string
    Whether to enable HLS encryption, support encryption when Container.Format is hls.
    uriKey string
    HLS encrypted key, this parameter is only meaningful when IsHlsEncrypt is true.
    is_hls_encrypt str
    Whether to enable HLS encryption, support encryption when Container.Format is hls.
    uri_key str
    HLS encrypted key, this parameter is only meaningful when IsHlsEncrypt is true.
    isHlsEncrypt String
    Whether to enable HLS encryption, support encryption when Container.Format is hls.
    uriKey String
    HLS encrypted key, this parameter is only meaningful when IsHlsEncrypt is true.

    CiMediaTranscodeTemplateVideo, CiMediaTranscodeTemplateVideoArgs

    Bitrate string
    Bit rate of video output file, value range: [10, 50000], unit: Kbps, auto means adaptive bit rate.
    Bufsize string
    buffer size, Value range: [1000, 128000], Unit: Kb, This parameter is not supported when Codec is VP8/VP9.
    Codec string
    Codec format, default value: H.264, when format is WebM, it is VP8, value range: H.264, H.265, VP8, VP9, AV1.
    Crf string
    Bit rate-quality control factor, value range: (0, 51], If Crf is set, the setting of Bitrate will be invalid, When Bitrate is empty, the default is 25.
    Fps string
    Frame rate, value range: (0, 60], Unit: fps.
    Gop string
    The maximum number of frames between key frames, value range: [1, 100000].
    Height string
    High, value range: [128, 4096], Unit: px, If only Height is set, Width is calculated according to the original ratio of the video, must be even.
    LongShortMode string
    Adaptive length,true, false, This parameter is not supported when Codec is VP8/VP9/AV1.
    Maxrate string
    Peak video bit rate, Value range: [10, 50000], Unit: Kbps, This parameter is not supported when Codec is VP8/VP9.
    Pixfmt string
    video color format, H.264 support: yuv420p, yuv422p, yuv444p, yuvj420p, yuvj422p, yuvj444p, auto, H.265 support: yuv420p, yuv420p10le, auto, This parameter is not supported when Codec is VP8/VP9/AV1.
    Preset string
    Video Algorithm Presets- H.264 supports this parameter, the values are veryfast, fast, medium, slow, slower- VP8 supports this parameter, the value is good, realtime- AV1 supports this parameter, the value is 5 (recommended value), 4- H.265 and VP9 do not support this parameter.
    Profile string
    encoding level, Support baseline, main, high, auto- When Pixfmt is auto, this parameter can only be set to auto, when it is set to other options, the parameter value will be set to auto- baseline: suitable for mobile devices- main: suitable for standard resolution devices- high: suitable for high-resolution devices- Only H.264 supports this parameter.
    Remove string
    Whether to delete the video stream, true, false.
    Rotate string
    Rotation angle, Value range: [0, 360), Unit: degree.
    Width string
    width, value range: [128, 4096], Unit: px, If only Width is set, Height is calculated according to the original ratio of the video, must be even.
    Bitrate string
    Bit rate of video output file, value range: [10, 50000], unit: Kbps, auto means adaptive bit rate.
    Bufsize string
    buffer size, Value range: [1000, 128000], Unit: Kb, This parameter is not supported when Codec is VP8/VP9.
    Codec string
    Codec format, default value: H.264, when format is WebM, it is VP8, value range: H.264, H.265, VP8, VP9, AV1.
    Crf string
    Bit rate-quality control factor, value range: (0, 51], If Crf is set, the setting of Bitrate will be invalid, When Bitrate is empty, the default is 25.
    Fps string
    Frame rate, value range: (0, 60], Unit: fps.
    Gop string
    The maximum number of frames between key frames, value range: [1, 100000].
    Height string
    High, value range: [128, 4096], Unit: px, If only Height is set, Width is calculated according to the original ratio of the video, must be even.
    LongShortMode string
    Adaptive length,true, false, This parameter is not supported when Codec is VP8/VP9/AV1.
    Maxrate string
    Peak video bit rate, Value range: [10, 50000], Unit: Kbps, This parameter is not supported when Codec is VP8/VP9.
    Pixfmt string
    video color format, H.264 support: yuv420p, yuv422p, yuv444p, yuvj420p, yuvj422p, yuvj444p, auto, H.265 support: yuv420p, yuv420p10le, auto, This parameter is not supported when Codec is VP8/VP9/AV1.
    Preset string
    Video Algorithm Presets- H.264 supports this parameter, the values are veryfast, fast, medium, slow, slower- VP8 supports this parameter, the value is good, realtime- AV1 supports this parameter, the value is 5 (recommended value), 4- H.265 and VP9 do not support this parameter.
    Profile string
    encoding level, Support baseline, main, high, auto- When Pixfmt is auto, this parameter can only be set to auto, when it is set to other options, the parameter value will be set to auto- baseline: suitable for mobile devices- main: suitable for standard resolution devices- high: suitable for high-resolution devices- Only H.264 supports this parameter.
    Remove string
    Whether to delete the video stream, true, false.
    Rotate string
    Rotation angle, Value range: [0, 360), Unit: degree.
    Width string
    width, value range: [128, 4096], Unit: px, If only Width is set, Height is calculated according to the original ratio of the video, must be even.
    bitrate String
    Bit rate of video output file, value range: [10, 50000], unit: Kbps, auto means adaptive bit rate.
    bufsize String
    buffer size, Value range: [1000, 128000], Unit: Kb, This parameter is not supported when Codec is VP8/VP9.
    codec String
    Codec format, default value: H.264, when format is WebM, it is VP8, value range: H.264, H.265, VP8, VP9, AV1.
    crf String
    Bit rate-quality control factor, value range: (0, 51], If Crf is set, the setting of Bitrate will be invalid, When Bitrate is empty, the default is 25.
    fps String
    Frame rate, value range: (0, 60], Unit: fps.
    gop String
    The maximum number of frames between key frames, value range: [1, 100000].
    height String
    High, value range: [128, 4096], Unit: px, If only Height is set, Width is calculated according to the original ratio of the video, must be even.
    longShortMode String
    Adaptive length,true, false, This parameter is not supported when Codec is VP8/VP9/AV1.
    maxrate String
    Peak video bit rate, Value range: [10, 50000], Unit: Kbps, This parameter is not supported when Codec is VP8/VP9.
    pixfmt String
    video color format, H.264 support: yuv420p, yuv422p, yuv444p, yuvj420p, yuvj422p, yuvj444p, auto, H.265 support: yuv420p, yuv420p10le, auto, This parameter is not supported when Codec is VP8/VP9/AV1.
    preset String
    Video Algorithm Presets- H.264 supports this parameter, the values are veryfast, fast, medium, slow, slower- VP8 supports this parameter, the value is good, realtime- AV1 supports this parameter, the value is 5 (recommended value), 4- H.265 and VP9 do not support this parameter.
    profile String
    encoding level, Support baseline, main, high, auto- When Pixfmt is auto, this parameter can only be set to auto, when it is set to other options, the parameter value will be set to auto- baseline: suitable for mobile devices- main: suitable for standard resolution devices- high: suitable for high-resolution devices- Only H.264 supports this parameter.
    remove String
    Whether to delete the video stream, true, false.
    rotate String
    Rotation angle, Value range: [0, 360), Unit: degree.
    width String
    width, value range: [128, 4096], Unit: px, If only Width is set, Height is calculated according to the original ratio of the video, must be even.
    bitrate string
    Bit rate of video output file, value range: [10, 50000], unit: Kbps, auto means adaptive bit rate.
    bufsize string
    buffer size, Value range: [1000, 128000], Unit: Kb, This parameter is not supported when Codec is VP8/VP9.
    codec string
    Codec format, default value: H.264, when format is WebM, it is VP8, value range: H.264, H.265, VP8, VP9, AV1.
    crf string
    Bit rate-quality control factor, value range: (0, 51], If Crf is set, the setting of Bitrate will be invalid, When Bitrate is empty, the default is 25.
    fps string
    Frame rate, value range: (0, 60], Unit: fps.
    gop string
    The maximum number of frames between key frames, value range: [1, 100000].
    height string
    High, value range: [128, 4096], Unit: px, If only Height is set, Width is calculated according to the original ratio of the video, must be even.
    longShortMode string
    Adaptive length,true, false, This parameter is not supported when Codec is VP8/VP9/AV1.
    maxrate string
    Peak video bit rate, Value range: [10, 50000], Unit: Kbps, This parameter is not supported when Codec is VP8/VP9.
    pixfmt string
    video color format, H.264 support: yuv420p, yuv422p, yuv444p, yuvj420p, yuvj422p, yuvj444p, auto, H.265 support: yuv420p, yuv420p10le, auto, This parameter is not supported when Codec is VP8/VP9/AV1.
    preset string
    Video Algorithm Presets- H.264 supports this parameter, the values are veryfast, fast, medium, slow, slower- VP8 supports this parameter, the value is good, realtime- AV1 supports this parameter, the value is 5 (recommended value), 4- H.265 and VP9 do not support this parameter.
    profile string
    encoding level, Support baseline, main, high, auto- When Pixfmt is auto, this parameter can only be set to auto, when it is set to other options, the parameter value will be set to auto- baseline: suitable for mobile devices- main: suitable for standard resolution devices- high: suitable for high-resolution devices- Only H.264 supports this parameter.
    remove string
    Whether to delete the video stream, true, false.
    rotate string
    Rotation angle, Value range: [0, 360), Unit: degree.
    width string
    width, value range: [128, 4096], Unit: px, If only Width is set, Height is calculated according to the original ratio of the video, must be even.
    bitrate str
    Bit rate of video output file, value range: [10, 50000], unit: Kbps, auto means adaptive bit rate.
    bufsize str
    buffer size, Value range: [1000, 128000], Unit: Kb, This parameter is not supported when Codec is VP8/VP9.
    codec str
    Codec format, default value: H.264, when format is WebM, it is VP8, value range: H.264, H.265, VP8, VP9, AV1.
    crf str
    Bit rate-quality control factor, value range: (0, 51], If Crf is set, the setting of Bitrate will be invalid, When Bitrate is empty, the default is 25.
    fps str
    Frame rate, value range: (0, 60], Unit: fps.
    gop str
    The maximum number of frames between key frames, value range: [1, 100000].
    height str
    High, value range: [128, 4096], Unit: px, If only Height is set, Width is calculated according to the original ratio of the video, must be even.
    long_short_mode str
    Adaptive length,true, false, This parameter is not supported when Codec is VP8/VP9/AV1.
    maxrate str
    Peak video bit rate, Value range: [10, 50000], Unit: Kbps, This parameter is not supported when Codec is VP8/VP9.
    pixfmt str
    video color format, H.264 support: yuv420p, yuv422p, yuv444p, yuvj420p, yuvj422p, yuvj444p, auto, H.265 support: yuv420p, yuv420p10le, auto, This parameter is not supported when Codec is VP8/VP9/AV1.
    preset str
    Video Algorithm Presets- H.264 supports this parameter, the values are veryfast, fast, medium, slow, slower- VP8 supports this parameter, the value is good, realtime- AV1 supports this parameter, the value is 5 (recommended value), 4- H.265 and VP9 do not support this parameter.
    profile str
    encoding level, Support baseline, main, high, auto- When Pixfmt is auto, this parameter can only be set to auto, when it is set to other options, the parameter value will be set to auto- baseline: suitable for mobile devices- main: suitable for standard resolution devices- high: suitable for high-resolution devices- Only H.264 supports this parameter.
    remove str
    Whether to delete the video stream, true, false.
    rotate str
    Rotation angle, Value range: [0, 360), Unit: degree.
    width str
    width, value range: [128, 4096], Unit: px, If only Width is set, Height is calculated according to the original ratio of the video, must be even.
    bitrate String
    Bit rate of video output file, value range: [10, 50000], unit: Kbps, auto means adaptive bit rate.
    bufsize String
    buffer size, Value range: [1000, 128000], Unit: Kb, This parameter is not supported when Codec is VP8/VP9.
    codec String
    Codec format, default value: H.264, when format is WebM, it is VP8, value range: H.264, H.265, VP8, VP9, AV1.
    crf String
    Bit rate-quality control factor, value range: (0, 51], If Crf is set, the setting of Bitrate will be invalid, When Bitrate is empty, the default is 25.
    fps String
    Frame rate, value range: (0, 60], Unit: fps.
    gop String
    The maximum number of frames between key frames, value range: [1, 100000].
    height String
    High, value range: [128, 4096], Unit: px, If only Height is set, Width is calculated according to the original ratio of the video, must be even.
    longShortMode String
    Adaptive length,true, false, This parameter is not supported when Codec is VP8/VP9/AV1.
    maxrate String
    Peak video bit rate, Value range: [10, 50000], Unit: Kbps, This parameter is not supported when Codec is VP8/VP9.
    pixfmt String
    video color format, H.264 support: yuv420p, yuv422p, yuv444p, yuvj420p, yuvj422p, yuvj444p, auto, H.265 support: yuv420p, yuv420p10le, auto, This parameter is not supported when Codec is VP8/VP9/AV1.
    preset String
    Video Algorithm Presets- H.264 supports this parameter, the values are veryfast, fast, medium, slow, slower- VP8 supports this parameter, the value is good, realtime- AV1 supports this parameter, the value is 5 (recommended value), 4- H.265 and VP9 do not support this parameter.
    profile String
    encoding level, Support baseline, main, high, auto- When Pixfmt is auto, this parameter can only be set to auto, when it is set to other options, the parameter value will be set to auto- baseline: suitable for mobile devices- main: suitable for standard resolution devices- high: suitable for high-resolution devices- Only H.264 supports this parameter.
    remove String
    Whether to delete the video stream, true, false.
    rotate String
    Rotation angle, Value range: [0, 360), Unit: degree.
    width String
    width, value range: [128, 4096], Unit: px, If only Width is set, Height is calculated according to the original ratio of the video, must be even.

    Import

    ci media_transcode_template can be imported using the bucket#templateId, e.g.

    $ pulumi import tencentcloud:index/ciMediaTranscodeTemplate:CiMediaTranscodeTemplate media_transcode_template media_transcode_template_id
    

    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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack