tencentcloud.VodTranscodeTemplate
Explore with Pulumi AI
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
, andwav
are audio file formats). - Audio
Template VodTranscode Template Audio Template - 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.
- Remove
Audio double - Whether to remove audio data. Valid values:0: retain 1: remove Default value: 0.
- Remove
Video double - Whether to remove video data. Valid values:
- 0: retain
- 1: remove Default value: 0.
- Segment
Type string - The segment type. This parameter is valid only if
Container
ishls
. Valid values:ts
: TS segment;fmp4
: fMP4 segment Default:ts
. - Sub
App doubleId - 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 VodTranscode Template Tehd Config - TESHD transcoding parameter.
- Video
Template VodTranscode Template Video Template - Video stream configuration parameter. This field is required when
RemoveVideo
is 0. - Vod
Transcode stringTemplate Id - ID of the resource.
- Container string
- The container format. Valid values:
mp4
,flv
,hls
,mp3
,flac
,ogg
,m4a
,wav
(mp3
,flac
,ogg
,m4a
, andwav
are audio file formats). - Audio
Template VodTranscode Template Audio Template Args - 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.
- Remove
Audio float64 - Whether to remove audio data. Valid values:0: retain 1: remove Default value: 0.
- Remove
Video float64 - Whether to remove video data. Valid values:
- 0: retain
- 1: remove Default value: 0.
- Segment
Type string - The segment type. This parameter is valid only if
Container
ishls
. Valid values:ts
: TS segment;fmp4
: fMP4 segment Default:ts
. - Sub
App float64Id - 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 VodTranscode Template Tehd Config Args - TESHD transcoding parameter.
- Video
Template VodTranscode Template Video Template Args - Video stream configuration parameter. This field is required when
RemoveVideo
is 0. - Vod
Transcode stringTemplate Id - ID of the resource.
- container String
- The container format. Valid values:
mp4
,flv
,hls
,mp3
,flac
,ogg
,m4a
,wav
(mp3
,flac
,ogg
,m4a
, andwav
are audio file formats). - audio
Template VodTranscode Template Audio Template - 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.
- remove
Audio Double - Whether to remove audio data. Valid values:0: retain 1: remove Default value: 0.
- remove
Video Double - Whether to remove video data. Valid values:
- 0: retain
- 1: remove Default value: 0.
- segment
Type String - The segment type. This parameter is valid only if
Container
ishls
. Valid values:ts
: TS segment;fmp4
: fMP4 segment Default:ts
. - sub
App DoubleId - 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 VodTranscode Template Tehd Config - TESHD transcoding parameter.
- video
Template VodTranscode Template Video Template - Video stream configuration parameter. This field is required when
RemoveVideo
is 0. - vod
Transcode StringTemplate Id - ID of the resource.
- container string
- The container format. Valid values:
mp4
,flv
,hls
,mp3
,flac
,ogg
,m4a
,wav
(mp3
,flac
,ogg
,m4a
, andwav
are audio file formats). - audio
Template VodTranscode Template Audio Template - 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.
- remove
Audio number - Whether to remove audio data. Valid values:0: retain 1: remove Default value: 0.
- remove
Video number - Whether to remove video data. Valid values:
- 0: retain
- 1: remove Default value: 0.
- segment
Type string - The segment type. This parameter is valid only if
Container
ishls
. Valid values:ts
: TS segment;fmp4
: fMP4 segment Default:ts
. - sub
App numberId - 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 VodTranscode Template Tehd Config - TESHD transcoding parameter.
- video
Template VodTranscode Template Video Template - Video stream configuration parameter. This field is required when
RemoveVideo
is 0. - vod
Transcode stringTemplate Id - ID of the resource.
- container str
- The container format. Valid values:
mp4
,flv
,hls
,mp3
,flac
,ogg
,m4a
,wav
(mp3
,flac
,ogg
,m4a
, andwav
are audio file formats). - audio_
template VodTranscode Template Audio Template Args - 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
ishls
. Valid values:ts
: TS segment;fmp4
: fMP4 segment Default:ts
. - sub_
app_ floatid - 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 VodTranscode Template Tehd Config Args - TESHD transcoding parameter.
- video_
template VodTranscode Template Video Template Args - Video stream configuration parameter. This field is required when
RemoveVideo
is 0. - vod_
transcode_ strtemplate_ id - ID of the resource.
- container String
- The container format. Valid values:
mp4
,flv
,hls
,mp3
,flac
,ogg
,m4a
,wav
(mp3
,flac
,ogg
,m4a
, andwav
are audio file formats). - audio
Template 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.
- remove
Audio Number - Whether to remove audio data. Valid values:0: retain 1: remove Default value: 0.
- remove
Video Number - Whether to remove video data. Valid values:
- 0: retain
- 1: remove Default value: 0.
- segment
Type String - The segment type. This parameter is valid only if
Container
ishls
. Valid values:ts
: TS segment;fmp4
: fMP4 segment Default:ts
. - sub
App NumberId - 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 Property Map - TESHD transcoding parameter.
- video
Template Property Map - Video stream configuration parameter. This field is required when
RemoveVideo
is 0. - vod
Transcode StringTemplate Id - 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.
- Audio
Template VodTranscode Template Audio Template - 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
, andwav
are audio file formats). - Name string
- Transcoding template name. Length limit: 64 characters.
- Remove
Audio double - Whether to remove audio data. Valid values:0: retain 1: remove Default value: 0.
- Remove
Video double - Whether to remove video data. Valid values:
- 0: retain
- 1: remove Default value: 0.
- Segment
Type string - The segment type. This parameter is valid only if
Container
ishls
. Valid values:ts
: TS segment;fmp4
: fMP4 segment Default:ts
. - Sub
App doubleId - 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 VodTranscode Template Tehd Config - TESHD transcoding parameter.
- Video
Template VodTranscode Template Video Template - Video stream configuration parameter. This field is required when
RemoveVideo
is 0. - Vod
Transcode stringTemplate Id - ID of the resource.
- Audio
Template VodTranscode Template Audio Template Args - 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
, andwav
are audio file formats). - Name string
- Transcoding template name. Length limit: 64 characters.
- Remove
Audio float64 - Whether to remove audio data. Valid values:0: retain 1: remove Default value: 0.
- Remove
Video float64 - Whether to remove video data. Valid values:
- 0: retain
- 1: remove Default value: 0.
- Segment
Type string - The segment type. This parameter is valid only if
Container
ishls
. Valid values:ts
: TS segment;fmp4
: fMP4 segment Default:ts
. - Sub
App float64Id - 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 VodTranscode Template Tehd Config Args - TESHD transcoding parameter.
- Video
Template VodTranscode Template Video Template Args - Video stream configuration parameter. This field is required when
RemoveVideo
is 0. - Vod
Transcode stringTemplate Id - ID of the resource.
- audio
Template VodTranscode Template Audio Template - 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
, andwav
are audio file formats). - name String
- Transcoding template name. Length limit: 64 characters.
- remove
Audio Double - Whether to remove audio data. Valid values:0: retain 1: remove Default value: 0.
- remove
Video Double - Whether to remove video data. Valid values:
- 0: retain
- 1: remove Default value: 0.
- segment
Type String - The segment type. This parameter is valid only if
Container
ishls
. Valid values:ts
: TS segment;fmp4
: fMP4 segment Default:ts
. - sub
App DoubleId - 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 VodTranscode Template Tehd Config - TESHD transcoding parameter.
- video
Template VodTranscode Template Video Template - Video stream configuration parameter. This field is required when
RemoveVideo
is 0. - vod
Transcode StringTemplate Id - ID of the resource.
- audio
Template VodTranscode Template Audio Template - 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
, andwav
are audio file formats). - name string
- Transcoding template name. Length limit: 64 characters.
- remove
Audio number - Whether to remove audio data. Valid values:0: retain 1: remove Default value: 0.
- remove
Video number - Whether to remove video data. Valid values:
- 0: retain
- 1: remove Default value: 0.
- segment
Type string - The segment type. This parameter is valid only if
Container
ishls
. Valid values:ts
: TS segment;fmp4
: fMP4 segment Default:ts
. - sub
App numberId - 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 VodTranscode Template Tehd Config - TESHD transcoding parameter.
- video
Template VodTranscode Template Video Template - Video stream configuration parameter. This field is required when
RemoveVideo
is 0. - vod
Transcode stringTemplate Id - ID of the resource.
- audio_
template VodTranscode Template Audio Template Args - 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
, andwav
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
ishls
. Valid values:ts
: TS segment;fmp4
: fMP4 segment Default:ts
. - sub_
app_ floatid - 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 VodTranscode Template Tehd Config Args - TESHD transcoding parameter.
- video_
template VodTranscode Template Video Template Args - Video stream configuration parameter. This field is required when
RemoveVideo
is 0. - vod_
transcode_ strtemplate_ id - ID of the resource.
- audio
Template 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
, andwav
are audio file formats). - name String
- Transcoding template name. Length limit: 64 characters.
- remove
Audio Number - Whether to remove audio data. Valid values:0: retain 1: remove Default value: 0.
- remove
Video Number - Whether to remove video data. Valid values:
- 0: retain
- 1: remove Default value: 0.
- segment
Type String - The segment type. This parameter is valid only if
Container
ishls
. Valid values:ts
: TS segment;fmp4
: fMP4 segment Default:ts
. - sub
App NumberId - 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 Property Map - TESHD transcoding parameter.
- video
Template Property Map - Video stream configuration parameter. This field is required when
RemoveVideo
is 0. - vod
Transcode StringTemplate Id - 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
ismp3
, the valid value is:libmp3lame
IfContainer
isogg
orflac
, the valid value is:flac
IfContainer
ism4a
, the valid values are:libfdk_aac``libmp3lame``ac3
IfContainer
ismp4
orflv
, the valid values are:libfdk_aac
(Recommended for MP4)libmp3lame
(Recommended for FLV)mp2
IfContainer
ishls
, the valid value is:libfdk_aac
IfFormat
isHLS
orMPEG-DASH
, the valid value is:libfdk_aac
IfContainer
iswav
, the valid value is:pcm16
. - Sample
Rate double - The audio sample rate. Valid values:
16000
(valid only ifCodec
ispcm16
)32000``44100``48000
Unit: Hz. - Audio
Channel 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
ismp3
, the valid value is:libmp3lame
IfContainer
isogg
orflac
, the valid value is:flac
IfContainer
ism4a
, the valid values are:libfdk_aac``libmp3lame``ac3
IfContainer
ismp4
orflv
, the valid values are:libfdk_aac
(Recommended for MP4)libmp3lame
(Recommended for FLV)mp2
IfContainer
ishls
, the valid value is:libfdk_aac
IfFormat
isHLS
orMPEG-DASH
, the valid value is:libfdk_aac
IfContainer
iswav
, the valid value is:pcm16
. - Sample
Rate float64 - The audio sample rate. Valid values:
16000
(valid only ifCodec
ispcm16
)32000``44100``48000
Unit: Hz. - Audio
Channel 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
ismp3
, the valid value is:libmp3lame
IfContainer
isogg
orflac
, the valid value is:flac
IfContainer
ism4a
, the valid values are:libfdk_aac``libmp3lame``ac3
IfContainer
ismp4
orflv
, the valid values are:libfdk_aac
(Recommended for MP4)libmp3lame
(Recommended for FLV)mp2
IfContainer
ishls
, the valid value is:libfdk_aac
IfFormat
isHLS
orMPEG-DASH
, the valid value is:libfdk_aac
IfContainer
iswav
, the valid value is:pcm16
. - sample
Rate Double - The audio sample rate. Valid values:
16000
(valid only ifCodec
ispcm16
)32000``44100``48000
Unit: Hz. - audio
Channel 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
ismp3
, the valid value is:libmp3lame
IfContainer
isogg
orflac
, the valid value is:flac
IfContainer
ism4a
, the valid values are:libfdk_aac``libmp3lame``ac3
IfContainer
ismp4
orflv
, the valid values are:libfdk_aac
(Recommended for MP4)libmp3lame
(Recommended for FLV)mp2
IfContainer
ishls
, the valid value is:libfdk_aac
IfFormat
isHLS
orMPEG-DASH
, the valid value is:libfdk_aac
IfContainer
iswav
, the valid value is:pcm16
. - sample
Rate number - The audio sample rate. Valid values:
16000
(valid only ifCodec
ispcm16
)32000``44100``48000
Unit: Hz. - audio
Channel 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
ismp3
, the valid value is:libmp3lame
IfContainer
isogg
orflac
, the valid value is:flac
IfContainer
ism4a
, the valid values are:libfdk_aac``libmp3lame``ac3
IfContainer
ismp4
orflv
, the valid values are:libfdk_aac
(Recommended for MP4)libmp3lame
(Recommended for FLV)mp2
IfContainer
ishls
, the valid value is:libfdk_aac
IfFormat
isHLS
orMPEG-DASH
, the valid value is:libfdk_aac
IfContainer
iswav
, the valid value is:pcm16
. - sample_
rate float - The audio sample rate. Valid values:
16000
(valid only ifCodec
ispcm16
)32000``44100``48000
Unit: 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
ismp3
, the valid value is:libmp3lame
IfContainer
isogg
orflac
, the valid value is:flac
IfContainer
ism4a
, the valid values are:libfdk_aac``libmp3lame``ac3
IfContainer
ismp4
orflv
, the valid values are:libfdk_aac
(Recommended for MP4)libmp3lame
(Recommended for FLV)mp2
IfContainer
ishls
, the valid value is:libfdk_aac
IfFormat
isHLS
orMPEG-DASH
, the valid value is:libfdk_aac
IfContainer
iswav
, the valid value is:pcm16
. - sample
Rate Number - The audio sample rate. Valid values:
16000
(valid only ifCodec
ispcm16
)32000``44100``48000
Unit: Hz. - audio
Channel 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).
- Max
Video doubleBitrate - Maximum bitrate, which is valid when
Type
isTESHD
.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).
- Max
Video float64Bitrate - Maximum bitrate, which is valid when
Type
isTESHD
.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).
- max
Video DoubleBitrate - Maximum bitrate, which is valid when
Type
isTESHD
.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).
- max
Video numberBitrate - Maximum bitrate, which is valid when
Type
isTESHD
.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_ floatbitrate - Maximum bitrate, which is valid when
Type
isTESHD
.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).
- max
Video NumberBitrate - Maximum bitrate, which is valid when
Type
isTESHD
.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.
- Codec
Tag string - The codec tag. This parameter is valid only if the H.265 codec is used. Valid values:hvc1hev1Default value: hvc1.
- Fill
Type 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
andHeight
are 0, the output resolution will be the same as that of the source video.IfWidth
is 0 andHeight
is not, the video width will be proportionally scaled.IfWidth
is not 0 andHeight
is, the video height will be proportionally scaled.If neitherWidth
norHeight
is 0, the specified width and height will be used.Default value: 0. - Preserve
Hdr stringSwitch - 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 string - Resolution adaption. Valid values:open: enabled. In this case,
Width
represents the long side of a video, whileHeight
the short side;close: disabled. In this case,Width
represents the width of a video, whileHeight
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
isH.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
andHeight
are 0, the output resolution will be the same as that of the source video.IfWidth
is 0 andHeight
is not, the video width will be proportionally scaled.IfWidth
is not 0 andHeight
is, the video height will be proportionally scaled.If neitherWidth
norHeight
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.
- Codec
Tag string - The codec tag. This parameter is valid only if the H.265 codec is used. Valid values:hvc1hev1Default value: hvc1.
- Fill
Type 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
andHeight
are 0, the output resolution will be the same as that of the source video.IfWidth
is 0 andHeight
is not, the video width will be proportionally scaled.IfWidth
is not 0 andHeight
is, the video height will be proportionally scaled.If neitherWidth
norHeight
is 0, the specified width and height will be used.Default value: 0. - Preserve
Hdr stringSwitch - 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 string - Resolution adaption. Valid values:open: enabled. In this case,
Width
represents the long side of a video, whileHeight
the short side;close: disabled. In this case,Width
represents the width of a video, whileHeight
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
isH.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
andHeight
are 0, the output resolution will be the same as that of the source video.IfWidth
is 0 andHeight
is not, the video width will be proportionally scaled.IfWidth
is not 0 andHeight
is, the video height will be proportionally scaled.If neitherWidth
norHeight
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.
- codec
Tag String - The codec tag. This parameter is valid only if the H.265 codec is used. Valid values:hvc1hev1Default value: hvc1.
- fill
Type 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
andHeight
are 0, the output resolution will be the same as that of the source video.IfWidth
is 0 andHeight
is not, the video width will be proportionally scaled.IfWidth
is not 0 andHeight
is, the video height will be proportionally scaled.If neitherWidth
norHeight
is 0, the specified width and height will be used.Default value: 0. - preserve
Hdr StringSwitch - 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 String - Resolution adaption. Valid values:open: enabled. In this case,
Width
represents the long side of a video, whileHeight
the short side;close: disabled. In this case,Width
represents the width of a video, whileHeight
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
isH.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
andHeight
are 0, the output resolution will be the same as that of the source video.IfWidth
is 0 andHeight
is not, the video width will be proportionally scaled.IfWidth
is not 0 andHeight
is, the video height will be proportionally scaled.If neitherWidth
norHeight
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.
- codec
Tag string - The codec tag. This parameter is valid only if the H.265 codec is used. Valid values:hvc1hev1Default value: hvc1.
- fill
Type 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
andHeight
are 0, the output resolution will be the same as that of the source video.IfWidth
is 0 andHeight
is not, the video width will be proportionally scaled.IfWidth
is not 0 andHeight
is, the video height will be proportionally scaled.If neitherWidth
norHeight
is 0, the specified width and height will be used.Default value: 0. - preserve
Hdr stringSwitch - 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 string - Resolution adaption. Valid values:open: enabled. In this case,
Width
represents the long side of a video, whileHeight
the short side;close: disabled. In this case,Width
represents the width of a video, whileHeight
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
isH.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
andHeight
are 0, the output resolution will be the same as that of the source video.IfWidth
is 0 andHeight
is not, the video width will be proportionally scaled.IfWidth
is not 0 andHeight
is, the video height will be proportionally scaled.If neitherWidth
norHeight
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
andHeight
are 0, the output resolution will be the same as that of the source video.IfWidth
is 0 andHeight
is not, the video width will be proportionally scaled.IfWidth
is not 0 andHeight
is, the video height will be proportionally scaled.If neitherWidth
norHeight
is 0, the specified width and height will be used.Default value: 0. - preserve_
hdr_ strswitch - 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, whileHeight
the short side;close: disabled. In this case,Width
represents the width of a video, whileHeight
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
isH.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
andHeight
are 0, the output resolution will be the same as that of the source video.IfWidth
is 0 andHeight
is not, the video width will be proportionally scaled.IfWidth
is not 0 andHeight
is, the video height will be proportionally scaled.If neitherWidth
norHeight
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.
- codec
Tag String - The codec tag. This parameter is valid only if the H.265 codec is used. Valid values:hvc1hev1Default value: hvc1.
- fill
Type 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
andHeight
are 0, the output resolution will be the same as that of the source video.IfWidth
is 0 andHeight
is not, the video width will be proportionally scaled.IfWidth
is not 0 andHeight
is, the video height will be proportionally scaled.If neitherWidth
norHeight
is 0, the specified width and height will be used.Default value: 0. - preserve
Hdr StringSwitch - 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 String - Resolution adaption. Valid values:open: enabled. In this case,
Width
represents the long side of a video, whileHeight
the short side;close: disabled. In this case,Width
represents the width of a video, whileHeight
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
isH.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
andHeight
are 0, the output resolution will be the same as that of the source video.IfWidth
is 0 andHeight
is not, the video width will be proportionally scaled.IfWidth
is not 0 andHeight
is, the video height will be proportionally scaled.If neitherWidth
norHeight
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.