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

tencentcloud.VodTranscodeTemplate

Explore with Pulumi AI

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

    Provides a resource to create a vod transcode template

    Create VodTranscodeTemplate Resource

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

    Constructor syntax

    new VodTranscodeTemplate(name: string, args: VodTranscodeTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def VodTranscodeTemplate(resource_name: str,
                             args: VodTranscodeTemplateArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def VodTranscodeTemplate(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             container: Optional[str] = None,
                             audio_template: Optional[VodTranscodeTemplateAudioTemplateArgs] = None,
                             comment: Optional[str] = None,
                             name: Optional[str] = None,
                             remove_audio: Optional[float] = None,
                             remove_video: Optional[float] = None,
                             segment_type: Optional[str] = None,
                             sub_app_id: Optional[float] = None,
                             tehd_config: Optional[VodTranscodeTemplateTehdConfigArgs] = None,
                             video_template: Optional[VodTranscodeTemplateVideoTemplateArgs] = None,
                             vod_transcode_template_id: Optional[str] = None)
    func NewVodTranscodeTemplate(ctx *Context, name string, args VodTranscodeTemplateArgs, opts ...ResourceOption) (*VodTranscodeTemplate, error)
    public VodTranscodeTemplate(string name, VodTranscodeTemplateArgs args, CustomResourceOptions? opts = null)
    public VodTranscodeTemplate(String name, VodTranscodeTemplateArgs args)
    public VodTranscodeTemplate(String name, VodTranscodeTemplateArgs args, CustomResourceOptions options)
    
    type: tencentcloud:VodTranscodeTemplate
    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 VodTranscodeTemplateArgs
    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 VodTranscodeTemplateArgs
    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 VodTranscodeTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VodTranscodeTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VodTranscodeTemplateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    Container string
    The container format. Valid values: mp4, flv, hls, mp3, flac, ogg, m4a, wav ( mp3, flac, ogg, m4a, and wav are audio file formats).
    AudioTemplate VodTranscodeTemplateAudioTemplate
    Audio stream configuration parameter. This field is required when RemoveAudio is 0.
    Comment string
    Template description. Length limit: 256 characters.
    Name string
    Transcoding template name. Length limit: 64 characters.
    RemoveAudio double
    Whether to remove audio data. Valid values:0: retain 1: remove Default value: 0.
    RemoveVideo double
    Whether to remove video data. Valid values:

    • 0: retain
    • 1: remove Default value: 0.
    SegmentType string
    The segment type. This parameter is valid only if Container is hls. Valid values: ts: TS segment; fmp4: fMP4 segment Default: ts.
    SubAppId double
    The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
    TehdConfig VodTranscodeTemplateTehdConfig
    TESHD transcoding parameter.
    VideoTemplate VodTranscodeTemplateVideoTemplate
    Video stream configuration parameter. This field is required when RemoveVideo is 0.
    VodTranscodeTemplateId string
    ID of the resource.
    Container string
    The container format. Valid values: mp4, flv, hls, mp3, flac, ogg, m4a, wav ( mp3, flac, ogg, m4a, and wav are audio file formats).
    AudioTemplate VodTranscodeTemplateAudioTemplateArgs
    Audio stream configuration parameter. This field is required when RemoveAudio is 0.
    Comment string
    Template description. Length limit: 256 characters.
    Name string
    Transcoding template name. Length limit: 64 characters.
    RemoveAudio float64
    Whether to remove audio data. Valid values:0: retain 1: remove Default value: 0.
    RemoveVideo float64
    Whether to remove video data. Valid values:

    • 0: retain
    • 1: remove Default value: 0.
    SegmentType string
    The segment type. This parameter is valid only if Container is hls. Valid values: ts: TS segment; fmp4: fMP4 segment Default: ts.
    SubAppId float64
    The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
    TehdConfig VodTranscodeTemplateTehdConfigArgs
    TESHD transcoding parameter.
    VideoTemplate VodTranscodeTemplateVideoTemplateArgs
    Video stream configuration parameter. This field is required when RemoveVideo is 0.
    VodTranscodeTemplateId string
    ID of the resource.
    container String
    The container format. Valid values: mp4, flv, hls, mp3, flac, ogg, m4a, wav ( mp3, flac, ogg, m4a, and wav are audio file formats).
    audioTemplate VodTranscodeTemplateAudioTemplate
    Audio stream configuration parameter. This field is required when RemoveAudio is 0.
    comment String
    Template description. Length limit: 256 characters.
    name String
    Transcoding template name. Length limit: 64 characters.
    removeAudio Double
    Whether to remove audio data. Valid values:0: retain 1: remove Default value: 0.
    removeVideo Double
    Whether to remove video data. Valid values:

    • 0: retain
    • 1: remove Default value: 0.
    segmentType String
    The segment type. This parameter is valid only if Container is hls. Valid values: ts: TS segment; fmp4: fMP4 segment Default: ts.
    subAppId Double
    The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
    tehdConfig VodTranscodeTemplateTehdConfig
    TESHD transcoding parameter.
    videoTemplate VodTranscodeTemplateVideoTemplate
    Video stream configuration parameter. This field is required when RemoveVideo is 0.
    vodTranscodeTemplateId String
    ID of the resource.
    container string
    The container format. Valid values: mp4, flv, hls, mp3, flac, ogg, m4a, wav ( mp3, flac, ogg, m4a, and wav are audio file formats).
    audioTemplate VodTranscodeTemplateAudioTemplate
    Audio stream configuration parameter. This field is required when RemoveAudio is 0.
    comment string
    Template description. Length limit: 256 characters.
    name string
    Transcoding template name. Length limit: 64 characters.
    removeAudio number
    Whether to remove audio data. Valid values:0: retain 1: remove Default value: 0.
    removeVideo number
    Whether to remove video data. Valid values:

    • 0: retain
    • 1: remove Default value: 0.
    segmentType string
    The segment type. This parameter is valid only if Container is hls. Valid values: ts: TS segment; fmp4: fMP4 segment Default: ts.
    subAppId number
    The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
    tehdConfig VodTranscodeTemplateTehdConfig
    TESHD transcoding parameter.
    videoTemplate VodTranscodeTemplateVideoTemplate
    Video stream configuration parameter. This field is required when RemoveVideo is 0.
    vodTranscodeTemplateId string
    ID of the resource.
    container str
    The container format. Valid values: mp4, flv, hls, mp3, flac, ogg, m4a, wav ( mp3, flac, ogg, m4a, and wav are audio file formats).
    audio_template VodTranscodeTemplateAudioTemplateArgs
    Audio stream configuration parameter. This field is required when RemoveAudio is 0.
    comment str
    Template description. Length limit: 256 characters.
    name str
    Transcoding template name. Length limit: 64 characters.
    remove_audio float
    Whether to remove audio data. Valid values:0: retain 1: remove Default value: 0.
    remove_video float
    Whether to remove video data. Valid values:

    • 0: retain
    • 1: remove Default value: 0.
    segment_type str
    The segment type. This parameter is valid only if Container is hls. Valid values: ts: TS segment; fmp4: fMP4 segment Default: ts.
    sub_app_id float
    The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
    tehd_config VodTranscodeTemplateTehdConfigArgs
    TESHD transcoding parameter.
    video_template VodTranscodeTemplateVideoTemplateArgs
    Video stream configuration parameter. This field is required when RemoveVideo is 0.
    vod_transcode_template_id str
    ID of the resource.
    container String
    The container format. Valid values: mp4, flv, hls, mp3, flac, ogg, m4a, wav ( mp3, flac, ogg, m4a, and wav are audio file formats).
    audioTemplate Property Map
    Audio stream configuration parameter. This field is required when RemoveAudio is 0.
    comment String
    Template description. Length limit: 256 characters.
    name String
    Transcoding template name. Length limit: 64 characters.
    removeAudio Number
    Whether to remove audio data. Valid values:0: retain 1: remove Default value: 0.
    removeVideo Number
    Whether to remove video data. Valid values:

    • 0: retain
    • 1: remove Default value: 0.
    segmentType String
    The segment type. This parameter is valid only if Container is hls. Valid values: ts: TS segment; fmp4: fMP4 segment Default: ts.
    subAppId Number
    The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
    tehdConfig Property Map
    TESHD transcoding parameter.
    videoTemplate Property Map
    Video stream configuration parameter. This field is required when RemoveVideo is 0.
    vodTranscodeTemplateId String
    ID of the resource.

    Outputs

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

    Get an existing VodTranscodeTemplate 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?: VodTranscodeTemplateState, opts?: CustomResourceOptions): VodTranscodeTemplate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            audio_template: Optional[VodTranscodeTemplateAudioTemplateArgs] = None,
            comment: Optional[str] = None,
            container: Optional[str] = None,
            name: Optional[str] = None,
            remove_audio: Optional[float] = None,
            remove_video: Optional[float] = None,
            segment_type: Optional[str] = None,
            sub_app_id: Optional[float] = None,
            tehd_config: Optional[VodTranscodeTemplateTehdConfigArgs] = None,
            video_template: Optional[VodTranscodeTemplateVideoTemplateArgs] = None,
            vod_transcode_template_id: Optional[str] = None) -> VodTranscodeTemplate
    func GetVodTranscodeTemplate(ctx *Context, name string, id IDInput, state *VodTranscodeTemplateState, opts ...ResourceOption) (*VodTranscodeTemplate, error)
    public static VodTranscodeTemplate Get(string name, Input<string> id, VodTranscodeTemplateState? state, CustomResourceOptions? opts = null)
    public static VodTranscodeTemplate get(String name, Output<String> id, VodTranscodeTemplateState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:VodTranscodeTemplate    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:
    AudioTemplate VodTranscodeTemplateAudioTemplate
    Audio stream configuration parameter. This field is required when RemoveAudio is 0.
    Comment string
    Template description. Length limit: 256 characters.
    Container string
    The container format. Valid values: mp4, flv, hls, mp3, flac, ogg, m4a, wav ( mp3, flac, ogg, m4a, and wav are audio file formats).
    Name string
    Transcoding template name. Length limit: 64 characters.
    RemoveAudio double
    Whether to remove audio data. Valid values:0: retain 1: remove Default value: 0.
    RemoveVideo double
    Whether to remove video data. Valid values:

    • 0: retain
    • 1: remove Default value: 0.
    SegmentType string
    The segment type. This parameter is valid only if Container is hls. Valid values: ts: TS segment; fmp4: fMP4 segment Default: ts.
    SubAppId double
    The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
    TehdConfig VodTranscodeTemplateTehdConfig
    TESHD transcoding parameter.
    VideoTemplate VodTranscodeTemplateVideoTemplate
    Video stream configuration parameter. This field is required when RemoveVideo is 0.
    VodTranscodeTemplateId string
    ID of the resource.
    AudioTemplate VodTranscodeTemplateAudioTemplateArgs
    Audio stream configuration parameter. This field is required when RemoveAudio is 0.
    Comment string
    Template description. Length limit: 256 characters.
    Container string
    The container format. Valid values: mp4, flv, hls, mp3, flac, ogg, m4a, wav ( mp3, flac, ogg, m4a, and wav are audio file formats).
    Name string
    Transcoding template name. Length limit: 64 characters.
    RemoveAudio float64
    Whether to remove audio data. Valid values:0: retain 1: remove Default value: 0.
    RemoveVideo float64
    Whether to remove video data. Valid values:

    • 0: retain
    • 1: remove Default value: 0.
    SegmentType string
    The segment type. This parameter is valid only if Container is hls. Valid values: ts: TS segment; fmp4: fMP4 segment Default: ts.
    SubAppId float64
    The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
    TehdConfig VodTranscodeTemplateTehdConfigArgs
    TESHD transcoding parameter.
    VideoTemplate VodTranscodeTemplateVideoTemplateArgs
    Video stream configuration parameter. This field is required when RemoveVideo is 0.
    VodTranscodeTemplateId string
    ID of the resource.
    audioTemplate VodTranscodeTemplateAudioTemplate
    Audio stream configuration parameter. This field is required when RemoveAudio is 0.
    comment String
    Template description. Length limit: 256 characters.
    container String
    The container format. Valid values: mp4, flv, hls, mp3, flac, ogg, m4a, wav ( mp3, flac, ogg, m4a, and wav are audio file formats).
    name String
    Transcoding template name. Length limit: 64 characters.
    removeAudio Double
    Whether to remove audio data. Valid values:0: retain 1: remove Default value: 0.
    removeVideo Double
    Whether to remove video data. Valid values:

    • 0: retain
    • 1: remove Default value: 0.
    segmentType String
    The segment type. This parameter is valid only if Container is hls. Valid values: ts: TS segment; fmp4: fMP4 segment Default: ts.
    subAppId Double
    The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
    tehdConfig VodTranscodeTemplateTehdConfig
    TESHD transcoding parameter.
    videoTemplate VodTranscodeTemplateVideoTemplate
    Video stream configuration parameter. This field is required when RemoveVideo is 0.
    vodTranscodeTemplateId String
    ID of the resource.
    audioTemplate VodTranscodeTemplateAudioTemplate
    Audio stream configuration parameter. This field is required when RemoveAudio is 0.
    comment string
    Template description. Length limit: 256 characters.
    container string
    The container format. Valid values: mp4, flv, hls, mp3, flac, ogg, m4a, wav ( mp3, flac, ogg, m4a, and wav are audio file formats).
    name string
    Transcoding template name. Length limit: 64 characters.
    removeAudio number
    Whether to remove audio data. Valid values:0: retain 1: remove Default value: 0.
    removeVideo number
    Whether to remove video data. Valid values:

    • 0: retain
    • 1: remove Default value: 0.
    segmentType string
    The segment type. This parameter is valid only if Container is hls. Valid values: ts: TS segment; fmp4: fMP4 segment Default: ts.
    subAppId number
    The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
    tehdConfig VodTranscodeTemplateTehdConfig
    TESHD transcoding parameter.
    videoTemplate VodTranscodeTemplateVideoTemplate
    Video stream configuration parameter. This field is required when RemoveVideo is 0.
    vodTranscodeTemplateId string
    ID of the resource.
    audio_template VodTranscodeTemplateAudioTemplateArgs
    Audio stream configuration parameter. This field is required when RemoveAudio is 0.
    comment str
    Template description. Length limit: 256 characters.
    container str
    The container format. Valid values: mp4, flv, hls, mp3, flac, ogg, m4a, wav ( mp3, flac, ogg, m4a, and wav are audio file formats).
    name str
    Transcoding template name. Length limit: 64 characters.
    remove_audio float
    Whether to remove audio data. Valid values:0: retain 1: remove Default value: 0.
    remove_video float
    Whether to remove video data. Valid values:

    • 0: retain
    • 1: remove Default value: 0.
    segment_type str
    The segment type. This parameter is valid only if Container is hls. Valid values: ts: TS segment; fmp4: fMP4 segment Default: ts.
    sub_app_id float
    The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
    tehd_config VodTranscodeTemplateTehdConfigArgs
    TESHD transcoding parameter.
    video_template VodTranscodeTemplateVideoTemplateArgs
    Video stream configuration parameter. This field is required when RemoveVideo is 0.
    vod_transcode_template_id str
    ID of the resource.
    audioTemplate Property Map
    Audio stream configuration parameter. This field is required when RemoveAudio is 0.
    comment String
    Template description. Length limit: 256 characters.
    container String
    The container format. Valid values: mp4, flv, hls, mp3, flac, ogg, m4a, wav ( mp3, flac, ogg, m4a, and wav are audio file formats).
    name String
    Transcoding template name. Length limit: 64 characters.
    removeAudio Number
    Whether to remove audio data. Valid values:0: retain 1: remove Default value: 0.
    removeVideo Number
    Whether to remove video data. Valid values:

    • 0: retain
    • 1: remove Default value: 0.
    segmentType String
    The segment type. This parameter is valid only if Container is hls. Valid values: ts: TS segment; fmp4: fMP4 segment Default: ts.
    subAppId Number
    The VOD application ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
    tehdConfig Property Map
    TESHD transcoding parameter.
    videoTemplate Property Map
    Video stream configuration parameter. This field is required when RemoveVideo is 0.
    vodTranscodeTemplateId String
    ID of the resource.

    Supporting Types

    VodTranscodeTemplateAudioTemplate, VodTranscodeTemplateAudioTemplateArgs

    Bitrate double
    Audio stream bitrate in Kbps. Value range: 0 and [26, 256].If the value is 0, the bitrate of the audio stream will be the same as that of the original audio.
    Codec string
    The audio codec.If Container is mp3, the valid value is:libmp3lameIf Container is ogg or flac, the valid value is:flacIf Container is m4a, the valid values are:libfdk_aac``libmp3lame``ac3If Container is mp4 or flv, the valid values are:libfdk_aac (Recommended for MP4)libmp3lame (Recommended for FLV)mp2If Container is hls, the valid value is:libfdk_aacIf Format is HLS or MPEG-DASH, the valid value is:libfdk_aacIf Container is wav, the valid value is:pcm16.
    SampleRate double
    The audio sample rate. Valid values:16000 (valid only if Codec is pcm16)32000``44100``48000Unit: Hz.
    AudioChannel double
    Audio channel system. Valid values:1: mono-channel2: dual-channel6: stereoYou cannot set the sound channel as stereo for media files in container formats for audios (FLAC, OGG, MP3, M4A).Default value: 2.
    Bitrate float64
    Audio stream bitrate in Kbps. Value range: 0 and [26, 256].If the value is 0, the bitrate of the audio stream will be the same as that of the original audio.
    Codec string
    The audio codec.If Container is mp3, the valid value is:libmp3lameIf Container is ogg or flac, the valid value is:flacIf Container is m4a, the valid values are:libfdk_aac``libmp3lame``ac3If Container is mp4 or flv, the valid values are:libfdk_aac (Recommended for MP4)libmp3lame (Recommended for FLV)mp2If Container is hls, the valid value is:libfdk_aacIf Format is HLS or MPEG-DASH, the valid value is:libfdk_aacIf Container is wav, the valid value is:pcm16.
    SampleRate float64
    The audio sample rate. Valid values:16000 (valid only if Codec is pcm16)32000``44100``48000Unit: Hz.
    AudioChannel float64
    Audio channel system. Valid values:1: mono-channel2: dual-channel6: stereoYou cannot set the sound channel as stereo for media files in container formats for audios (FLAC, OGG, MP3, M4A).Default value: 2.
    bitrate Double
    Audio stream bitrate in Kbps. Value range: 0 and [26, 256].If the value is 0, the bitrate of the audio stream will be the same as that of the original audio.
    codec String
    The audio codec.If Container is mp3, the valid value is:libmp3lameIf Container is ogg or flac, the valid value is:flacIf Container is m4a, the valid values are:libfdk_aac``libmp3lame``ac3If Container is mp4 or flv, the valid values are:libfdk_aac (Recommended for MP4)libmp3lame (Recommended for FLV)mp2If Container is hls, the valid value is:libfdk_aacIf Format is HLS or MPEG-DASH, the valid value is:libfdk_aacIf Container is wav, the valid value is:pcm16.
    sampleRate Double
    The audio sample rate. Valid values:16000 (valid only if Codec is pcm16)32000``44100``48000Unit: Hz.
    audioChannel Double
    Audio channel system. Valid values:1: mono-channel2: dual-channel6: stereoYou cannot set the sound channel as stereo for media files in container formats for audios (FLAC, OGG, MP3, M4A).Default value: 2.
    bitrate number
    Audio stream bitrate in Kbps. Value range: 0 and [26, 256].If the value is 0, the bitrate of the audio stream will be the same as that of the original audio.
    codec string
    The audio codec.If Container is mp3, the valid value is:libmp3lameIf Container is ogg or flac, the valid value is:flacIf Container is m4a, the valid values are:libfdk_aac``libmp3lame``ac3If Container is mp4 or flv, the valid values are:libfdk_aac (Recommended for MP4)libmp3lame (Recommended for FLV)mp2If Container is hls, the valid value is:libfdk_aacIf Format is HLS or MPEG-DASH, the valid value is:libfdk_aacIf Container is wav, the valid value is:pcm16.
    sampleRate number
    The audio sample rate. Valid values:16000 (valid only if Codec is pcm16)32000``44100``48000Unit: Hz.
    audioChannel number
    Audio channel system. Valid values:1: mono-channel2: dual-channel6: stereoYou cannot set the sound channel as stereo for media files in container formats for audios (FLAC, OGG, MP3, M4A).Default value: 2.
    bitrate float
    Audio stream bitrate in Kbps. Value range: 0 and [26, 256].If the value is 0, the bitrate of the audio stream will be the same as that of the original audio.
    codec str
    The audio codec.If Container is mp3, the valid value is:libmp3lameIf Container is ogg or flac, the valid value is:flacIf Container is m4a, the valid values are:libfdk_aac``libmp3lame``ac3If Container is mp4 or flv, the valid values are:libfdk_aac (Recommended for MP4)libmp3lame (Recommended for FLV)mp2If Container is hls, the valid value is:libfdk_aacIf Format is HLS or MPEG-DASH, the valid value is:libfdk_aacIf Container is wav, the valid value is:pcm16.
    sample_rate float
    The audio sample rate. Valid values:16000 (valid only if Codec is pcm16)32000``44100``48000Unit: Hz.
    audio_channel float
    Audio channel system. Valid values:1: mono-channel2: dual-channel6: stereoYou cannot set the sound channel as stereo for media files in container formats for audios (FLAC, OGG, MP3, M4A).Default value: 2.
    bitrate Number
    Audio stream bitrate in Kbps. Value range: 0 and [26, 256].If the value is 0, the bitrate of the audio stream will be the same as that of the original audio.
    codec String
    The audio codec.If Container is mp3, the valid value is:libmp3lameIf Container is ogg or flac, the valid value is:flacIf Container is m4a, the valid values are:libfdk_aac``libmp3lame``ac3If Container is mp4 or flv, the valid values are:libfdk_aac (Recommended for MP4)libmp3lame (Recommended for FLV)mp2If Container is hls, the valid value is:libfdk_aacIf Format is HLS or MPEG-DASH, the valid value is:libfdk_aacIf Container is wav, the valid value is:pcm16.
    sampleRate Number
    The audio sample rate. Valid values:16000 (valid only if Codec is pcm16)32000``44100``48000Unit: Hz.
    audioChannel Number
    Audio channel system. Valid values:1: mono-channel2: dual-channel6: stereoYou cannot set the sound channel as stereo for media files in container formats for audios (FLAC, OGG, MP3, M4A).Default value: 2.

    VodTranscodeTemplateTehdConfig, VodTranscodeTemplateTehdConfigArgs

    Type string
    TESHD transcoding type. Valid values: TEHD-100, OFF (default).
    MaxVideoBitrate double
    Maximum bitrate, which is valid when Type is TESHD.If this parameter is left blank or 0 is entered, there will be no upper limit for bitrate.
    Type string
    TESHD transcoding type. Valid values: TEHD-100, OFF (default).
    MaxVideoBitrate float64
    Maximum bitrate, which is valid when Type is TESHD.If this parameter is left blank or 0 is entered, there will be no upper limit for bitrate.
    type String
    TESHD transcoding type. Valid values: TEHD-100, OFF (default).
    maxVideoBitrate Double
    Maximum bitrate, which is valid when Type is TESHD.If this parameter is left blank or 0 is entered, there will be no upper limit for bitrate.
    type string
    TESHD transcoding type. Valid values: TEHD-100, OFF (default).
    maxVideoBitrate number
    Maximum bitrate, which is valid when Type is TESHD.If this parameter is left blank or 0 is entered, there will be no upper limit for bitrate.
    type str
    TESHD transcoding type. Valid values: TEHD-100, OFF (default).
    max_video_bitrate float
    Maximum bitrate, which is valid when Type is TESHD.If this parameter is left blank or 0 is entered, there will be no upper limit for bitrate.
    type String
    TESHD transcoding type. Valid values: TEHD-100, OFF (default).
    maxVideoBitrate Number
    Maximum bitrate, which is valid when Type is TESHD.If this parameter is left blank or 0 is entered, there will be no upper limit for bitrate.

    VodTranscodeTemplateVideoTemplate, VodTranscodeTemplateVideoTemplateArgs

    Bitrate double
    Bitrate of video stream in Kbps. Value range: 0 and [128, 35,000].If the value is 0, the bitrate of the video will be the same as that of the source video.
    Codec string
    The video codec. Valid values:libx264: H.264; libx265: H.265; av1: AOMedia Video 1; H.266: H.266. The AOMedia Video 1 and H.266 codecs can only be used for MP4 files. Only CRF is supported for H.266 currently.
    Fps double
    Video frame rate in Hz. Value range: [0,100].If the value is 0, the frame rate will be the same as that of the source video.
    CodecTag string
    The codec tag. This parameter is valid only if the H.265 codec is used. Valid values:hvc1hev1Default value: hvc1.
    FillType string
    Fill type, the way of processing a screenshot when the configured aspect ratio is different from that of the source video. Valid values:stretch: stretches the video image frame by frame to fill the screen. The video image may become squashed or stretched after transcoding.black: fills the uncovered area with black color, without changing the image's aspect ratio.white: fills the uncovered area with white color, without changing the image's aspect ratio.gauss: applies Gaussian blur to the uncovered area, without changing the image's aspect ratio.Default value: black.
    Gop double
    I-frame interval in frames. Valid values: 0 and 1-100000.When this parameter is set to 0 or left empty, Gop will be automatically set.
    Height double
    The maximum video height (or short side) in pixels. Value range: 0 and [128, 8192].If both Width and Height are 0, the output resolution will be the same as that of the source video.If Width is 0 and Height is not, the video width will be proportionally scaled.If Width is not 0 and Height is, the video height will be proportionally scaled.If neither Width nor Height is 0, the specified width and height will be used.Default value: 0.
    PreserveHdrSwitch string
    Whether to output an HDR (high dynamic range) video if the source video is HDR. Valid values:ON: If the source video is HDR, output an HDR video; if not, output an SDR (standard dynamic range) video.OFF: Output an SDR video regardless of whether the source video is HDR.Default value: OFF.
    ResolutionAdaptive string
    Resolution adaption. Valid values:open: enabled. In this case, Width represents the long side of a video, while Height the short side;close: disabled. In this case, Width represents the width of a video, while Height the height.Default value: open.Note: this field may return null, indicating that no valid values can be obtained.
    Vcrf double
    The video constant rate factor (CRF). Value range: 1-51.If this parameter is specified, CRF encoding will be used and the bitrate parameter will be ignored.If Codec is H.266, this parameter is required (28 is recommended).We don't recommend using this parameter unless you have special requirements.
    Width double
    The maximum video width (or long side) in pixels. Value range: 0 and [128, 8192].If both Width and Height are 0, the output resolution will be the same as that of the source video.If Width is 0 and Height is not, the video width will be proportionally scaled.If Width is not 0 and Height is, the video height will be proportionally scaled.If neither Width nor Height is 0, the specified width and height will be used.Default value: 0.
    Bitrate float64
    Bitrate of video stream in Kbps. Value range: 0 and [128, 35,000].If the value is 0, the bitrate of the video will be the same as that of the source video.
    Codec string
    The video codec. Valid values:libx264: H.264; libx265: H.265; av1: AOMedia Video 1; H.266: H.266. The AOMedia Video 1 and H.266 codecs can only be used for MP4 files. Only CRF is supported for H.266 currently.
    Fps float64
    Video frame rate in Hz. Value range: [0,100].If the value is 0, the frame rate will be the same as that of the source video.
    CodecTag string
    The codec tag. This parameter is valid only if the H.265 codec is used. Valid values:hvc1hev1Default value: hvc1.
    FillType string
    Fill type, the way of processing a screenshot when the configured aspect ratio is different from that of the source video. Valid values:stretch: stretches the video image frame by frame to fill the screen. The video image may become squashed or stretched after transcoding.black: fills the uncovered area with black color, without changing the image's aspect ratio.white: fills the uncovered area with white color, without changing the image's aspect ratio.gauss: applies Gaussian blur to the uncovered area, without changing the image's aspect ratio.Default value: black.
    Gop float64
    I-frame interval in frames. Valid values: 0 and 1-100000.When this parameter is set to 0 or left empty, Gop will be automatically set.
    Height float64
    The maximum video height (or short side) in pixels. Value range: 0 and [128, 8192].If both Width and Height are 0, the output resolution will be the same as that of the source video.If Width is 0 and Height is not, the video width will be proportionally scaled.If Width is not 0 and Height is, the video height will be proportionally scaled.If neither Width nor Height is 0, the specified width and height will be used.Default value: 0.
    PreserveHdrSwitch string
    Whether to output an HDR (high dynamic range) video if the source video is HDR. Valid values:ON: If the source video is HDR, output an HDR video; if not, output an SDR (standard dynamic range) video.OFF: Output an SDR video regardless of whether the source video is HDR.Default value: OFF.
    ResolutionAdaptive string
    Resolution adaption. Valid values:open: enabled. In this case, Width represents the long side of a video, while Height the short side;close: disabled. In this case, Width represents the width of a video, while Height the height.Default value: open.Note: this field may return null, indicating that no valid values can be obtained.
    Vcrf float64
    The video constant rate factor (CRF). Value range: 1-51.If this parameter is specified, CRF encoding will be used and the bitrate parameter will be ignored.If Codec is H.266, this parameter is required (28 is recommended).We don't recommend using this parameter unless you have special requirements.
    Width float64
    The maximum video width (or long side) in pixels. Value range: 0 and [128, 8192].If both Width and Height are 0, the output resolution will be the same as that of the source video.If Width is 0 and Height is not, the video width will be proportionally scaled.If Width is not 0 and Height is, the video height will be proportionally scaled.If neither Width nor Height is 0, the specified width and height will be used.Default value: 0.
    bitrate Double
    Bitrate of video stream in Kbps. Value range: 0 and [128, 35,000].If the value is 0, the bitrate of the video will be the same as that of the source video.
    codec String
    The video codec. Valid values:libx264: H.264; libx265: H.265; av1: AOMedia Video 1; H.266: H.266. The AOMedia Video 1 and H.266 codecs can only be used for MP4 files. Only CRF is supported for H.266 currently.
    fps Double
    Video frame rate in Hz. Value range: [0,100].If the value is 0, the frame rate will be the same as that of the source video.
    codecTag String
    The codec tag. This parameter is valid only if the H.265 codec is used. Valid values:hvc1hev1Default value: hvc1.
    fillType String
    Fill type, the way of processing a screenshot when the configured aspect ratio is different from that of the source video. Valid values:stretch: stretches the video image frame by frame to fill the screen. The video image may become squashed or stretched after transcoding.black: fills the uncovered area with black color, without changing the image's aspect ratio.white: fills the uncovered area with white color, without changing the image's aspect ratio.gauss: applies Gaussian blur to the uncovered area, without changing the image's aspect ratio.Default value: black.
    gop Double
    I-frame interval in frames. Valid values: 0 and 1-100000.When this parameter is set to 0 or left empty, Gop will be automatically set.
    height Double
    The maximum video height (or short side) in pixels. Value range: 0 and [128, 8192].If both Width and Height are 0, the output resolution will be the same as that of the source video.If Width is 0 and Height is not, the video width will be proportionally scaled.If Width is not 0 and Height is, the video height will be proportionally scaled.If neither Width nor Height is 0, the specified width and height will be used.Default value: 0.
    preserveHdrSwitch String
    Whether to output an HDR (high dynamic range) video if the source video is HDR. Valid values:ON: If the source video is HDR, output an HDR video; if not, output an SDR (standard dynamic range) video.OFF: Output an SDR video regardless of whether the source video is HDR.Default value: OFF.
    resolutionAdaptive String
    Resolution adaption. Valid values:open: enabled. In this case, Width represents the long side of a video, while Height the short side;close: disabled. In this case, Width represents the width of a video, while Height the height.Default value: open.Note: this field may return null, indicating that no valid values can be obtained.
    vcrf Double
    The video constant rate factor (CRF). Value range: 1-51.If this parameter is specified, CRF encoding will be used and the bitrate parameter will be ignored.If Codec is H.266, this parameter is required (28 is recommended).We don't recommend using this parameter unless you have special requirements.
    width Double
    The maximum video width (or long side) in pixels. Value range: 0 and [128, 8192].If both Width and Height are 0, the output resolution will be the same as that of the source video.If Width is 0 and Height is not, the video width will be proportionally scaled.If Width is not 0 and Height is, the video height will be proportionally scaled.If neither Width nor Height is 0, the specified width and height will be used.Default value: 0.
    bitrate number
    Bitrate of video stream in Kbps. Value range: 0 and [128, 35,000].If the value is 0, the bitrate of the video will be the same as that of the source video.
    codec string
    The video codec. Valid values:libx264: H.264; libx265: H.265; av1: AOMedia Video 1; H.266: H.266. The AOMedia Video 1 and H.266 codecs can only be used for MP4 files. Only CRF is supported for H.266 currently.
    fps number
    Video frame rate in Hz. Value range: [0,100].If the value is 0, the frame rate will be the same as that of the source video.
    codecTag string
    The codec tag. This parameter is valid only if the H.265 codec is used. Valid values:hvc1hev1Default value: hvc1.
    fillType string
    Fill type, the way of processing a screenshot when the configured aspect ratio is different from that of the source video. Valid values:stretch: stretches the video image frame by frame to fill the screen. The video image may become squashed or stretched after transcoding.black: fills the uncovered area with black color, without changing the image's aspect ratio.white: fills the uncovered area with white color, without changing the image's aspect ratio.gauss: applies Gaussian blur to the uncovered area, without changing the image's aspect ratio.Default value: black.
    gop number
    I-frame interval in frames. Valid values: 0 and 1-100000.When this parameter is set to 0 or left empty, Gop will be automatically set.
    height number
    The maximum video height (or short side) in pixels. Value range: 0 and [128, 8192].If both Width and Height are 0, the output resolution will be the same as that of the source video.If Width is 0 and Height is not, the video width will be proportionally scaled.If Width is not 0 and Height is, the video height will be proportionally scaled.If neither Width nor Height is 0, the specified width and height will be used.Default value: 0.
    preserveHdrSwitch string
    Whether to output an HDR (high dynamic range) video if the source video is HDR. Valid values:ON: If the source video is HDR, output an HDR video; if not, output an SDR (standard dynamic range) video.OFF: Output an SDR video regardless of whether the source video is HDR.Default value: OFF.
    resolutionAdaptive string
    Resolution adaption. Valid values:open: enabled. In this case, Width represents the long side of a video, while Height the short side;close: disabled. In this case, Width represents the width of a video, while Height the height.Default value: open.Note: this field may return null, indicating that no valid values can be obtained.
    vcrf number
    The video constant rate factor (CRF). Value range: 1-51.If this parameter is specified, CRF encoding will be used and the bitrate parameter will be ignored.If Codec is H.266, this parameter is required (28 is recommended).We don't recommend using this parameter unless you have special requirements.
    width number
    The maximum video width (or long side) in pixels. Value range: 0 and [128, 8192].If both Width and Height are 0, the output resolution will be the same as that of the source video.If Width is 0 and Height is not, the video width will be proportionally scaled.If Width is not 0 and Height is, the video height will be proportionally scaled.If neither Width nor Height is 0, the specified width and height will be used.Default value: 0.
    bitrate float
    Bitrate of video stream in Kbps. Value range: 0 and [128, 35,000].If the value is 0, the bitrate of the video will be the same as that of the source video.
    codec str
    The video codec. Valid values:libx264: H.264; libx265: H.265; av1: AOMedia Video 1; H.266: H.266. The AOMedia Video 1 and H.266 codecs can only be used for MP4 files. Only CRF is supported for H.266 currently.
    fps float
    Video frame rate in Hz. Value range: [0,100].If the value is 0, the frame rate will be the same as that of the source video.
    codec_tag str
    The codec tag. This parameter is valid only if the H.265 codec is used. Valid values:hvc1hev1Default value: hvc1.
    fill_type str
    Fill type, the way of processing a screenshot when the configured aspect ratio is different from that of the source video. Valid values:stretch: stretches the video image frame by frame to fill the screen. The video image may become squashed or stretched after transcoding.black: fills the uncovered area with black color, without changing the image's aspect ratio.white: fills the uncovered area with white color, without changing the image's aspect ratio.gauss: applies Gaussian blur to the uncovered area, without changing the image's aspect ratio.Default value: black.
    gop float
    I-frame interval in frames. Valid values: 0 and 1-100000.When this parameter is set to 0 or left empty, Gop will be automatically set.
    height float
    The maximum video height (or short side) in pixels. Value range: 0 and [128, 8192].If both Width and Height are 0, the output resolution will be the same as that of the source video.If Width is 0 and Height is not, the video width will be proportionally scaled.If Width is not 0 and Height is, the video height will be proportionally scaled.If neither Width nor Height is 0, the specified width and height will be used.Default value: 0.
    preserve_hdr_switch str
    Whether to output an HDR (high dynamic range) video if the source video is HDR. Valid values:ON: If the source video is HDR, output an HDR video; if not, output an SDR (standard dynamic range) video.OFF: Output an SDR video regardless of whether the source video is HDR.Default value: OFF.
    resolution_adaptive str
    Resolution adaption. Valid values:open: enabled. In this case, Width represents the long side of a video, while Height the short side;close: disabled. In this case, Width represents the width of a video, while Height the height.Default value: open.Note: this field may return null, indicating that no valid values can be obtained.
    vcrf float
    The video constant rate factor (CRF). Value range: 1-51.If this parameter is specified, CRF encoding will be used and the bitrate parameter will be ignored.If Codec is H.266, this parameter is required (28 is recommended).We don't recommend using this parameter unless you have special requirements.
    width float
    The maximum video width (or long side) in pixels. Value range: 0 and [128, 8192].If both Width and Height are 0, the output resolution will be the same as that of the source video.If Width is 0 and Height is not, the video width will be proportionally scaled.If Width is not 0 and Height is, the video height will be proportionally scaled.If neither Width nor Height is 0, the specified width and height will be used.Default value: 0.
    bitrate Number
    Bitrate of video stream in Kbps. Value range: 0 and [128, 35,000].If the value is 0, the bitrate of the video will be the same as that of the source video.
    codec String
    The video codec. Valid values:libx264: H.264; libx265: H.265; av1: AOMedia Video 1; H.266: H.266. The AOMedia Video 1 and H.266 codecs can only be used for MP4 files. Only CRF is supported for H.266 currently.
    fps Number
    Video frame rate in Hz. Value range: [0,100].If the value is 0, the frame rate will be the same as that of the source video.
    codecTag String
    The codec tag. This parameter is valid only if the H.265 codec is used. Valid values:hvc1hev1Default value: hvc1.
    fillType String
    Fill type, the way of processing a screenshot when the configured aspect ratio is different from that of the source video. Valid values:stretch: stretches the video image frame by frame to fill the screen. The video image may become squashed or stretched after transcoding.black: fills the uncovered area with black color, without changing the image's aspect ratio.white: fills the uncovered area with white color, without changing the image's aspect ratio.gauss: applies Gaussian blur to the uncovered area, without changing the image's aspect ratio.Default value: black.
    gop Number
    I-frame interval in frames. Valid values: 0 and 1-100000.When this parameter is set to 0 or left empty, Gop will be automatically set.
    height Number
    The maximum video height (or short side) in pixels. Value range: 0 and [128, 8192].If both Width and Height are 0, the output resolution will be the same as that of the source video.If Width is 0 and Height is not, the video width will be proportionally scaled.If Width is not 0 and Height is, the video height will be proportionally scaled.If neither Width nor Height is 0, the specified width and height will be used.Default value: 0.
    preserveHdrSwitch String
    Whether to output an HDR (high dynamic range) video if the source video is HDR. Valid values:ON: If the source video is HDR, output an HDR video; if not, output an SDR (standard dynamic range) video.OFF: Output an SDR video regardless of whether the source video is HDR.Default value: OFF.
    resolutionAdaptive String
    Resolution adaption. Valid values:open: enabled. In this case, Width represents the long side of a video, while Height the short side;close: disabled. In this case, Width represents the width of a video, while Height the height.Default value: open.Note: this field may return null, indicating that no valid values can be obtained.
    vcrf Number
    The video constant rate factor (CRF). Value range: 1-51.If this parameter is specified, CRF encoding will be used and the bitrate parameter will be ignored.If Codec is H.266, this parameter is required (28 is recommended).We don't recommend using this parameter unless you have special requirements.
    width Number
    The maximum video width (or long side) in pixels. Value range: 0 and [128, 8192].If both Width and Height are 0, the output resolution will be the same as that of the source video.If Width is 0 and Height is not, the video width will be proportionally scaled.If Width is not 0 and Height is, the video height will be proportionally scaled.If neither Width nor Height is 0, the specified width and height will be used.Default value: 0.

    Import

    vod transcode template can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/vodTranscodeTemplate:VodTranscodeTemplate transcode_template $subAppId#$templateId
    

    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