tencentcloud.CiMediaTranscodeTemplate
Explore with Pulumi AI
Provides a resource to create a ci media_transcode_template
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const mediaTranscodeTemplate = new tencentcloud.CiMediaTranscodeTemplate("mediaTranscodeTemplate", {
audio: {
bitrate: "128",
channels: "4",
codec: "aac",
keepTwoTracks: "false",
remove: "false",
sampleFormat: "",
samplerate: "44100",
switchTrack: "false",
},
audioMixes: [{
audioSource: "https://terraform-ci-1308919341.cos.ap-guangzhou.myqcloud.com/mp3%2Fnizhan-test.mp3",
effectConfig: {
bgmFadeTime: "1.7",
enableBgmFade: "true",
enableEndFadeout: "false",
enableStartFadein: "true",
endFadeoutTime: "0",
startFadeinTime: "3",
},
mixMode: "Once",
replace: "true",
}],
bucket: "terraform-ci-1308919341",
container: {
format: "mp4",
},
timeInterval: {
duration: "60",
start: "0",
},
transConfig: {
adjDarMethod: "scale",
audioBitrateAdjMethod: "0",
deleteMetadata: "false",
isCheckAudioBitrate: "false",
isCheckReso: "false",
isCheckVideoBitrate: "false",
isHdr2Sdr: "false",
resoAdjMethod: "1",
videoBitrateAdjMethod: "0",
},
video: {
bitrate: "1000",
codec: "H.264",
fps: "30",
longShortMode: "false",
preset: "medium",
profile: "high",
remove: "false",
width: "1280",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
media_transcode_template = tencentcloud.CiMediaTranscodeTemplate("mediaTranscodeTemplate",
audio={
"bitrate": "128",
"channels": "4",
"codec": "aac",
"keep_two_tracks": "false",
"remove": "false",
"sample_format": "",
"samplerate": "44100",
"switch_track": "false",
},
audio_mixes=[{
"audio_source": "https://terraform-ci-1308919341.cos.ap-guangzhou.myqcloud.com/mp3%2Fnizhan-test.mp3",
"effect_config": {
"bgm_fade_time": "1.7",
"enable_bgm_fade": "true",
"enable_end_fadeout": "false",
"enable_start_fadein": "true",
"end_fadeout_time": "0",
"start_fadein_time": "3",
},
"mix_mode": "Once",
"replace": "true",
}],
bucket="terraform-ci-1308919341",
container={
"format": "mp4",
},
time_interval={
"duration": "60",
"start": "0",
},
trans_config={
"adj_dar_method": "scale",
"audio_bitrate_adj_method": "0",
"delete_metadata": "false",
"is_check_audio_bitrate": "false",
"is_check_reso": "false",
"is_check_video_bitrate": "false",
"is_hdr2_sdr": "false",
"reso_adj_method": "1",
"video_bitrate_adj_method": "0",
},
video={
"bitrate": "1000",
"codec": "H.264",
"fps": "30",
"long_short_mode": "false",
"preset": "medium",
"profile": "high",
"remove": "false",
"width": "1280",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewCiMediaTranscodeTemplate(ctx, "mediaTranscodeTemplate", &tencentcloud.CiMediaTranscodeTemplateArgs{
Audio: &tencentcloud.CiMediaTranscodeTemplateAudioArgs{
Bitrate: pulumi.String("128"),
Channels: pulumi.String("4"),
Codec: pulumi.String("aac"),
KeepTwoTracks: pulumi.String("false"),
Remove: pulumi.String("false"),
SampleFormat: pulumi.String(""),
Samplerate: pulumi.String("44100"),
SwitchTrack: pulumi.String("false"),
},
AudioMixes: tencentcloud.CiMediaTranscodeTemplateAudioMixArray{
&tencentcloud.CiMediaTranscodeTemplateAudioMixArgs{
AudioSource: pulumi.String("https://terraform-ci-1308919341.cos.ap-guangzhou.myqcloud.com/mp3%2Fnizhan-test.mp3"),
EffectConfig: &tencentcloud.CiMediaTranscodeTemplateAudioMixEffectConfigArgs{
BgmFadeTime: pulumi.String("1.7"),
EnableBgmFade: pulumi.String("true"),
EnableEndFadeout: pulumi.String("false"),
EnableStartFadein: pulumi.String("true"),
EndFadeoutTime: pulumi.String("0"),
StartFadeinTime: pulumi.String("3"),
},
MixMode: pulumi.String("Once"),
Replace: pulumi.String("true"),
},
},
Bucket: pulumi.String("terraform-ci-1308919341"),
Container: &tencentcloud.CiMediaTranscodeTemplateContainerArgs{
Format: pulumi.String("mp4"),
},
TimeInterval: &tencentcloud.CiMediaTranscodeTemplateTimeIntervalArgs{
Duration: pulumi.String("60"),
Start: pulumi.String("0"),
},
TransConfig: &tencentcloud.CiMediaTranscodeTemplateTransConfigArgs{
AdjDarMethod: pulumi.String("scale"),
AudioBitrateAdjMethod: pulumi.String("0"),
DeleteMetadata: pulumi.String("false"),
IsCheckAudioBitrate: pulumi.String("false"),
IsCheckReso: pulumi.String("false"),
IsCheckVideoBitrate: pulumi.String("false"),
IsHdr2Sdr: pulumi.String("false"),
ResoAdjMethod: pulumi.String("1"),
VideoBitrateAdjMethod: pulumi.String("0"),
},
Video: &tencentcloud.CiMediaTranscodeTemplateVideoArgs{
Bitrate: pulumi.String("1000"),
Codec: pulumi.String("H.264"),
Fps: pulumi.String("30"),
LongShortMode: pulumi.String("false"),
Preset: pulumi.String("medium"),
Profile: pulumi.String("high"),
Remove: pulumi.String("false"),
Width: pulumi.String("1280"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var mediaTranscodeTemplate = new Tencentcloud.CiMediaTranscodeTemplate("mediaTranscodeTemplate", new()
{
Audio = new Tencentcloud.Inputs.CiMediaTranscodeTemplateAudioArgs
{
Bitrate = "128",
Channels = "4",
Codec = "aac",
KeepTwoTracks = "false",
Remove = "false",
SampleFormat = "",
Samplerate = "44100",
SwitchTrack = "false",
},
AudioMixes = new[]
{
new Tencentcloud.Inputs.CiMediaTranscodeTemplateAudioMixArgs
{
AudioSource = "https://terraform-ci-1308919341.cos.ap-guangzhou.myqcloud.com/mp3%2Fnizhan-test.mp3",
EffectConfig = new Tencentcloud.Inputs.CiMediaTranscodeTemplateAudioMixEffectConfigArgs
{
BgmFadeTime = "1.7",
EnableBgmFade = "true",
EnableEndFadeout = "false",
EnableStartFadein = "true",
EndFadeoutTime = "0",
StartFadeinTime = "3",
},
MixMode = "Once",
Replace = "true",
},
},
Bucket = "terraform-ci-1308919341",
Container = new Tencentcloud.Inputs.CiMediaTranscodeTemplateContainerArgs
{
Format = "mp4",
},
TimeInterval = new Tencentcloud.Inputs.CiMediaTranscodeTemplateTimeIntervalArgs
{
Duration = "60",
Start = "0",
},
TransConfig = new Tencentcloud.Inputs.CiMediaTranscodeTemplateTransConfigArgs
{
AdjDarMethod = "scale",
AudioBitrateAdjMethod = "0",
DeleteMetadata = "false",
IsCheckAudioBitrate = "false",
IsCheckReso = "false",
IsCheckVideoBitrate = "false",
IsHdr2Sdr = "false",
ResoAdjMethod = "1",
VideoBitrateAdjMethod = "0",
},
Video = new Tencentcloud.Inputs.CiMediaTranscodeTemplateVideoArgs
{
Bitrate = "1000",
Codec = "H.264",
Fps = "30",
LongShortMode = "false",
Preset = "medium",
Profile = "high",
Remove = "false",
Width = "1280",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CiMediaTranscodeTemplate;
import com.pulumi.tencentcloud.CiMediaTranscodeTemplateArgs;
import com.pulumi.tencentcloud.inputs.CiMediaTranscodeTemplateAudioArgs;
import com.pulumi.tencentcloud.inputs.CiMediaTranscodeTemplateAudioMixArgs;
import com.pulumi.tencentcloud.inputs.CiMediaTranscodeTemplateAudioMixEffectConfigArgs;
import com.pulumi.tencentcloud.inputs.CiMediaTranscodeTemplateContainerArgs;
import com.pulumi.tencentcloud.inputs.CiMediaTranscodeTemplateTimeIntervalArgs;
import com.pulumi.tencentcloud.inputs.CiMediaTranscodeTemplateTransConfigArgs;
import com.pulumi.tencentcloud.inputs.CiMediaTranscodeTemplateVideoArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var mediaTranscodeTemplate = new CiMediaTranscodeTemplate("mediaTranscodeTemplate", CiMediaTranscodeTemplateArgs.builder()
.audio(CiMediaTranscodeTemplateAudioArgs.builder()
.bitrate("128")
.channels("4")
.codec("aac")
.keepTwoTracks("false")
.remove("false")
.sampleFormat("")
.samplerate("44100")
.switchTrack("false")
.build())
.audioMixes(CiMediaTranscodeTemplateAudioMixArgs.builder()
.audioSource("https://terraform-ci-1308919341.cos.ap-guangzhou.myqcloud.com/mp3%2Fnizhan-test.mp3")
.effectConfig(CiMediaTranscodeTemplateAudioMixEffectConfigArgs.builder()
.bgmFadeTime("1.7")
.enableBgmFade("true")
.enableEndFadeout("false")
.enableStartFadein("true")
.endFadeoutTime("0")
.startFadeinTime("3")
.build())
.mixMode("Once")
.replace("true")
.build())
.bucket("terraform-ci-1308919341")
.container(CiMediaTranscodeTemplateContainerArgs.builder()
.format("mp4")
.build())
.timeInterval(CiMediaTranscodeTemplateTimeIntervalArgs.builder()
.duration("60")
.start("0")
.build())
.transConfig(CiMediaTranscodeTemplateTransConfigArgs.builder()
.adjDarMethod("scale")
.audioBitrateAdjMethod("0")
.deleteMetadata("false")
.isCheckAudioBitrate("false")
.isCheckReso("false")
.isCheckVideoBitrate("false")
.isHdr2Sdr("false")
.resoAdjMethod("1")
.videoBitrateAdjMethod("0")
.build())
.video(CiMediaTranscodeTemplateVideoArgs.builder()
.bitrate("1000")
.codec("H.264")
.fps("30")
.longShortMode("false")
.preset("medium")
.profile("high")
.remove("false")
.width("1280")
.build())
.build());
}
}
resources:
mediaTranscodeTemplate:
type: tencentcloud:CiMediaTranscodeTemplate
properties:
audio:
bitrate: '128'
channels: '4'
codec: aac
keepTwoTracks: 'false'
remove: 'false'
sampleFormat: ""
samplerate: '44100'
switchTrack: 'false'
audioMixes:
- audioSource: https://terraform-ci-1308919341.cos.ap-guangzhou.myqcloud.com/mp3%2Fnizhan-test.mp3
effectConfig:
bgmFadeTime: '1.7'
enableBgmFade: 'true'
enableEndFadeout: 'false'
enableStartFadein: 'true'
endFadeoutTime: '0'
startFadeinTime: '3'
mixMode: Once
replace: 'true'
bucket: terraform-ci-1308919341
container:
format: mp4
timeInterval:
duration: '60'
start: '0'
transConfig:
adjDarMethod: scale
audioBitrateAdjMethod: '0'
deleteMetadata: 'false'
isCheckAudioBitrate: 'false'
isCheckReso: 'false'
isCheckVideoBitrate: 'false'
isHdr2Sdr: 'false'
resoAdjMethod: '1'
videoBitrateAdjMethod: '0'
video:
bitrate: '1000'
codec: H.264
fps: '30'
longShortMode: 'false'
preset: medium
profile: high
remove: 'false'
width: '1280'
Create CiMediaTranscodeTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CiMediaTranscodeTemplate(name: string, args: CiMediaTranscodeTemplateArgs, opts?: CustomResourceOptions);
@overload
def CiMediaTranscodeTemplate(resource_name: str,
args: CiMediaTranscodeTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CiMediaTranscodeTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
bucket: Optional[str] = None,
container: Optional[CiMediaTranscodeTemplateContainerArgs] = None,
audio: Optional[CiMediaTranscodeTemplateAudioArgs] = None,
audio_mixes: Optional[Sequence[CiMediaTranscodeTemplateAudioMixArgs]] = None,
ci_media_transcode_template_id: Optional[str] = None,
name: Optional[str] = None,
time_interval: Optional[CiMediaTranscodeTemplateTimeIntervalArgs] = None,
trans_config: Optional[CiMediaTranscodeTemplateTransConfigArgs] = None,
video: Optional[CiMediaTranscodeTemplateVideoArgs] = None)
func NewCiMediaTranscodeTemplate(ctx *Context, name string, args CiMediaTranscodeTemplateArgs, opts ...ResourceOption) (*CiMediaTranscodeTemplate, error)
public CiMediaTranscodeTemplate(string name, CiMediaTranscodeTemplateArgs args, CustomResourceOptions? opts = null)
public CiMediaTranscodeTemplate(String name, CiMediaTranscodeTemplateArgs args)
public CiMediaTranscodeTemplate(String name, CiMediaTranscodeTemplateArgs args, CustomResourceOptions options)
type: tencentcloud:CiMediaTranscodeTemplate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CiMediaTranscodeTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CiMediaTranscodeTemplateArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CiMediaTranscodeTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CiMediaTranscodeTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CiMediaTranscodeTemplateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CiMediaTranscodeTemplate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CiMediaTranscodeTemplate resource accepts the following input properties:
- Bucket string
- bucket name.
- Container
Ci
Media Transcode Template Container - container format.
- Audio
Ci
Media Transcode Template Audio - Audio information, do not transmit Audio, which is equivalent to deleting audio information.
- Audio
Mixes List<CiMedia Transcode Template Audio Mix> - mixing parameters.
- Ci
Media stringTranscode Template Id - ID of the resource.
- Name string
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
. - Time
Interval CiMedia Transcode Template Time Interval - time interval.
- Trans
Config CiMedia Transcode Template Trans Config - transcoding configuration.
- Video
Ci
Media Transcode Template Video - video information, do not upload Video, which is equivalent to deleting video information.
- Bucket string
- bucket name.
- Container
Ci
Media Transcode Template Container Args - container format.
- Audio
Ci
Media Transcode Template Audio Args - Audio information, do not transmit Audio, which is equivalent to deleting audio information.
- Audio
Mixes []CiMedia Transcode Template Audio Mix Args - mixing parameters.
- Ci
Media stringTranscode Template Id - ID of the resource.
- Name string
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
. - Time
Interval CiMedia Transcode Template Time Interval Args - time interval.
- Trans
Config CiMedia Transcode Template Trans Config Args - transcoding configuration.
- Video
Ci
Media Transcode Template Video Args - video information, do not upload Video, which is equivalent to deleting video information.
- bucket String
- bucket name.
- container
Ci
Media Transcode Template Container - container format.
- audio
Ci
Media Transcode Template Audio - Audio information, do not transmit Audio, which is equivalent to deleting audio information.
- audio
Mixes List<CiMedia Transcode Template Audio Mix> - mixing parameters.
- ci
Media StringTranscode Template Id - ID of the resource.
- name String
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
. - time
Interval CiMedia Transcode Template Time Interval - time interval.
- trans
Config CiMedia Transcode Template Trans Config - transcoding configuration.
- video
Ci
Media Transcode Template Video - video information, do not upload Video, which is equivalent to deleting video information.
- bucket string
- bucket name.
- container
Ci
Media Transcode Template Container - container format.
- audio
Ci
Media Transcode Template Audio - Audio information, do not transmit Audio, which is equivalent to deleting audio information.
- audio
Mixes CiMedia Transcode Template Audio Mix[] - mixing parameters.
- ci
Media stringTranscode Template Id - ID of the resource.
- name string
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
. - time
Interval CiMedia Transcode Template Time Interval - time interval.
- trans
Config CiMedia Transcode Template Trans Config - transcoding configuration.
- video
Ci
Media Transcode Template Video - video information, do not upload Video, which is equivalent to deleting video information.
- bucket str
- bucket name.
- container
Ci
Media Transcode Template Container Args - container format.
- audio
Ci
Media Transcode Template Audio Args - Audio information, do not transmit Audio, which is equivalent to deleting audio information.
- audio_
mixes Sequence[CiMedia Transcode Template Audio Mix Args] - mixing parameters.
- ci_
media_ strtranscode_ template_ id - ID of the resource.
- name str
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
. - time_
interval CiMedia Transcode Template Time Interval Args - time interval.
- trans_
config CiMedia Transcode Template Trans Config Args - transcoding configuration.
- video
Ci
Media Transcode Template Video Args - video information, do not upload Video, which is equivalent to deleting video information.
- bucket String
- bucket name.
- container Property Map
- container format.
- audio Property Map
- Audio information, do not transmit Audio, which is equivalent to deleting audio information.
- audio
Mixes List<Property Map> - mixing parameters.
- ci
Media StringTranscode Template Id - ID of the resource.
- name String
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
. - time
Interval Property Map - time interval.
- trans
Config Property Map - transcoding configuration.
- video Property Map
- video information, do not upload Video, which is equivalent to deleting video information.
Outputs
All input properties are implicitly available as output properties. Additionally, the CiMediaTranscodeTemplate resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CiMediaTranscodeTemplate Resource
Get an existing CiMediaTranscodeTemplate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CiMediaTranscodeTemplateState, opts?: CustomResourceOptions): CiMediaTranscodeTemplate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
audio: Optional[CiMediaTranscodeTemplateAudioArgs] = None,
audio_mixes: Optional[Sequence[CiMediaTranscodeTemplateAudioMixArgs]] = None,
bucket: Optional[str] = None,
ci_media_transcode_template_id: Optional[str] = None,
container: Optional[CiMediaTranscodeTemplateContainerArgs] = None,
name: Optional[str] = None,
time_interval: Optional[CiMediaTranscodeTemplateTimeIntervalArgs] = None,
trans_config: Optional[CiMediaTranscodeTemplateTransConfigArgs] = None,
video: Optional[CiMediaTranscodeTemplateVideoArgs] = None) -> CiMediaTranscodeTemplate
func GetCiMediaTranscodeTemplate(ctx *Context, name string, id IDInput, state *CiMediaTranscodeTemplateState, opts ...ResourceOption) (*CiMediaTranscodeTemplate, error)
public static CiMediaTranscodeTemplate Get(string name, Input<string> id, CiMediaTranscodeTemplateState? state, CustomResourceOptions? opts = null)
public static CiMediaTranscodeTemplate get(String name, Output<String> id, CiMediaTranscodeTemplateState state, CustomResourceOptions options)
resources: _: type: tencentcloud:CiMediaTranscodeTemplate get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Audio
Ci
Media Transcode Template Audio - Audio information, do not transmit Audio, which is equivalent to deleting audio information.
- Audio
Mixes List<CiMedia Transcode Template Audio Mix> - mixing parameters.
- Bucket string
- bucket name.
- Ci
Media stringTranscode Template Id - ID of the resource.
- Container
Ci
Media Transcode Template Container - container format.
- Name string
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
. - Time
Interval CiMedia Transcode Template Time Interval - time interval.
- Trans
Config CiMedia Transcode Template Trans Config - transcoding configuration.
- Video
Ci
Media Transcode Template Video - video information, do not upload Video, which is equivalent to deleting video information.
- Audio
Ci
Media Transcode Template Audio Args - Audio information, do not transmit Audio, which is equivalent to deleting audio information.
- Audio
Mixes []CiMedia Transcode Template Audio Mix Args - mixing parameters.
- Bucket string
- bucket name.
- Ci
Media stringTranscode Template Id - ID of the resource.
- Container
Ci
Media Transcode Template Container Args - container format.
- Name string
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
. - Time
Interval CiMedia Transcode Template Time Interval Args - time interval.
- Trans
Config CiMedia Transcode Template Trans Config Args - transcoding configuration.
- Video
Ci
Media Transcode Template Video Args - video information, do not upload Video, which is equivalent to deleting video information.
- audio
Ci
Media Transcode Template Audio - Audio information, do not transmit Audio, which is equivalent to deleting audio information.
- audio
Mixes List<CiMedia Transcode Template Audio Mix> - mixing parameters.
- bucket String
- bucket name.
- ci
Media StringTranscode Template Id - ID of the resource.
- container
Ci
Media Transcode Template Container - container format.
- name String
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
. - time
Interval CiMedia Transcode Template Time Interval - time interval.
- trans
Config CiMedia Transcode Template Trans Config - transcoding configuration.
- video
Ci
Media Transcode Template Video - video information, do not upload Video, which is equivalent to deleting video information.
- audio
Ci
Media Transcode Template Audio - Audio information, do not transmit Audio, which is equivalent to deleting audio information.
- audio
Mixes CiMedia Transcode Template Audio Mix[] - mixing parameters.
- bucket string
- bucket name.
- ci
Media stringTranscode Template Id - ID of the resource.
- container
Ci
Media Transcode Template Container - container format.
- name string
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
. - time
Interval CiMedia Transcode Template Time Interval - time interval.
- trans
Config CiMedia Transcode Template Trans Config - transcoding configuration.
- video
Ci
Media Transcode Template Video - video information, do not upload Video, which is equivalent to deleting video information.
- audio
Ci
Media Transcode Template Audio Args - Audio information, do not transmit Audio, which is equivalent to deleting audio information.
- audio_
mixes Sequence[CiMedia Transcode Template Audio Mix Args] - mixing parameters.
- bucket str
- bucket name.
- ci_
media_ strtranscode_ template_ id - ID of the resource.
- container
Ci
Media Transcode Template Container Args - container format.
- name str
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
. - time_
interval CiMedia Transcode Template Time Interval Args - time interval.
- trans_
config CiMedia Transcode Template Trans Config Args - transcoding configuration.
- video
Ci
Media Transcode Template Video Args - video information, do not upload Video, which is equivalent to deleting video information.
- audio Property Map
- Audio information, do not transmit Audio, which is equivalent to deleting audio information.
- audio
Mixes List<Property Map> - mixing parameters.
- bucket String
- bucket name.
- ci
Media StringTranscode Template Id - ID of the resource.
- container Property Map
- container format.
- name String
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
. - time
Interval Property Map - time interval.
- trans
Config Property Map - transcoding configuration.
- video Property Map
- video information, do not upload Video, which is equivalent to deleting video information.
Supporting Types
CiMediaTranscodeTemplateAudio, CiMediaTranscodeTemplateAudioArgs
- Bitrate string
- Original audio bit rate, unit: Kbps, Value range: [8, 1000].
- Channels string
- number of channels- When Codec is set to aac/flac, support 1, 2, 4, 5, 6, 8- When Codec is set to mp3/opus, support 1, 2- When Codec is set to Vorbis, only 2 is supported- When Codec is set to amr, only 1 is supported- When Codec is set to pcm_s16le, only 1 and 2 are supported- When the encapsulation format is dash, 8 is not supported.
- Codec string
- Codec format, value aac, mp3, flac, amr, Vorbis, opus, pcm_s16le.
- Keep
Two stringTracks - Keep dual audio tracks, the value is true, false. This parameter is invalid when Video.Codec is H.265.
- Remove string
- Whether to delete the source audio stream, the value is true, false.
- Sample
Format string - Sampling bit width- When Codec is set to aac, support fltp- When Codec is set to mp3, fltp, s16p, s32p are supported- When Codec is set to flac, s16, s32, s16p, s32p are supported- When Codec is set to amr, support s16, s16p- When Codec is set to opus, support s16- When Codec is set to pcm_s16le, support s16- When Codec is set to Vorbis, support fltp- This parameter is invalid when Video.Codec is H.265.
- Samplerate string
- Sampling Rate- Unit: Hz- Optional 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 88200, 96000- Different packages, mp3 supports different sampling rates, as shown in the table below- When Codec is set to amr, only 8000 is supported- When Codec is set to opus, it supports 8000, 16000, 24000, 48000.
- Switch
Track string - Convert track, the value is true, false. This parameter is invalid when Video.Codec is H.265.
- Bitrate string
- Original audio bit rate, unit: Kbps, Value range: [8, 1000].
- Channels string
- number of channels- When Codec is set to aac/flac, support 1, 2, 4, 5, 6, 8- When Codec is set to mp3/opus, support 1, 2- When Codec is set to Vorbis, only 2 is supported- When Codec is set to amr, only 1 is supported- When Codec is set to pcm_s16le, only 1 and 2 are supported- When the encapsulation format is dash, 8 is not supported.
- Codec string
- Codec format, value aac, mp3, flac, amr, Vorbis, opus, pcm_s16le.
- Keep
Two stringTracks - Keep dual audio tracks, the value is true, false. This parameter is invalid when Video.Codec is H.265.
- Remove string
- Whether to delete the source audio stream, the value is true, false.
- Sample
Format string - Sampling bit width- When Codec is set to aac, support fltp- When Codec is set to mp3, fltp, s16p, s32p are supported- When Codec is set to flac, s16, s32, s16p, s32p are supported- When Codec is set to amr, support s16, s16p- When Codec is set to opus, support s16- When Codec is set to pcm_s16le, support s16- When Codec is set to Vorbis, support fltp- This parameter is invalid when Video.Codec is H.265.
- Samplerate string
- Sampling Rate- Unit: Hz- Optional 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 88200, 96000- Different packages, mp3 supports different sampling rates, as shown in the table below- When Codec is set to amr, only 8000 is supported- When Codec is set to opus, it supports 8000, 16000, 24000, 48000.
- Switch
Track string - Convert track, the value is true, false. This parameter is invalid when Video.Codec is H.265.
- bitrate String
- Original audio bit rate, unit: Kbps, Value range: [8, 1000].
- channels String
- number of channels- When Codec is set to aac/flac, support 1, 2, 4, 5, 6, 8- When Codec is set to mp3/opus, support 1, 2- When Codec is set to Vorbis, only 2 is supported- When Codec is set to amr, only 1 is supported- When Codec is set to pcm_s16le, only 1 and 2 are supported- When the encapsulation format is dash, 8 is not supported.
- codec String
- Codec format, value aac, mp3, flac, amr, Vorbis, opus, pcm_s16le.
- keep
Two StringTracks - Keep dual audio tracks, the value is true, false. This parameter is invalid when Video.Codec is H.265.
- remove String
- Whether to delete the source audio stream, the value is true, false.
- sample
Format String - Sampling bit width- When Codec is set to aac, support fltp- When Codec is set to mp3, fltp, s16p, s32p are supported- When Codec is set to flac, s16, s32, s16p, s32p are supported- When Codec is set to amr, support s16, s16p- When Codec is set to opus, support s16- When Codec is set to pcm_s16le, support s16- When Codec is set to Vorbis, support fltp- This parameter is invalid when Video.Codec is H.265.
- samplerate String
- Sampling Rate- Unit: Hz- Optional 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 88200, 96000- Different packages, mp3 supports different sampling rates, as shown in the table below- When Codec is set to amr, only 8000 is supported- When Codec is set to opus, it supports 8000, 16000, 24000, 48000.
- switch
Track String - Convert track, the value is true, false. This parameter is invalid when Video.Codec is H.265.
- bitrate string
- Original audio bit rate, unit: Kbps, Value range: [8, 1000].
- channels string
- number of channels- When Codec is set to aac/flac, support 1, 2, 4, 5, 6, 8- When Codec is set to mp3/opus, support 1, 2- When Codec is set to Vorbis, only 2 is supported- When Codec is set to amr, only 1 is supported- When Codec is set to pcm_s16le, only 1 and 2 are supported- When the encapsulation format is dash, 8 is not supported.
- codec string
- Codec format, value aac, mp3, flac, amr, Vorbis, opus, pcm_s16le.
- keep
Two stringTracks - Keep dual audio tracks, the value is true, false. This parameter is invalid when Video.Codec is H.265.
- remove string
- Whether to delete the source audio stream, the value is true, false.
- sample
Format string - Sampling bit width- When Codec is set to aac, support fltp- When Codec is set to mp3, fltp, s16p, s32p are supported- When Codec is set to flac, s16, s32, s16p, s32p are supported- When Codec is set to amr, support s16, s16p- When Codec is set to opus, support s16- When Codec is set to pcm_s16le, support s16- When Codec is set to Vorbis, support fltp- This parameter is invalid when Video.Codec is H.265.
- samplerate string
- Sampling Rate- Unit: Hz- Optional 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 88200, 96000- Different packages, mp3 supports different sampling rates, as shown in the table below- When Codec is set to amr, only 8000 is supported- When Codec is set to opus, it supports 8000, 16000, 24000, 48000.
- switch
Track string - Convert track, the value is true, false. This parameter is invalid when Video.Codec is H.265.
- bitrate str
- Original audio bit rate, unit: Kbps, Value range: [8, 1000].
- channels str
- number of channels- When Codec is set to aac/flac, support 1, 2, 4, 5, 6, 8- When Codec is set to mp3/opus, support 1, 2- When Codec is set to Vorbis, only 2 is supported- When Codec is set to amr, only 1 is supported- When Codec is set to pcm_s16le, only 1 and 2 are supported- When the encapsulation format is dash, 8 is not supported.
- codec str
- Codec format, value aac, mp3, flac, amr, Vorbis, opus, pcm_s16le.
- keep_
two_ strtracks - Keep dual audio tracks, the value is true, false. This parameter is invalid when Video.Codec is H.265.
- remove str
- Whether to delete the source audio stream, the value is true, false.
- sample_
format str - Sampling bit width- When Codec is set to aac, support fltp- When Codec is set to mp3, fltp, s16p, s32p are supported- When Codec is set to flac, s16, s32, s16p, s32p are supported- When Codec is set to amr, support s16, s16p- When Codec is set to opus, support s16- When Codec is set to pcm_s16le, support s16- When Codec is set to Vorbis, support fltp- This parameter is invalid when Video.Codec is H.265.
- samplerate str
- Sampling Rate- Unit: Hz- Optional 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 88200, 96000- Different packages, mp3 supports different sampling rates, as shown in the table below- When Codec is set to amr, only 8000 is supported- When Codec is set to opus, it supports 8000, 16000, 24000, 48000.
- switch_
track str - Convert track, the value is true, false. This parameter is invalid when Video.Codec is H.265.
- bitrate String
- Original audio bit rate, unit: Kbps, Value range: [8, 1000].
- channels String
- number of channels- When Codec is set to aac/flac, support 1, 2, 4, 5, 6, 8- When Codec is set to mp3/opus, support 1, 2- When Codec is set to Vorbis, only 2 is supported- When Codec is set to amr, only 1 is supported- When Codec is set to pcm_s16le, only 1 and 2 are supported- When the encapsulation format is dash, 8 is not supported.
- codec String
- Codec format, value aac, mp3, flac, amr, Vorbis, opus, pcm_s16le.
- keep
Two StringTracks - Keep dual audio tracks, the value is true, false. This parameter is invalid when Video.Codec is H.265.
- remove String
- Whether to delete the source audio stream, the value is true, false.
- sample
Format String - Sampling bit width- When Codec is set to aac, support fltp- When Codec is set to mp3, fltp, s16p, s32p are supported- When Codec is set to flac, s16, s32, s16p, s32p are supported- When Codec is set to amr, support s16, s16p- When Codec is set to opus, support s16- When Codec is set to pcm_s16le, support s16- When Codec is set to Vorbis, support fltp- This parameter is invalid when Video.Codec is H.265.
- samplerate String
- Sampling Rate- Unit: Hz- Optional 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 88200, 96000- Different packages, mp3 supports different sampling rates, as shown in the table below- When Codec is set to amr, only 8000 is supported- When Codec is set to opus, it supports 8000, 16000, 24000, 48000.
- switch
Track String - Convert track, the value is true, false. This parameter is invalid when Video.Codec is H.265.
CiMediaTranscodeTemplateAudioMix, CiMediaTranscodeTemplateAudioMixArgs
- Audio
Source string - The media address of the audio track that needs to be mixed.
- Effect
Config CiMedia Transcode Template Audio Mix Effect Config - Mix Fade Configuration.
- Mix
Mode string - Mixing mode Repeat: background sound loop, Once: The background sound is played once.
- Replace string
- Whether to replace the original audio of the Input media file with the mixed audio track media.
- Audio
Source string - The media address of the audio track that needs to be mixed.
- Effect
Config CiMedia Transcode Template Audio Mix Effect Config - Mix Fade Configuration.
- Mix
Mode string - Mixing mode Repeat: background sound loop, Once: The background sound is played once.
- Replace string
- Whether to replace the original audio of the Input media file with the mixed audio track media.
- audio
Source String - The media address of the audio track that needs to be mixed.
- effect
Config CiMedia Transcode Template Audio Mix Effect Config - Mix Fade Configuration.
- mix
Mode String - Mixing mode Repeat: background sound loop, Once: The background sound is played once.
- replace String
- Whether to replace the original audio of the Input media file with the mixed audio track media.
- audio
Source string - The media address of the audio track that needs to be mixed.
- effect
Config CiMedia Transcode Template Audio Mix Effect Config - Mix Fade Configuration.
- mix
Mode string - Mixing mode Repeat: background sound loop, Once: The background sound is played once.
- replace string
- Whether to replace the original audio of the Input media file with the mixed audio track media.
- audio_
source str - The media address of the audio track that needs to be mixed.
- effect_
config CiMedia Transcode Template Audio Mix Effect Config - Mix Fade Configuration.
- mix_
mode str - Mixing mode Repeat: background sound loop, Once: The background sound is played once.
- replace str
- Whether to replace the original audio of the Input media file with the mixed audio track media.
- audio
Source String - The media address of the audio track that needs to be mixed.
- effect
Config Property Map - Mix Fade Configuration.
- mix
Mode String - Mixing mode Repeat: background sound loop, Once: The background sound is played once.
- replace String
- Whether to replace the original audio of the Input media file with the mixed audio track media.
CiMediaTranscodeTemplateAudioMixEffectConfig, CiMediaTranscodeTemplateAudioMixEffectConfigArgs
- Bgm
Fade stringTime - bgm transition fade-in duration, support floating point numbers.
- Enable
Bgm stringFade - Enable bgm conversion fade in.
- Enable
End stringFadeout - enable fade out.
- Enable
Start stringFadein - enable fade in.
- End
Fadeout stringTime - fade out time, greater than 0, support floating point numbers.
- Start
Fadein stringTime - Fade in duration, greater than 0, support floating point numbers.
- Bgm
Fade stringTime - bgm transition fade-in duration, support floating point numbers.
- Enable
Bgm stringFade - Enable bgm conversion fade in.
- Enable
End stringFadeout - enable fade out.
- Enable
Start stringFadein - enable fade in.
- End
Fadeout stringTime - fade out time, greater than 0, support floating point numbers.
- Start
Fadein stringTime - Fade in duration, greater than 0, support floating point numbers.
- bgm
Fade StringTime - bgm transition fade-in duration, support floating point numbers.
- enable
Bgm StringFade - Enable bgm conversion fade in.
- enable
End StringFadeout - enable fade out.
- enable
Start StringFadein - enable fade in.
- end
Fadeout StringTime - fade out time, greater than 0, support floating point numbers.
- start
Fadein StringTime - Fade in duration, greater than 0, support floating point numbers.
- bgm
Fade stringTime - bgm transition fade-in duration, support floating point numbers.
- enable
Bgm stringFade - Enable bgm conversion fade in.
- enable
End stringFadeout - enable fade out.
- enable
Start stringFadein - enable fade in.
- end
Fadeout stringTime - fade out time, greater than 0, support floating point numbers.
- start
Fadein stringTime - Fade in duration, greater than 0, support floating point numbers.
- bgm_
fade_ strtime - bgm transition fade-in duration, support floating point numbers.
- enable_
bgm_ strfade - Enable bgm conversion fade in.
- enable_
end_ strfadeout - enable fade out.
- enable_
start_ strfadein - enable fade in.
- end_
fadeout_ strtime - fade out time, greater than 0, support floating point numbers.
- start_
fadein_ strtime - Fade in duration, greater than 0, support floating point numbers.
- bgm
Fade StringTime - bgm transition fade-in duration, support floating point numbers.
- enable
Bgm StringFade - Enable bgm conversion fade in.
- enable
End StringFadeout - enable fade out.
- enable
Start StringFadein - enable fade in.
- end
Fadeout StringTime - fade out time, greater than 0, support floating point numbers.
- start
Fadein StringTime - Fade in duration, greater than 0, support floating point numbers.
CiMediaTranscodeTemplateContainer, CiMediaTranscodeTemplateContainerArgs
- Format string
- Package format.
- Clip
Config CiMedia Transcode Template Container Clip Config - Fragment configuration, valid when format is hls and dash.
- Format string
- Package format.
- Clip
Config CiMedia Transcode Template Container Clip Config - Fragment configuration, valid when format is hls and dash.
- format String
- Package format.
- clip
Config CiMedia Transcode Template Container Clip Config - Fragment configuration, valid when format is hls and dash.
- format string
- Package format.
- clip
Config CiMedia Transcode Template Container Clip Config - Fragment configuration, valid when format is hls and dash.
- format str
- Package format.
- clip_
config CiMedia Transcode Template Container Clip Config - Fragment configuration, valid when format is hls and dash.
- format String
- Package format.
- clip
Config Property Map - Fragment configuration, valid when format is hls and dash.
CiMediaTranscodeTemplateContainerClipConfig, CiMediaTranscodeTemplateContainerClipConfigArgs
- Duration string
- Fragmentation duration, default 5s.
- Duration string
- Fragmentation duration, default 5s.
- duration String
- Fragmentation duration, default 5s.
- duration string
- Fragmentation duration, default 5s.
- duration str
- Fragmentation duration, default 5s.
- duration String
- Fragmentation duration, default 5s.
CiMediaTranscodeTemplateTimeInterval, CiMediaTranscodeTemplateTimeIntervalArgs
CiMediaTranscodeTemplateTransConfig, CiMediaTranscodeTemplateTransConfigArgs
- Adj
Dar stringMethod - Resolution adjustment method, value scale, crop, pad, none, When the aspect ratio of the output video is different from the original video, adjust the resolution accordingly according to this parameter.
- Audio
Bitrate stringAdj Method - Audio bit rate adjustment mode, value 0, 1; when the output audio bit rate is greater than the original audio bit rate, 0 means use the original audio bit rate; 1 means return transcoding failed, Take effect when IsCheckAudioBitrate is true.
- Delete
Metadata string - Whether to delete the MetaData information in the file, true, false, When false, keep source file information.
- Hls
Encrypt CiMedia Transcode Template Trans Config Hls Encrypt - hls encryption configuration.
- Is
Check stringAudio Bitrate - Whether to check the audio code rate, true, false, When false, transcode according to configuration parameters.
- Is
Check stringReso - Whether to check the resolution, when it is false, transcode according to the configuration parameters.
- Is
Check stringVideo Bitrate - Whether to check the video code rate, when it is false, transcode according to the configuration parameters.
- Is
Hdr2Sdr string - Whether to enable HDR to SDR true, false.
- Reso
Adj stringMethod - Resolution adjustment mode, value 0, 1; 0 means use the original video resolution; 1 means return transcoding failed, Take effect when IsCheckReso is true.
- Video
Bitrate stringAdj Method - Video bit rate adjustment method, value 0, 1; when the output video bit rate is greater than the original video bit rate, 0 means use the original video bit rate; 1 means return transcoding failed, Take effect when IsCheckVideoBitrate is true.
- Adj
Dar stringMethod - Resolution adjustment method, value scale, crop, pad, none, When the aspect ratio of the output video is different from the original video, adjust the resolution accordingly according to this parameter.
- Audio
Bitrate stringAdj Method - Audio bit rate adjustment mode, value 0, 1; when the output audio bit rate is greater than the original audio bit rate, 0 means use the original audio bit rate; 1 means return transcoding failed, Take effect when IsCheckAudioBitrate is true.
- Delete
Metadata string - Whether to delete the MetaData information in the file, true, false, When false, keep source file information.
- Hls
Encrypt CiMedia Transcode Template Trans Config Hls Encrypt - hls encryption configuration.
- Is
Check stringAudio Bitrate - Whether to check the audio code rate, true, false, When false, transcode according to configuration parameters.
- Is
Check stringReso - Whether to check the resolution, when it is false, transcode according to the configuration parameters.
- Is
Check stringVideo Bitrate - Whether to check the video code rate, when it is false, transcode according to the configuration parameters.
- Is
Hdr2Sdr string - Whether to enable HDR to SDR true, false.
- Reso
Adj stringMethod - Resolution adjustment mode, value 0, 1; 0 means use the original video resolution; 1 means return transcoding failed, Take effect when IsCheckReso is true.
- Video
Bitrate stringAdj Method - Video bit rate adjustment method, value 0, 1; when the output video bit rate is greater than the original video bit rate, 0 means use the original video bit rate; 1 means return transcoding failed, Take effect when IsCheckVideoBitrate is true.
- adj
Dar StringMethod - Resolution adjustment method, value scale, crop, pad, none, When the aspect ratio of the output video is different from the original video, adjust the resolution accordingly according to this parameter.
- audio
Bitrate StringAdj Method - Audio bit rate adjustment mode, value 0, 1; when the output audio bit rate is greater than the original audio bit rate, 0 means use the original audio bit rate; 1 means return transcoding failed, Take effect when IsCheckAudioBitrate is true.
- delete
Metadata String - Whether to delete the MetaData information in the file, true, false, When false, keep source file information.
- hls
Encrypt CiMedia Transcode Template Trans Config Hls Encrypt - hls encryption configuration.
- is
Check StringAudio Bitrate - Whether to check the audio code rate, true, false, When false, transcode according to configuration parameters.
- is
Check StringReso - Whether to check the resolution, when it is false, transcode according to the configuration parameters.
- is
Check StringVideo Bitrate - Whether to check the video code rate, when it is false, transcode according to the configuration parameters.
- is
Hdr2Sdr String - Whether to enable HDR to SDR true, false.
- reso
Adj StringMethod - Resolution adjustment mode, value 0, 1; 0 means use the original video resolution; 1 means return transcoding failed, Take effect when IsCheckReso is true.
- video
Bitrate StringAdj Method - Video bit rate adjustment method, value 0, 1; when the output video bit rate is greater than the original video bit rate, 0 means use the original video bit rate; 1 means return transcoding failed, Take effect when IsCheckVideoBitrate is true.
- adj
Dar stringMethod - Resolution adjustment method, value scale, crop, pad, none, When the aspect ratio of the output video is different from the original video, adjust the resolution accordingly according to this parameter.
- audio
Bitrate stringAdj Method - Audio bit rate adjustment mode, value 0, 1; when the output audio bit rate is greater than the original audio bit rate, 0 means use the original audio bit rate; 1 means return transcoding failed, Take effect when IsCheckAudioBitrate is true.
- delete
Metadata string - Whether to delete the MetaData information in the file, true, false, When false, keep source file information.
- hls
Encrypt CiMedia Transcode Template Trans Config Hls Encrypt - hls encryption configuration.
- is
Check stringAudio Bitrate - Whether to check the audio code rate, true, false, When false, transcode according to configuration parameters.
- is
Check stringReso - Whether to check the resolution, when it is false, transcode according to the configuration parameters.
- is
Check stringVideo Bitrate - Whether to check the video code rate, when it is false, transcode according to the configuration parameters.
- is
Hdr2Sdr string - Whether to enable HDR to SDR true, false.
- reso
Adj stringMethod - Resolution adjustment mode, value 0, 1; 0 means use the original video resolution; 1 means return transcoding failed, Take effect when IsCheckReso is true.
- video
Bitrate stringAdj Method - Video bit rate adjustment method, value 0, 1; when the output video bit rate is greater than the original video bit rate, 0 means use the original video bit rate; 1 means return transcoding failed, Take effect when IsCheckVideoBitrate is true.
- adj_
dar_ strmethod - Resolution adjustment method, value scale, crop, pad, none, When the aspect ratio of the output video is different from the original video, adjust the resolution accordingly according to this parameter.
- audio_
bitrate_ stradj_ method - Audio bit rate adjustment mode, value 0, 1; when the output audio bit rate is greater than the original audio bit rate, 0 means use the original audio bit rate; 1 means return transcoding failed, Take effect when IsCheckAudioBitrate is true.
- delete_
metadata str - Whether to delete the MetaData information in the file, true, false, When false, keep source file information.
- hls_
encrypt CiMedia Transcode Template Trans Config Hls Encrypt - hls encryption configuration.
- is_
check_ straudio_ bitrate - Whether to check the audio code rate, true, false, When false, transcode according to configuration parameters.
- is_
check_ strreso - Whether to check the resolution, when it is false, transcode according to the configuration parameters.
- is_
check_ strvideo_ bitrate - Whether to check the video code rate, when it is false, transcode according to the configuration parameters.
- is_
hdr2_ strsdr - Whether to enable HDR to SDR true, false.
- reso_
adj_ strmethod - Resolution adjustment mode, value 0, 1; 0 means use the original video resolution; 1 means return transcoding failed, Take effect when IsCheckReso is true.
- video_
bitrate_ stradj_ method - Video bit rate adjustment method, value 0, 1; when the output video bit rate is greater than the original video bit rate, 0 means use the original video bit rate; 1 means return transcoding failed, Take effect when IsCheckVideoBitrate is true.
- adj
Dar StringMethod - Resolution adjustment method, value scale, crop, pad, none, When the aspect ratio of the output video is different from the original video, adjust the resolution accordingly according to this parameter.
- audio
Bitrate StringAdj Method - Audio bit rate adjustment mode, value 0, 1; when the output audio bit rate is greater than the original audio bit rate, 0 means use the original audio bit rate; 1 means return transcoding failed, Take effect when IsCheckAudioBitrate is true.
- delete
Metadata String - Whether to delete the MetaData information in the file, true, false, When false, keep source file information.
- hls
Encrypt Property Map - hls encryption configuration.
- is
Check StringAudio Bitrate - Whether to check the audio code rate, true, false, When false, transcode according to configuration parameters.
- is
Check StringReso - Whether to check the resolution, when it is false, transcode according to the configuration parameters.
- is
Check StringVideo Bitrate - Whether to check the video code rate, when it is false, transcode according to the configuration parameters.
- is
Hdr2Sdr String - Whether to enable HDR to SDR true, false.
- reso
Adj StringMethod - Resolution adjustment mode, value 0, 1; 0 means use the original video resolution; 1 means return transcoding failed, Take effect when IsCheckReso is true.
- video
Bitrate StringAdj Method - Video bit rate adjustment method, value 0, 1; when the output video bit rate is greater than the original video bit rate, 0 means use the original video bit rate; 1 means return transcoding failed, Take effect when IsCheckVideoBitrate is true.
CiMediaTranscodeTemplateTransConfigHlsEncrypt, CiMediaTranscodeTemplateTransConfigHlsEncryptArgs
- Is
Hls stringEncrypt - Whether to enable HLS encryption, support encryption when Container.Format is hls.
- Uri
Key string - HLS encrypted key, this parameter is only meaningful when IsHlsEncrypt is true.
- Is
Hls stringEncrypt - Whether to enable HLS encryption, support encryption when Container.Format is hls.
- Uri
Key string - HLS encrypted key, this parameter is only meaningful when IsHlsEncrypt is true.
- is
Hls StringEncrypt - Whether to enable HLS encryption, support encryption when Container.Format is hls.
- uri
Key String - HLS encrypted key, this parameter is only meaningful when IsHlsEncrypt is true.
- is
Hls stringEncrypt - Whether to enable HLS encryption, support encryption when Container.Format is hls.
- uri
Key string - HLS encrypted key, this parameter is only meaningful when IsHlsEncrypt is true.
- is_
hls_ strencrypt - Whether to enable HLS encryption, support encryption when Container.Format is hls.
- uri_
key str - HLS encrypted key, this parameter is only meaningful when IsHlsEncrypt is true.
- is
Hls StringEncrypt - Whether to enable HLS encryption, support encryption when Container.Format is hls.
- uri
Key String - HLS encrypted key, this parameter is only meaningful when IsHlsEncrypt is true.
CiMediaTranscodeTemplateVideo, CiMediaTranscodeTemplateVideoArgs
- Bitrate string
- Bit rate of video output file, value range: [10, 50000], unit: Kbps, auto means adaptive bit rate.
- Bufsize string
- buffer size, Value range: [1000, 128000], Unit: Kb, This parameter is not supported when Codec is VP8/VP9.
- Codec string
- Codec format, default value:
H.264
, when format is WebM, it is VP8, value range:H.264
,H.265
,VP8
,VP9
,AV1
. - Crf string
- Bit rate-quality control factor, value range: (0, 51], If Crf is set, the setting of Bitrate will be invalid, When Bitrate is empty, the default is 25.
- Fps string
- Frame rate, value range: (0, 60], Unit: fps.
- Gop string
- The maximum number of frames between key frames, value range: [1, 100000].
- Height string
- High, value range: [128, 4096], Unit: px, If only Height is set, Width is calculated according to the original ratio of the video, must be even.
- Long
Short stringMode - Adaptive length,true, false, This parameter is not supported when Codec is VP8/VP9/AV1.
- Maxrate string
- Peak video bit rate, Value range: [10, 50000], Unit: Kbps, This parameter is not supported when Codec is VP8/VP9.
- Pixfmt string
- video color format, H.264 support: yuv420p, yuv422p, yuv444p, yuvj420p, yuvj422p, yuvj444p, auto, H.265 support: yuv420p, yuv420p10le, auto, This parameter is not supported when Codec is VP8/VP9/AV1.
- Preset string
- Video Algorithm Presets- H.264 supports this parameter, the values are veryfast, fast, medium, slow, slower- VP8 supports this parameter, the value is good, realtime- AV1 supports this parameter, the value is 5 (recommended value), 4- H.265 and VP9 do not support this parameter.
- Profile string
- encoding level, Support baseline, main, high, auto- When Pixfmt is auto, this parameter can only be set to auto, when it is set to other options, the parameter value will be set to auto- baseline: suitable for mobile devices- main: suitable for standard resolution devices- high: suitable for high-resolution devices- Only H.264 supports this parameter.
- Remove string
- Whether to delete the video stream, true, false.
- Rotate string
- Rotation angle, Value range: [0, 360), Unit: degree.
- Width string
- width, value range: [128, 4096], Unit: px, If only Width is set, Height is calculated according to the original ratio of the video, must be even.
- Bitrate string
- Bit rate of video output file, value range: [10, 50000], unit: Kbps, auto means adaptive bit rate.
- Bufsize string
- buffer size, Value range: [1000, 128000], Unit: Kb, This parameter is not supported when Codec is VP8/VP9.
- Codec string
- Codec format, default value:
H.264
, when format is WebM, it is VP8, value range:H.264
,H.265
,VP8
,VP9
,AV1
. - Crf string
- Bit rate-quality control factor, value range: (0, 51], If Crf is set, the setting of Bitrate will be invalid, When Bitrate is empty, the default is 25.
- Fps string
- Frame rate, value range: (0, 60], Unit: fps.
- Gop string
- The maximum number of frames between key frames, value range: [1, 100000].
- Height string
- High, value range: [128, 4096], Unit: px, If only Height is set, Width is calculated according to the original ratio of the video, must be even.
- Long
Short stringMode - Adaptive length,true, false, This parameter is not supported when Codec is VP8/VP9/AV1.
- Maxrate string
- Peak video bit rate, Value range: [10, 50000], Unit: Kbps, This parameter is not supported when Codec is VP8/VP9.
- Pixfmt string
- video color format, H.264 support: yuv420p, yuv422p, yuv444p, yuvj420p, yuvj422p, yuvj444p, auto, H.265 support: yuv420p, yuv420p10le, auto, This parameter is not supported when Codec is VP8/VP9/AV1.
- Preset string
- Video Algorithm Presets- H.264 supports this parameter, the values are veryfast, fast, medium, slow, slower- VP8 supports this parameter, the value is good, realtime- AV1 supports this parameter, the value is 5 (recommended value), 4- H.265 and VP9 do not support this parameter.
- Profile string
- encoding level, Support baseline, main, high, auto- When Pixfmt is auto, this parameter can only be set to auto, when it is set to other options, the parameter value will be set to auto- baseline: suitable for mobile devices- main: suitable for standard resolution devices- high: suitable for high-resolution devices- Only H.264 supports this parameter.
- Remove string
- Whether to delete the video stream, true, false.
- Rotate string
- Rotation angle, Value range: [0, 360), Unit: degree.
- Width string
- width, value range: [128, 4096], Unit: px, If only Width is set, Height is calculated according to the original ratio of the video, must be even.
- bitrate String
- Bit rate of video output file, value range: [10, 50000], unit: Kbps, auto means adaptive bit rate.
- bufsize String
- buffer size, Value range: [1000, 128000], Unit: Kb, This parameter is not supported when Codec is VP8/VP9.
- codec String
- Codec format, default value:
H.264
, when format is WebM, it is VP8, value range:H.264
,H.265
,VP8
,VP9
,AV1
. - crf String
- Bit rate-quality control factor, value range: (0, 51], If Crf is set, the setting of Bitrate will be invalid, When Bitrate is empty, the default is 25.
- fps String
- Frame rate, value range: (0, 60], Unit: fps.
- gop String
- The maximum number of frames between key frames, value range: [1, 100000].
- height String
- High, value range: [128, 4096], Unit: px, If only Height is set, Width is calculated according to the original ratio of the video, must be even.
- long
Short StringMode - Adaptive length,true, false, This parameter is not supported when Codec is VP8/VP9/AV1.
- maxrate String
- Peak video bit rate, Value range: [10, 50000], Unit: Kbps, This parameter is not supported when Codec is VP8/VP9.
- pixfmt String
- video color format, H.264 support: yuv420p, yuv422p, yuv444p, yuvj420p, yuvj422p, yuvj444p, auto, H.265 support: yuv420p, yuv420p10le, auto, This parameter is not supported when Codec is VP8/VP9/AV1.
- preset String
- Video Algorithm Presets- H.264 supports this parameter, the values are veryfast, fast, medium, slow, slower- VP8 supports this parameter, the value is good, realtime- AV1 supports this parameter, the value is 5 (recommended value), 4- H.265 and VP9 do not support this parameter.
- profile String
- encoding level, Support baseline, main, high, auto- When Pixfmt is auto, this parameter can only be set to auto, when it is set to other options, the parameter value will be set to auto- baseline: suitable for mobile devices- main: suitable for standard resolution devices- high: suitable for high-resolution devices- Only H.264 supports this parameter.
- remove String
- Whether to delete the video stream, true, false.
- rotate String
- Rotation angle, Value range: [0, 360), Unit: degree.
- width String
- width, value range: [128, 4096], Unit: px, If only Width is set, Height is calculated according to the original ratio of the video, must be even.
- bitrate string
- Bit rate of video output file, value range: [10, 50000], unit: Kbps, auto means adaptive bit rate.
- bufsize string
- buffer size, Value range: [1000, 128000], Unit: Kb, This parameter is not supported when Codec is VP8/VP9.
- codec string
- Codec format, default value:
H.264
, when format is WebM, it is VP8, value range:H.264
,H.265
,VP8
,VP9
,AV1
. - crf string
- Bit rate-quality control factor, value range: (0, 51], If Crf is set, the setting of Bitrate will be invalid, When Bitrate is empty, the default is 25.
- fps string
- Frame rate, value range: (0, 60], Unit: fps.
- gop string
- The maximum number of frames between key frames, value range: [1, 100000].
- height string
- High, value range: [128, 4096], Unit: px, If only Height is set, Width is calculated according to the original ratio of the video, must be even.
- long
Short stringMode - Adaptive length,true, false, This parameter is not supported when Codec is VP8/VP9/AV1.
- maxrate string
- Peak video bit rate, Value range: [10, 50000], Unit: Kbps, This parameter is not supported when Codec is VP8/VP9.
- pixfmt string
- video color format, H.264 support: yuv420p, yuv422p, yuv444p, yuvj420p, yuvj422p, yuvj444p, auto, H.265 support: yuv420p, yuv420p10le, auto, This parameter is not supported when Codec is VP8/VP9/AV1.
- preset string
- Video Algorithm Presets- H.264 supports this parameter, the values are veryfast, fast, medium, slow, slower- VP8 supports this parameter, the value is good, realtime- AV1 supports this parameter, the value is 5 (recommended value), 4- H.265 and VP9 do not support this parameter.
- profile string
- encoding level, Support baseline, main, high, auto- When Pixfmt is auto, this parameter can only be set to auto, when it is set to other options, the parameter value will be set to auto- baseline: suitable for mobile devices- main: suitable for standard resolution devices- high: suitable for high-resolution devices- Only H.264 supports this parameter.
- remove string
- Whether to delete the video stream, true, false.
- rotate string
- Rotation angle, Value range: [0, 360), Unit: degree.
- width string
- width, value range: [128, 4096], Unit: px, If only Width is set, Height is calculated according to the original ratio of the video, must be even.
- bitrate str
- Bit rate of video output file, value range: [10, 50000], unit: Kbps, auto means adaptive bit rate.
- bufsize str
- buffer size, Value range: [1000, 128000], Unit: Kb, This parameter is not supported when Codec is VP8/VP9.
- codec str
- Codec format, default value:
H.264
, when format is WebM, it is VP8, value range:H.264
,H.265
,VP8
,VP9
,AV1
. - crf str
- Bit rate-quality control factor, value range: (0, 51], If Crf is set, the setting of Bitrate will be invalid, When Bitrate is empty, the default is 25.
- fps str
- Frame rate, value range: (0, 60], Unit: fps.
- gop str
- The maximum number of frames between key frames, value range: [1, 100000].
- height str
- High, value range: [128, 4096], Unit: px, If only Height is set, Width is calculated according to the original ratio of the video, must be even.
- long_
short_ strmode - Adaptive length,true, false, This parameter is not supported when Codec is VP8/VP9/AV1.
- maxrate str
- Peak video bit rate, Value range: [10, 50000], Unit: Kbps, This parameter is not supported when Codec is VP8/VP9.
- pixfmt str
- video color format, H.264 support: yuv420p, yuv422p, yuv444p, yuvj420p, yuvj422p, yuvj444p, auto, H.265 support: yuv420p, yuv420p10le, auto, This parameter is not supported when Codec is VP8/VP9/AV1.
- preset str
- Video Algorithm Presets- H.264 supports this parameter, the values are veryfast, fast, medium, slow, slower- VP8 supports this parameter, the value is good, realtime- AV1 supports this parameter, the value is 5 (recommended value), 4- H.265 and VP9 do not support this parameter.
- profile str
- encoding level, Support baseline, main, high, auto- When Pixfmt is auto, this parameter can only be set to auto, when it is set to other options, the parameter value will be set to auto- baseline: suitable for mobile devices- main: suitable for standard resolution devices- high: suitable for high-resolution devices- Only H.264 supports this parameter.
- remove str
- Whether to delete the video stream, true, false.
- rotate str
- Rotation angle, Value range: [0, 360), Unit: degree.
- width str
- width, value range: [128, 4096], Unit: px, If only Width is set, Height is calculated according to the original ratio of the video, must be even.
- bitrate String
- Bit rate of video output file, value range: [10, 50000], unit: Kbps, auto means adaptive bit rate.
- bufsize String
- buffer size, Value range: [1000, 128000], Unit: Kb, This parameter is not supported when Codec is VP8/VP9.
- codec String
- Codec format, default value:
H.264
, when format is WebM, it is VP8, value range:H.264
,H.265
,VP8
,VP9
,AV1
. - crf String
- Bit rate-quality control factor, value range: (0, 51], If Crf is set, the setting of Bitrate will be invalid, When Bitrate is empty, the default is 25.
- fps String
- Frame rate, value range: (0, 60], Unit: fps.
- gop String
- The maximum number of frames between key frames, value range: [1, 100000].
- height String
- High, value range: [128, 4096], Unit: px, If only Height is set, Width is calculated according to the original ratio of the video, must be even.
- long
Short StringMode - Adaptive length,true, false, This parameter is not supported when Codec is VP8/VP9/AV1.
- maxrate String
- Peak video bit rate, Value range: [10, 50000], Unit: Kbps, This parameter is not supported when Codec is VP8/VP9.
- pixfmt String
- video color format, H.264 support: yuv420p, yuv422p, yuv444p, yuvj420p, yuvj422p, yuvj444p, auto, H.265 support: yuv420p, yuv420p10le, auto, This parameter is not supported when Codec is VP8/VP9/AV1.
- preset String
- Video Algorithm Presets- H.264 supports this parameter, the values are veryfast, fast, medium, slow, slower- VP8 supports this parameter, the value is good, realtime- AV1 supports this parameter, the value is 5 (recommended value), 4- H.265 and VP9 do not support this parameter.
- profile String
- encoding level, Support baseline, main, high, auto- When Pixfmt is auto, this parameter can only be set to auto, when it is set to other options, the parameter value will be set to auto- baseline: suitable for mobile devices- main: suitable for standard resolution devices- high: suitable for high-resolution devices- Only H.264 supports this parameter.
- remove String
- Whether to delete the video stream, true, false.
- rotate String
- Rotation angle, Value range: [0, 360), Unit: degree.
- width String
- width, value range: [128, 4096], Unit: px, If only Width is set, Height is calculated according to the original ratio of the video, must be even.
Import
ci media_transcode_template can be imported using the bucket#templateId, e.g.
$ pulumi import tencentcloud:index/ciMediaTranscodeTemplate:CiMediaTranscodeTemplate media_transcode_template media_transcode_template_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.