tencentcloud.CiMediaConcatTemplate
Explore with Pulumi AI
Provides a resource to create a ci media_concat_template
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const mediaConcatTemplate = new tencentcloud.CiMediaConcatTemplate("mediaConcatTemplate", {
bucket: "terraform-ci-xxxxxx",
concatTemplate: {
audio: {
bitrate: "",
channels: "",
codec: "mp3",
samplerate: "",
},
audioMixes: [{
audioSource: "https://terraform-ci-xxxxxx.cos.ap-guangzhou.myqcloud.com/mp3%2Fnizhan-test.mp3",
effectConfig: {
bgmFadeTime: "1.7",
enableBgmFade: "true",
enableEndFadeout: "false",
enableStartFadein: "true",
endFadeoutTime: "0.1",
startFadeinTime: "3",
},
mixMode: "Once",
replace: "true",
}],
concatFragments: [
{
mode: "Start",
url: "https://terraform-ci-xxxxxx.cos.ap-guangzhou.myqcloud.com/mp4%2Fmp4-test.mp4",
},
{
mode: "End",
url: "https://terraform-ci-xxxxxx.cos.ap-guangzhou.myqcloud.com/mp4%2Fmp4-test.mp4",
},
],
container: {
format: "mp4",
},
video: {
bitrate: "1000",
codec: "H.264",
crf: "",
fps: "25",
height: "",
remove: "",
rotate: "",
width: "1280",
},
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
media_concat_template = tencentcloud.CiMediaConcatTemplate("mediaConcatTemplate",
bucket="terraform-ci-xxxxxx",
concat_template={
"audio": {
"bitrate": "",
"channels": "",
"codec": "mp3",
"samplerate": "",
},
"audio_mixes": [{
"audio_source": "https://terraform-ci-xxxxxx.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.1",
"start_fadein_time": "3",
},
"mix_mode": "Once",
"replace": "true",
}],
"concat_fragments": [
{
"mode": "Start",
"url": "https://terraform-ci-xxxxxx.cos.ap-guangzhou.myqcloud.com/mp4%2Fmp4-test.mp4",
},
{
"mode": "End",
"url": "https://terraform-ci-xxxxxx.cos.ap-guangzhou.myqcloud.com/mp4%2Fmp4-test.mp4",
},
],
"container": {
"format": "mp4",
},
"video": {
"bitrate": "1000",
"codec": "H.264",
"crf": "",
"fps": "25",
"height": "",
"remove": "",
"rotate": "",
"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.NewCiMediaConcatTemplate(ctx, "mediaConcatTemplate", &tencentcloud.CiMediaConcatTemplateArgs{
Bucket: pulumi.String("terraform-ci-xxxxxx"),
ConcatTemplate: &tencentcloud.CiMediaConcatTemplateConcatTemplateArgs{
Audio: &tencentcloud.CiMediaConcatTemplateConcatTemplateAudioArgs{
Bitrate: pulumi.String(""),
Channels: pulumi.String(""),
Codec: pulumi.String("mp3"),
Samplerate: pulumi.String(""),
},
AudioMixes: tencentcloud.CiMediaConcatTemplateConcatTemplateAudioMixArray{
&tencentcloud.CiMediaConcatTemplateConcatTemplateAudioMixArgs{
AudioSource: pulumi.String("https://terraform-ci-xxxxxx.cos.ap-guangzhou.myqcloud.com/mp3%2Fnizhan-test.mp3"),
EffectConfig: &tencentcloud.CiMediaConcatTemplateConcatTemplateAudioMixEffectConfigArgs{
BgmFadeTime: pulumi.String("1.7"),
EnableBgmFade: pulumi.String("true"),
EnableEndFadeout: pulumi.String("false"),
EnableStartFadein: pulumi.String("true"),
EndFadeoutTime: pulumi.String("0.1"),
StartFadeinTime: pulumi.String("3"),
},
MixMode: pulumi.String("Once"),
Replace: pulumi.String("true"),
},
},
ConcatFragments: tencentcloud.CiMediaConcatTemplateConcatTemplateConcatFragmentArray{
&tencentcloud.CiMediaConcatTemplateConcatTemplateConcatFragmentArgs{
Mode: pulumi.String("Start"),
Url: pulumi.String("https://terraform-ci-xxxxxx.cos.ap-guangzhou.myqcloud.com/mp4%2Fmp4-test.mp4"),
},
&tencentcloud.CiMediaConcatTemplateConcatTemplateConcatFragmentArgs{
Mode: pulumi.String("End"),
Url: pulumi.String("https://terraform-ci-xxxxxx.cos.ap-guangzhou.myqcloud.com/mp4%2Fmp4-test.mp4"),
},
},
Container: &tencentcloud.CiMediaConcatTemplateConcatTemplateContainerArgs{
Format: pulumi.String("mp4"),
},
Video: &tencentcloud.CiMediaConcatTemplateConcatTemplateVideoArgs{
Bitrate: pulumi.String("1000"),
Codec: pulumi.String("H.264"),
Crf: pulumi.String(""),
Fps: pulumi.String("25"),
Height: pulumi.String(""),
Remove: pulumi.String(""),
Rotate: pulumi.String(""),
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 mediaConcatTemplate = new Tencentcloud.CiMediaConcatTemplate("mediaConcatTemplate", new()
{
Bucket = "terraform-ci-xxxxxx",
ConcatTemplate = new Tencentcloud.Inputs.CiMediaConcatTemplateConcatTemplateArgs
{
Audio = new Tencentcloud.Inputs.CiMediaConcatTemplateConcatTemplateAudioArgs
{
Bitrate = "",
Channels = "",
Codec = "mp3",
Samplerate = "",
},
AudioMixes = new[]
{
new Tencentcloud.Inputs.CiMediaConcatTemplateConcatTemplateAudioMixArgs
{
AudioSource = "https://terraform-ci-xxxxxx.cos.ap-guangzhou.myqcloud.com/mp3%2Fnizhan-test.mp3",
EffectConfig = new Tencentcloud.Inputs.CiMediaConcatTemplateConcatTemplateAudioMixEffectConfigArgs
{
BgmFadeTime = "1.7",
EnableBgmFade = "true",
EnableEndFadeout = "false",
EnableStartFadein = "true",
EndFadeoutTime = "0.1",
StartFadeinTime = "3",
},
MixMode = "Once",
Replace = "true",
},
},
ConcatFragments = new[]
{
new Tencentcloud.Inputs.CiMediaConcatTemplateConcatTemplateConcatFragmentArgs
{
Mode = "Start",
Url = "https://terraform-ci-xxxxxx.cos.ap-guangzhou.myqcloud.com/mp4%2Fmp4-test.mp4",
},
new Tencentcloud.Inputs.CiMediaConcatTemplateConcatTemplateConcatFragmentArgs
{
Mode = "End",
Url = "https://terraform-ci-xxxxxx.cos.ap-guangzhou.myqcloud.com/mp4%2Fmp4-test.mp4",
},
},
Container = new Tencentcloud.Inputs.CiMediaConcatTemplateConcatTemplateContainerArgs
{
Format = "mp4",
},
Video = new Tencentcloud.Inputs.CiMediaConcatTemplateConcatTemplateVideoArgs
{
Bitrate = "1000",
Codec = "H.264",
Crf = "",
Fps = "25",
Height = "",
Remove = "",
Rotate = "",
Width = "1280",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CiMediaConcatTemplate;
import com.pulumi.tencentcloud.CiMediaConcatTemplateArgs;
import com.pulumi.tencentcloud.inputs.CiMediaConcatTemplateConcatTemplateArgs;
import com.pulumi.tencentcloud.inputs.CiMediaConcatTemplateConcatTemplateAudioArgs;
import com.pulumi.tencentcloud.inputs.CiMediaConcatTemplateConcatTemplateContainerArgs;
import com.pulumi.tencentcloud.inputs.CiMediaConcatTemplateConcatTemplateVideoArgs;
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 mediaConcatTemplate = new CiMediaConcatTemplate("mediaConcatTemplate", CiMediaConcatTemplateArgs.builder()
.bucket("terraform-ci-xxxxxx")
.concatTemplate(CiMediaConcatTemplateConcatTemplateArgs.builder()
.audio(CiMediaConcatTemplateConcatTemplateAudioArgs.builder()
.bitrate("")
.channels("")
.codec("mp3")
.samplerate("")
.build())
.audioMixes(CiMediaConcatTemplateConcatTemplateAudioMixArgs.builder()
.audioSource("https://terraform-ci-xxxxxx.cos.ap-guangzhou.myqcloud.com/mp3%2Fnizhan-test.mp3")
.effectConfig(CiMediaConcatTemplateConcatTemplateAudioMixEffectConfigArgs.builder()
.bgmFadeTime("1.7")
.enableBgmFade("true")
.enableEndFadeout("false")
.enableStartFadein("true")
.endFadeoutTime("0.1")
.startFadeinTime("3")
.build())
.mixMode("Once")
.replace("true")
.build())
.concatFragments(
CiMediaConcatTemplateConcatTemplateConcatFragmentArgs.builder()
.mode("Start")
.url("https://terraform-ci-xxxxxx.cos.ap-guangzhou.myqcloud.com/mp4%2Fmp4-test.mp4")
.build(),
CiMediaConcatTemplateConcatTemplateConcatFragmentArgs.builder()
.mode("End")
.url("https://terraform-ci-xxxxxx.cos.ap-guangzhou.myqcloud.com/mp4%2Fmp4-test.mp4")
.build())
.container(CiMediaConcatTemplateConcatTemplateContainerArgs.builder()
.format("mp4")
.build())
.video(CiMediaConcatTemplateConcatTemplateVideoArgs.builder()
.bitrate("1000")
.codec("H.264")
.crf("")
.fps("25")
.height("")
.remove("")
.rotate("")
.width("1280")
.build())
.build())
.build());
}
}
resources:
mediaConcatTemplate:
type: tencentcloud:CiMediaConcatTemplate
properties:
bucket: terraform-ci-xxxxxx
concatTemplate:
audio:
bitrate: ""
channels: ""
codec: mp3
samplerate: ""
audioMixes:
- audioSource: https://terraform-ci-xxxxxx.cos.ap-guangzhou.myqcloud.com/mp3%2Fnizhan-test.mp3
effectConfig:
bgmFadeTime: '1.7'
enableBgmFade: 'true'
enableEndFadeout: 'false'
enableStartFadein: 'true'
endFadeoutTime: '0.1'
startFadeinTime: '3'
mixMode: Once
replace: 'true'
concatFragments:
- mode: Start
url: https://terraform-ci-xxxxxx.cos.ap-guangzhou.myqcloud.com/mp4%2Fmp4-test.mp4
- mode: End
url: https://terraform-ci-xxxxxx.cos.ap-guangzhou.myqcloud.com/mp4%2Fmp4-test.mp4
container:
format: mp4
video:
bitrate: '1000'
codec: H.264
crf: ""
fps: '25'
height: ""
remove: ""
rotate: ""
width: '1280'
Create CiMediaConcatTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CiMediaConcatTemplate(name: string, args: CiMediaConcatTemplateArgs, opts?: CustomResourceOptions);
@overload
def CiMediaConcatTemplate(resource_name: str,
args: CiMediaConcatTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CiMediaConcatTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
bucket: Optional[str] = None,
concat_template: Optional[CiMediaConcatTemplateConcatTemplateArgs] = None,
ci_media_concat_template_id: Optional[str] = None,
name: Optional[str] = None)
func NewCiMediaConcatTemplate(ctx *Context, name string, args CiMediaConcatTemplateArgs, opts ...ResourceOption) (*CiMediaConcatTemplate, error)
public CiMediaConcatTemplate(string name, CiMediaConcatTemplateArgs args, CustomResourceOptions? opts = null)
public CiMediaConcatTemplate(String name, CiMediaConcatTemplateArgs args)
public CiMediaConcatTemplate(String name, CiMediaConcatTemplateArgs args, CustomResourceOptions options)
type: tencentcloud:CiMediaConcatTemplate
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 CiMediaConcatTemplateArgs
- 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 CiMediaConcatTemplateArgs
- 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 CiMediaConcatTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CiMediaConcatTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CiMediaConcatTemplateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CiMediaConcatTemplate 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 CiMediaConcatTemplate resource accepts the following input properties:
- Bucket string
- bucket name.
- Concat
Template CiMedia Concat Template Concat Template - stitching template.
- Ci
Media stringConcat Template Id - ID of the resource.
- Name string
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
.
- Bucket string
- bucket name.
- Concat
Template CiMedia Concat Template Concat Template Args - stitching template.
- Ci
Media stringConcat Template Id - ID of the resource.
- Name string
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
.
- bucket String
- bucket name.
- concat
Template CiMedia Concat Template Concat Template - stitching template.
- ci
Media StringConcat Template Id - ID of the resource.
- name String
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
.
- bucket string
- bucket name.
- concat
Template CiMedia Concat Template Concat Template - stitching template.
- ci
Media stringConcat Template Id - ID of the resource.
- name string
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
.
- bucket str
- bucket name.
- concat_
template CiMedia Concat Template Concat Template Args - stitching template.
- ci_
media_ strconcat_ template_ id - ID of the resource.
- name str
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
.
- bucket String
- bucket name.
- concat
Template Property Map - stitching template.
- ci
Media StringConcat Template Id - ID of the resource.
- name String
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
.
Outputs
All input properties are implicitly available as output properties. Additionally, the CiMediaConcatTemplate 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 CiMediaConcatTemplate Resource
Get an existing CiMediaConcatTemplate 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?: CiMediaConcatTemplateState, opts?: CustomResourceOptions): CiMediaConcatTemplate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bucket: Optional[str] = None,
ci_media_concat_template_id: Optional[str] = None,
concat_template: Optional[CiMediaConcatTemplateConcatTemplateArgs] = None,
name: Optional[str] = None) -> CiMediaConcatTemplate
func GetCiMediaConcatTemplate(ctx *Context, name string, id IDInput, state *CiMediaConcatTemplateState, opts ...ResourceOption) (*CiMediaConcatTemplate, error)
public static CiMediaConcatTemplate Get(string name, Input<string> id, CiMediaConcatTemplateState? state, CustomResourceOptions? opts = null)
public static CiMediaConcatTemplate get(String name, Output<String> id, CiMediaConcatTemplateState state, CustomResourceOptions options)
resources: _: type: tencentcloud:CiMediaConcatTemplate 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.
- Bucket string
- bucket name.
- Ci
Media stringConcat Template Id - ID of the resource.
- Concat
Template CiMedia Concat Template Concat Template - stitching template.
- Name string
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
.
- Bucket string
- bucket name.
- Ci
Media stringConcat Template Id - ID of the resource.
- Concat
Template CiMedia Concat Template Concat Template Args - stitching template.
- Name string
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
.
- bucket String
- bucket name.
- ci
Media StringConcat Template Id - ID of the resource.
- concat
Template CiMedia Concat Template Concat Template - stitching template.
- name String
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
.
- bucket string
- bucket name.
- ci
Media stringConcat Template Id - ID of the resource.
- concat
Template CiMedia Concat Template Concat Template - stitching template.
- name string
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
.
- bucket str
- bucket name.
- ci_
media_ strconcat_ template_ id - ID of the resource.
- concat_
template CiMedia Concat Template Concat Template Args - stitching template.
- name str
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
.
- bucket String
- bucket name.
- ci
Media StringConcat Template Id - ID of the resource.
- concat
Template Property Map - stitching template.
- name String
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
.
Supporting Types
CiMediaConcatTemplateConcatTemplate, CiMediaConcatTemplateConcatTemplateArgs
- Concat
Fragments List<CiMedia Concat Template Concat Template Concat Fragment> - Package format.
- Container
Ci
Media Concat Template Concat Template Container - Only splicing without transcoding.
- Audio
Ci
Media Concat Template Concat Template Audio - audio parameters, the target file does not require Audio information, need to set Audio.Remove to true.
- Audio
Mixes List<CiMedia Concat Template Concat Template Audio Mix> - mixing parameters.
- Video
Ci
Media Concat Template Concat Template Video - video information, do not upload Video, which is equivalent to deleting video information.
- Concat
Fragments []CiMedia Concat Template Concat Template Concat Fragment - Package format.
- Container
Ci
Media Concat Template Concat Template Container - Only splicing without transcoding.
- Audio
Ci
Media Concat Template Concat Template Audio - audio parameters, the target file does not require Audio information, need to set Audio.Remove to true.
- Audio
Mixes []CiMedia Concat Template Concat Template Audio Mix - mixing parameters.
- Video
Ci
Media Concat Template Concat Template Video - video information, do not upload Video, which is equivalent to deleting video information.
- concat
Fragments List<CiMedia Concat Template Concat Template Concat Fragment> - Package format.
- container
Ci
Media Concat Template Concat Template Container - Only splicing without transcoding.
- audio
Ci
Media Concat Template Concat Template Audio - audio parameters, the target file does not require Audio information, need to set Audio.Remove to true.
- audio
Mixes List<CiMedia Concat Template Concat Template Audio Mix> - mixing parameters.
- video
Ci
Media Concat Template Concat Template Video - video information, do not upload Video, which is equivalent to deleting video information.
- concat
Fragments CiMedia Concat Template Concat Template Concat Fragment[] - Package format.
- container
Ci
Media Concat Template Concat Template Container - Only splicing without transcoding.
- audio
Ci
Media Concat Template Concat Template Audio - audio parameters, the target file does not require Audio information, need to set Audio.Remove to true.
- audio
Mixes CiMedia Concat Template Concat Template Audio Mix[] - mixing parameters.
- video
Ci
Media Concat Template Concat Template Video - video information, do not upload Video, which is equivalent to deleting video information.
- concat_
fragments Sequence[CiMedia Concat Template Concat Template Concat Fragment] - Package format.
- container
Ci
Media Concat Template Concat Template Container - Only splicing without transcoding.
- audio
Ci
Media Concat Template Concat Template Audio - audio parameters, the target file does not require Audio information, need to set Audio.Remove to true.
- audio_
mixes Sequence[CiMedia Concat Template Concat Template Audio Mix] - mixing parameters.
- video
Ci
Media Concat Template Concat Template Video - video information, do not upload Video, which is equivalent to deleting video information.
- concat
Fragments List<Property Map> - Package format.
- container Property Map
- Only splicing without transcoding.
- audio Property Map
- audio parameters, the target file does not require Audio information, need to set Audio.Remove to true.
- audio
Mixes List<Property Map> - mixing parameters.
- video Property Map
- video information, do not upload Video, which is equivalent to deleting video information.
CiMediaConcatTemplateConcatTemplateAudio, CiMediaConcatTemplateConcatTemplateAudioArgs
- Codec string
- Codec format, value aac, mp3.
- Bitrate string
- Original audio bit rate, unit: Kbps, Value range: [8, 1000].
- Channels string
- number of channels- When Codec is set to aac, support 1, 2, 4, 5, 6, 8- When Codec is set to mp3, support 1, 2.
- Samplerate string
- Sampling Rate- Unit: Hz- Optional 11025, 22050, 32000, 44100, 48000, 96000- Different packages, mp3 supports different sampling rates, as shown in the table below.
- Codec string
- Codec format, value aac, mp3.
- Bitrate string
- Original audio bit rate, unit: Kbps, Value range: [8, 1000].
- Channels string
- number of channels- When Codec is set to aac, support 1, 2, 4, 5, 6, 8- When Codec is set to mp3, support 1, 2.
- Samplerate string
- Sampling Rate- Unit: Hz- Optional 11025, 22050, 32000, 44100, 48000, 96000- Different packages, mp3 supports different sampling rates, as shown in the table below.
- codec String
- Codec format, value aac, mp3.
- bitrate String
- Original audio bit rate, unit: Kbps, Value range: [8, 1000].
- channels String
- number of channels- When Codec is set to aac, support 1, 2, 4, 5, 6, 8- When Codec is set to mp3, support 1, 2.
- samplerate String
- Sampling Rate- Unit: Hz- Optional 11025, 22050, 32000, 44100, 48000, 96000- Different packages, mp3 supports different sampling rates, as shown in the table below.
- codec string
- Codec format, value aac, mp3.
- bitrate string
- Original audio bit rate, unit: Kbps, Value range: [8, 1000].
- channels string
- number of channels- When Codec is set to aac, support 1, 2, 4, 5, 6, 8- When Codec is set to mp3, support 1, 2.
- samplerate string
- Sampling Rate- Unit: Hz- Optional 11025, 22050, 32000, 44100, 48000, 96000- Different packages, mp3 supports different sampling rates, as shown in the table below.
- codec str
- Codec format, value aac, mp3.
- bitrate str
- Original audio bit rate, unit: Kbps, Value range: [8, 1000].
- channels str
- number of channels- When Codec is set to aac, support 1, 2, 4, 5, 6, 8- When Codec is set to mp3, support 1, 2.
- samplerate str
- Sampling Rate- Unit: Hz- Optional 11025, 22050, 32000, 44100, 48000, 96000- Different packages, mp3 supports different sampling rates, as shown in the table below.
- codec String
- Codec format, value aac, mp3.
- bitrate String
- Original audio bit rate, unit: Kbps, Value range: [8, 1000].
- channels String
- number of channels- When Codec is set to aac, support 1, 2, 4, 5, 6, 8- When Codec is set to mp3, support 1, 2.
- samplerate String
- Sampling Rate- Unit: Hz- Optional 11025, 22050, 32000, 44100, 48000, 96000- Different packages, mp3 supports different sampling rates, as shown in the table below.
CiMediaConcatTemplateConcatTemplateAudioMix, CiMediaConcatTemplateConcatTemplateAudioMixArgs
- Audio
Source string - The media address of the audio track that needs to be mixed.
- Effect
Config CiMedia Concat Template Concat 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 Concat Template Concat 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 Concat Template Concat 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 Concat Template Concat 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 Concat Template Concat 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.
CiMediaConcatTemplateConcatTemplateAudioMixEffectConfig, CiMediaConcatTemplateConcatTemplateAudioMixEffectConfigArgs
- 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.
CiMediaConcatTemplateConcatTemplateConcatFragment, CiMediaConcatTemplateConcatTemplateConcatFragmentArgs
CiMediaConcatTemplateConcatTemplateContainer, CiMediaConcatTemplateConcatTemplateContainerArgs
- Format string
- Container format: mp4, flv, hls, ts, mp3, aac.
- Format string
- Container format: mp4, flv, hls, ts, mp3, aac.
- format String
- Container format: mp4, flv, hls, ts, mp3, aac.
- format string
- Container format: mp4, flv, hls, ts, mp3, aac.
- format str
- Container format: mp4, flv, hls, ts, mp3, aac.
- format String
- Container format: mp4, flv, hls, ts, mp3, aac.
CiMediaConcatTemplateConcatTemplateVideo, CiMediaConcatTemplateConcatTemplateVideoArgs
- Codec string
- Codec format
H.264
. - Bitrate string
- Original audio bit rate, unit: Kbps, Value range: [8, 1000].
- 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.
- 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.
- Remove string
- Whether to delete the source audio stream, the value is 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.
- Codec string
- Codec format
H.264
. - Bitrate string
- Original audio bit rate, unit: Kbps, Value range: [8, 1000].
- 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.
- 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.
- Remove string
- Whether to delete the source audio stream, the value is 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.
- codec String
- Codec format
H.264
. - bitrate String
- Original audio bit rate, unit: Kbps, Value range: [8, 1000].
- 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.
- 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.
- remove String
- Whether to delete the source audio stream, the value is 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.
- codec string
- Codec format
H.264
. - bitrate string
- Original audio bit rate, unit: Kbps, Value range: [8, 1000].
- 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.
- 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.
- remove string
- Whether to delete the source audio stream, the value is 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.
- codec str
- Codec format
H.264
. - bitrate str
- Original audio bit rate, unit: Kbps, Value range: [8, 1000].
- 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.
- 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.
- remove str
- Whether to delete the source audio stream, the value is 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.
- codec String
- Codec format
H.264
. - bitrate String
- Original audio bit rate, unit: Kbps, Value range: [8, 1000].
- 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.
- 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.
- remove String
- Whether to delete the source audio stream, the value is 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_concat_template can be imported using the bucket#templateId, e.g.
$ pulumi import tencentcloud:index/ciMediaConcatTemplate:CiMediaConcatTemplate media_concat_template id=terraform-ci-xxxxxx#t1cb115dfa1fcc414284f83b7c69bcedcf
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.