model

package
v0.0.20-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnimatedGraphicsOutputParam

type AnimatedGraphicsOutputParam struct {
	// 动图格式,目前仅支持取值 gif
	Format *AnimatedGraphicsOutputParamFormat `json:"format,omitempty"`
	// 输出动图的宽。  取值范围:0,-1或[32,3840]之间2的倍数。  >- 若设置为-1, 则宽根据高来自适应,此时“height”不能取-1或0。 >- 若设置为0,则取原始视频的宽,此时“height”只能取0。
	Width int32 `json:"width"`
	// 输出动图的高。  取值范围:0,-1或[32,2160]之间2的倍数。  >- 若设置为-1, 则高根据宽来自适应,此时“width”不能取-1或0。 >- 若设置为0,则取原始视频的高,此时“width”只能取0。
	Height int32 `json:"height"`
	// 起始时间,单位:毫秒
	Start int32 `json:"start"`
	// 结束时间。  单位:毫秒。  end、start差值最多60秒。
	End int32 `json:"end"`
	// 动图帧率。  取值范围:[1,75]
	FrameRate *int32 `json:"frame_rate,omitempty"`
}

func (AnimatedGraphicsOutputParam) String

type AnimatedGraphicsOutputParamFormat

type AnimatedGraphicsOutputParamFormat struct {
	// contains filtered or unexported fields
}

func (AnimatedGraphicsOutputParamFormat) MarshalJSON

func (c AnimatedGraphicsOutputParamFormat) MarshalJSON() ([]byte, error)

func (*AnimatedGraphicsOutputParamFormat) UnmarshalJSON

func (c *AnimatedGraphicsOutputParamFormat) UnmarshalJSON(b []byte) error

type AnimatedGraphicsOutputParamFormatEnum

type AnimatedGraphicsOutputParamFormatEnum struct {
	GIF AnimatedGraphicsOutputParamFormat
}

func GetAnimatedGraphicsOutputParamFormatEnum

func GetAnimatedGraphicsOutputParamFormatEnum() AnimatedGraphicsOutputParamFormatEnum

type AnimatedGraphicsTask

type AnimatedGraphicsTask struct {
	// 任务ID
	TaskId *string `json:"task_id,omitempty"`
	// 任务状态。  取值如下: - INIT:初始状态。 - WAITING:等待启动。 - PROCESSING:处理中。 - SUCCEED:处理成功。 - FAILED:处理失败。 - CANCELED:已取消。
	Status *string `json:"status,omitempty"`
	// 任务创建时间
	CreateTime *string `json:"create_time,omitempty"`
	// 任务启动时间
	StartTime *string `json:"start_time,omitempty"`
	// 任务结束时间
	EndTime *string `json:"end_time,omitempty"`
	// 错误描述
	Description *string     `json:"description,omitempty"`
	Input       *ObsObjInfo `json:"input,omitempty"`
	Output      *ObsObjInfo `json:"output,omitempty"`
	// 用户数据。
	UserData    *string                      `json:"user_data,omitempty"`
	OutputParam *AnimatedGraphicsOutputParam `json:"output_param,omitempty"`
}

func (AnimatedGraphicsTask) String

func (o AnimatedGraphicsTask) String() string

type Audio

type Audio struct {
	// 输出策略。  取值如下: - discard - transcode  >- 当视频参数中的“output_policy”为\"discard\",且音频参数中的“output_policy”为“transcode”时,表示只输出音频。 >- 当视频参数中的“output_policy”为\"transcode\",且音频参数中的“output_policy”为“discard”时,表示只输出视频。 >- 同时为\"discard\"时不合法。 >- 同时为“transcode”时,表示输出音视频。
	OutputPolicy *AudioOutputPolicy `json:"output_policy,omitempty"`
	// 音频编码格式。  取值如下:  - 1:AAC格式。 - 2:HEAAC1格式 。 - 3:HEAAC2格式。 - 4:MP3格式 。
	Codec int32 `json:"codec"`
	// 音频采样率。  取值如下:  - 1:AUDIO_SAMPLE_AUTO - 2:AUDIO_SAMPLE_22050(22050Hz) - 3:AUDIO_SAMPLE_32000(32000Hz) - 4:AUDIO_SAMPLE_44100(44100Hz) - 5:AUDIO_SAMPLE_48000(48000Hz) - 6:AUDIO_SAMPLE_96000(96000Hz)
	SampleRate int32 `json:"sample_rate"`
	// 音频码率。  取值范围:0或[8,1000]。  单位:kbit/s。
	Bitrate *int32 `json:"bitrate,omitempty"`
	// 声道数。  取值如下: - 1:AUDIO_CHANNELS_1 - 2:AUDIO_CHANNELS_2 - 6:AUDIO_CHANNELS_5_1
	Channels int32 `json:"channels"`
}

func (Audio) String

func (o Audio) String() string

type AudioFile

type AudioFile struct {
	// 音轨信息
	TracksInfo *[]TracksInfo `json:"tracks_info,omitempty"`
	Input      *ObsObjInfo   `json:"input,omitempty"`
}

func (AudioFile) String

func (o AudioFile) String() string

type AudioInfo

type AudioInfo struct {
	// 音频编码格式
	Codec *string `json:"codec,omitempty"`
	// 音频采样率
	Sample *int32 `json:"sample,omitempty"`
	// 音频信道
	Channels *int32 `json:"channels,omitempty"`
	// 音频码率,单位: kbit/s
	Bitrate *int32 `json:"bitrate,omitempty"`
	// 音频码率,单位: bit/s
	BitrateBps *int64 `json:"bitrate_bps,omitempty"`
}

func (AudioInfo) String

func (o AudioInfo) String() string

type AudioOutputPolicy

type AudioOutputPolicy struct {
	// contains filtered or unexported fields
}

func (AudioOutputPolicy) MarshalJSON

func (c AudioOutputPolicy) MarshalJSON() ([]byte, error)

func (*AudioOutputPolicy) UnmarshalJSON

func (c *AudioOutputPolicy) UnmarshalJSON(b []byte) error

type AudioOutputPolicyEnum

type AudioOutputPolicyEnum struct {
	TRANSCODE AudioOutputPolicy
	DISCARD   AudioOutputPolicy
	COPY      AudioOutputPolicy
}

func GetAudioOutputPolicyEnum

func GetAudioOutputPolicyEnum() AudioOutputPolicyEnum

type AudioProcess

type AudioProcess struct {
	// 音量调整方式: - auto:表示自动调整音量。 - dynamic:表示人为调整,需设定音量调整幅值。
	Volume *AudioProcessVolume `json:"volume,omitempty"`
	// 音量调整幅值,需指定volume为dynamic。  取值范围:[-15,15]  单位:dB
	VolumeExpr *int32 `json:"volume_expr,omitempty"`
}

func (AudioProcess) String

func (o AudioProcess) String() string

type AudioProcessVolume

type AudioProcessVolume struct {
	// contains filtered or unexported fields
}

func (AudioProcessVolume) MarshalJSON

func (c AudioProcessVolume) MarshalJSON() ([]byte, error)

func (*AudioProcessVolume) UnmarshalJSON

func (c *AudioProcessVolume) UnmarshalJSON(b []byte) error

type AudioProcessVolumeEnum

type AudioProcessVolumeEnum struct {
	AUTO    AudioProcessVolume
	DYNAMIC AudioProcessVolume
}

func GetAudioProcessVolumeEnum

func GetAudioProcessVolumeEnum() AudioProcessVolumeEnum

type AudioTrack

type AudioTrack struct {
	// 音轨选取方式。 - 0:默认选取 - 1:手动选择
	Type *int32 `json:"type,omitempty"`
	// 选取左声道所在的音轨编号。
	Left *int32 `json:"left,omitempty"`
	// 选取右声道所在的音轨编号。
	Right *int32 `json:"right,omitempty"`
}

func (AudioTrack) String

func (o AudioTrack) String() string

type Audit

type Audit struct {
	// 内容质检位置。  取值如下: - 1: 表示原始片源检查。 - 2:表示转码后片源检查,转码后的片源分辨率必须为720p及以上,且格式需与原始片源一致。
	Position *int32 `json:"position,omitempty"`
	// 转码模板ID索引。此索引必须为TransPresetID中的一个。 index从0开始,表示对应的是第几路的校验,比如一进六出,需要对第4路检查,就输入3。  >- 如对原片源质检,此字段不填。 >- 原始分辨率和转码后的分辨率都必须是1280*720及之上。 >- 若对转码后片源检测,必须和原始分辨率一致。
	Index *int32 `json:"index,omitempty"`
}

func (Audit) String

func (o Audit) String() string

type AuditReport

type AuditReport struct {
	// 疑似黑边位置信息,参数格式:top:bottom:left:right
	BlackPosition *string `json:"black_position,omitempty"`
}

func (AuditReport) String

func (o AuditReport) String() string

type AvParameters

type AvParameters struct {
	Video  *VideoParameters `json:"video,omitempty"`
	Audio  *Audio           `json:"audio,omitempty"`
	Common *Common          `json:"common"`
}

func (AvParameters) String

func (o AvParameters) String() string

type BasicWatermark

type BasicWatermark struct {
	// 水印图片起点相对输出视频顶点的水平偏移量。  设置方法有如下两种:  - 整数型:表示图片起点水平偏移视频顶点的像素值,单位px。取值范围:[0,4096] - 小数型:表示图片起点相对于视频分辨率宽的水平偏移比率。取值范围:(0,1),支持4位小数,如0.9999,超出部分系统自动丢弃。  示例:输出视频分辨率宽1920,设置“dx”为“0.1”,“referpos”为“TopRight”(右上角),则水印图片右上角到视频右顶点在水平方向上偏移距离为192。
	Dx *string `json:"dx,omitempty"`
	// 水印图片起点相对输出视频顶点的垂直偏移量。  - 设置方法有如下两种:整数型:表示图片起点垂直偏移视频顶点的像素值,单位px。取值范围:[0,4096] - 小数型:表示图片起点相对于视频分辨率高的垂直偏移比率。取值范围:(0,1),支持4位小数,如0.9999,超出部分系统自动丢弃。  示例:输出视频分辨率高1080,设置“dy”为“0.1”,“referpos”为“TopRight”(右上角),则水印图片右上角到视频右顶点在垂直方向上的偏移距离为108。
	Dy *string `json:"dy,omitempty"`
	// 水印的位置。  取值如下: - TopRight:右上角。 - TopLeft:左上角。 - BottomRight:右下角。 - BottomLeft:左下角。
	Referpos *string `json:"referpos,omitempty"`
	// 水印开始时间,与“timeline_duration”配合使用。  取值范围:数字。  单位:秒。
	TimelineStart *string `json:"timeline_start,omitempty"`
	// 水印持续时间,与“timeline_start”配合使用。  取值范围:[数字,ToEND]。“ToEND”表示持续到视频结束。  默认值:ToEND。
	TimelineDuration *string `json:"timeline_duration,omitempty"`
}

func (BasicWatermark) String

func (o BasicWatermark) String() string

type BlackEnhance

type BlackEnhance struct {
	// 提前反馈“疑似黑边”开关,取值为on或off。
	EarlyReport *BlackEnhanceEarlyReport `json:"early_report,omitempty"`
	// 参数格式:top:bottom:left:right
	Position *string `json:"position,omitempty"`
	// 黑边剪裁检测起始时间
	StartTime *string `json:"start_time,omitempty"`
}

func (BlackEnhance) String

func (o BlackEnhance) String() string

type BlackEnhanceEarlyReport

type BlackEnhanceEarlyReport struct {
	// contains filtered or unexported fields
}

func (BlackEnhanceEarlyReport) MarshalJSON

func (c BlackEnhanceEarlyReport) MarshalJSON() ([]byte, error)

func (*BlackEnhanceEarlyReport) UnmarshalJSON

func (c *BlackEnhanceEarlyReport) UnmarshalJSON(b []byte) error

type BlackEnhanceEarlyReportEnum

type BlackEnhanceEarlyReportEnum struct {
	ON  BlackEnhanceEarlyReport
	OFF BlackEnhanceEarlyReport
}

func GetBlackEnhanceEarlyReportEnum

func GetBlackEnhanceEarlyReportEnum() BlackEnhanceEarlyReportEnum

type CancelRemuxTaskRequest

type CancelRemuxTaskRequest struct {
	TaskId string `json:"task_id"`
}

Request Object

func (CancelRemuxTaskRequest) String

func (o CancelRemuxTaskRequest) String() string

type CancelRemuxTaskResponse

type CancelRemuxTaskResponse struct {
}

Response Object

func (CancelRemuxTaskResponse) String

func (o CancelRemuxTaskResponse) String() string

type Common

type Common struct {
	// QDS开关 0:关闭(当前默认关闭) 1:开启
	Qds bool `json:"QDS"`
	// 是否开启高清低码功能。  取值如下: - false:关闭。 - true:开启。
	Pvc bool `json:"PVC"`
	// PVC版本(PVC开启时,此字段才生效) “2.0_normal”:感知编码2.0(降码率30%~40%) “2.0_high”:感知编码2.0+画质增强
	PVCVersion *string `json:"PVC_version,omitempty"`
	// PVC感知编码强度(PVC开启时,此字段才生效),默认取值 “100” “100”:主观质量不变 “70”:主观质量适当下降
	PVCStrength *string `json:"PVC_strength,omitempty"`
	// HLS分片间隔,仅封装类型“pack_type”取值为1或3时,该参数生效。  取值范围:[2,10]。  单位:秒。
	HlsInterval int32 `json:"hls_interval"`
	// DASH间隔,仅封装类型“pack_type”取值为2或3时,该参数生效。  取值范围:[2,10]。  单位:秒。
	DashInterval int32 `json:"dash_interval"`
	// 封装类型。  取值如下: - 1:HLS - 2:DASH - 3:HLS+DASH - 4:MP4 - 5:MP3 - 6:ADTS  > pack_type设置为5和6时,不能设置视频参数。
	PackType int32 `json:"pack_type"`
}

func (Common) String

func (o Common) String() string

type CommonCreateTaskReq

type CommonCreateTaskReq struct {
	Input  *ObsObjInfo `json:"input,omitempty"`
	Output *ObsObjInfo `json:"output,omitempty"`
	// 用户自定义数据。
	UserData *string `json:"user_data,omitempty"`
	// 是否同步处理, - 0:排队处理 - 1:同步处理  默认值:0
	Sync *int32 `json:"sync,omitempty"`
}

func (CommonCreateTaskReq) String

func (o CommonCreateTaskReq) String() string

type CommonQueryTaskRsp

type CommonQueryTaskRsp struct {
	// 任务总数
	Total *int32 `json:"total,omitempty"`
}

func (CommonQueryTaskRsp) String

func (o CommonQueryTaskRsp) String() string

type CommonTask

type CommonTask struct {
	// 任务ID
	TaskId *string `json:"task_id,omitempty"`
	// 任务状态。  取值如下: - INIT:初始状态。 - WAITING:等待启动。 - PROCESSING:处理中。 - SUCCEED:处理成功。 - FAILED:处理失败。 - CANCELED:已取消。
	Status *string `json:"status,omitempty"`
	// 任务创建时间
	CreateTime *string `json:"create_time,omitempty"`
	// 任务启动时间
	StartTime *string `json:"start_time,omitempty"`
	// 任务结束时间
	EndTime *string `json:"end_time,omitempty"`
	// 错误描述
	Description *string     `json:"description,omitempty"`
	Input       *ObsObjInfo `json:"input,omitempty"`
	Output      *ObsObjInfo `json:"output,omitempty"`
	// 用户数据。
	UserData *string `json:"user_data,omitempty"`
}

func (CommonTask) String

func (o CommonTask) String() string

type CreateAnimatedGraphicsTaskReq

type CreateAnimatedGraphicsTaskReq struct {
	Input  *ObsObjInfo `json:"input,omitempty"`
	Output *ObsObjInfo `json:"output,omitempty"`
	// 用户自定义数据。
	UserData *string `json:"user_data,omitempty"`
	// 是否同步处理, - 0:排队处理 - 1:同步处理  默认值:0
	Sync        *int32                       `json:"sync,omitempty"`
	OutputParam *AnimatedGraphicsOutputParam `json:"output_param,omitempty"`
}

func (CreateAnimatedGraphicsTaskReq) String

type CreateAnimatedGraphicsTaskRequest

type CreateAnimatedGraphicsTaskRequest struct {
	Body *CreateAnimatedGraphicsTaskReq `json:"body,omitempty"`
}

Request Object

func (CreateAnimatedGraphicsTaskRequest) String

type CreateAnimatedGraphicsTaskResponse

type CreateAnimatedGraphicsTaskResponse struct {
	// 任务ID
	TaskId *string `json:"task_id,omitempty"`
	// 任务状态
	Status *string `json:"status,omitempty"`
	// 任务创建时间
	CreateTime *string     `json:"create_time,omitempty"`
	Output     *ObsObjInfo `json:"output,omitempty"`
	// 解析文件名称
	OutputFileName *string `json:"output_file_name,omitempty"`
	// 任务描述,如当任务异常时,此字段为异常的具体信息
	Description *string   `json:"description,omitempty"`
	Metadata    *MetaData `json:"metadata,omitempty"`
}

Response Object

func (CreateAnimatedGraphicsTaskResponse) String

type CreateEncryptReq

type CreateEncryptReq struct {
	Input      *ObsObjInfo `json:"input,omitempty"`
	Output     *ObsObjInfo `json:"output,omitempty"`
	Encryption *Encryption `json:"encryption,omitempty"`
	// 用户自定义数据。
	UserData *string `json:"user_data,omitempty"`
}

func (CreateEncryptReq) String

func (o CreateEncryptReq) String() string

type CreateEncryptTaskRequest

type CreateEncryptTaskRequest struct {
	Body *CreateEncryptReq `json:"body,omitempty"`
}

Request Object

func (CreateEncryptTaskRequest) String

func (o CreateEncryptTaskRequest) String() string

type CreateEncryptTaskResponse

type CreateEncryptTaskResponse struct {
	// 加密任务Id
	TaskId *string `json:"task_id,omitempty"`
}

Response Object

func (CreateEncryptTaskResponse) String

func (o CreateEncryptTaskResponse) String() string

type CreateExtractTaskReq

type CreateExtractTaskReq struct {
	Input  *ObsObjInfo `json:"input,omitempty"`
	Output *ObsObjInfo `json:"output,omitempty"`
	// 用户自定义数据。
	UserData *string `json:"user_data,omitempty"`
	// 是否同步处理, - 0:排队处理 - 1:同步处理  默认值:0
	Sync *int32 `json:"sync,omitempty"`
}

func (CreateExtractTaskReq) String

func (o CreateExtractTaskReq) String() string

type CreateExtractTaskRequest

type CreateExtractTaskRequest struct {
	Body *CreateExtractTaskReq `json:"body,omitempty"`
}

Request Object

func (CreateExtractTaskRequest) String

func (o CreateExtractTaskRequest) String() string

type CreateExtractTaskResponse

type CreateExtractTaskResponse struct {
	// 任务ID
	TaskId *string `json:"task_id,omitempty"`
	// 任务状态
	Status *string `json:"status,omitempty"`
	// 任务创建时间
	CreateTime *string     `json:"create_time,omitempty"`
	Output     *ObsObjInfo `json:"output,omitempty"`
	// 解析文件名称
	OutputFileName *string `json:"output_file_name,omitempty"`
	// 任务描述,如当任务异常时,此字段为异常的具体信息
	Description *string   `json:"description,omitempty"`
	Metadata    *MetaData `json:"metadata,omitempty"`
}

Response Object

func (CreateExtractTaskResponse) String

func (o CreateExtractTaskResponse) String() string

type CreateRemuxTaskReq

type CreateRemuxTaskReq struct {
	Input  *ObsObjInfo `json:"input,omitempty"`
	Output *ObsObjInfo `json:"output,omitempty"`
	// 用户自定义数据。
	UserData *string `json:"user_data,omitempty"`
	// 是否同步处理, - 0:排队处理 - 1:同步处理  默认值:0
	Sync        *int32            `json:"sync,omitempty"`
	OutputParam *RemuxOutputParam `json:"output_param,omitempty"`
	// 提供给mpe通知回调用的的url
	NotifyUrl *string `json:"notify_url,omitempty"`
}

func (CreateRemuxTaskReq) String

func (o CreateRemuxTaskReq) String() string

type CreateRemuxTaskRequest

type CreateRemuxTaskRequest struct {
	Body *CreateRemuxTaskReq `json:"body,omitempty"`
}

Request Object

func (CreateRemuxTaskRequest) String

func (o CreateRemuxTaskRequest) String() string

type CreateRemuxTaskResponse

type CreateRemuxTaskResponse struct {
	// 任务ID
	TaskId *string `json:"task_id,omitempty"`
	// 任务状态
	Status *string `json:"status,omitempty"`
	// 任务创建时间
	CreateTime *string     `json:"create_time,omitempty"`
	Output     *ObsObjInfo `json:"output,omitempty"`
	// 解析文件名称
	OutputFileName *string `json:"output_file_name,omitempty"`
	// 任务描述,如当任务异常时,此字段为异常的具体信息
	Description *string   `json:"description,omitempty"`
	Metadata    *MetaData `json:"metadata,omitempty"`
}

Response Object

func (CreateRemuxTaskResponse) String

func (o CreateRemuxTaskResponse) String() string

type CreateRetryRemuxTaskRequest

type CreateRetryRemuxTaskRequest struct {
	Body *RemuxRetryReq `json:"body,omitempty"`
}

Request Object

func (CreateRetryRemuxTaskRequest) String

type CreateRetryRemuxTaskResponse

type CreateRetryRemuxTaskResponse struct {
}

Response Object

func (CreateRetryRemuxTaskResponse) String

type CreateTemplateGroupRequest

type CreateTemplateGroupRequest struct {
	Body *TransTemplateGroup `json:"body,omitempty"`
}

Request Object

func (CreateTemplateGroupRequest) String

type CreateTemplateGroupResponse

type CreateTemplateGroupResponse struct {
	TemplateGroup *TemplateGroup `json:"template_group,omitempty"`
}

Response Object

func (CreateTemplateGroupResponse) String

type CreateThumbReq

type CreateThumbReq struct {
	Input  *ObsObjInfo `json:"input"`
	Output *ObsObjInfo `json:"output"`
	// 用户自定义数据。
	UserData      *string        `json:"user_data,omitempty"`
	ThumbnailPara *ThumbnailPara `json:"thumbnail_para"`
	// 是否压缩抽帧图片生成tar包。  取值如下:  - 0:压缩。 - 1:不压缩
	Tar *int32 `json:"tar,omitempty"`
	// 是否同步处理,同步处理是指不下载全部文件,快速定位到截图位置进行截图。  取值如下: - 0:排队处理。 - 1:同步处理,暂只支持按时间点截单张图。
	Sync *int32 `json:"sync,omitempty"`
	// 是否使用原始输出目录。  取值如下: - 0:不使用原始输出目录,下发的输出目录后面追加随机目录,防止截图文件outputUri相同被覆盖。 - 1:使用原始输出目录。
	OriginalDir *int32 `json:"original_dir,omitempty"`
	// 租户Id
	ProjectId *string `json:"project_id,omitempty"`
	// vod租户Id
	TenantProjectId *string `json:"tenant_project_id,omitempty"`
	// domain名称
	DomainName *string `json:"domain_name,omitempty"`
	// 用户domainId
	CanonicalGrantId *string `json:"canonical_grant_id,omitempty"`
}

func (CreateThumbReq) String

func (o CreateThumbReq) String() string

type CreateThumbnailsTaskRequest

type CreateThumbnailsTaskRequest struct {
	Body *CreateThumbReq `json:"body,omitempty"`
}

Request Object

func (CreateThumbnailsTaskRequest) String

type CreateThumbnailsTaskResponse

type CreateThumbnailsTaskResponse struct {
	// 任务ID。
	TaskId *string `json:"task_id,omitempty"`
	// 任务状态
	Status *string `json:"status,omitempty"`
	// 任务创建时间
	CreateTime *string     `json:"create_time,omitempty"`
	Output     *ObsObjInfo `json:"output,omitempty"`
	// 截图文件名称
	OutputFileName *string `json:"output_file_name,omitempty"`
	// 指定的截图时间点
	ThumbnailTime *string `json:"thumbnail_time,omitempty"`
	// 截图任务描述,当截图出现异常时,此字段为异常的原因
	Description *string `json:"description,omitempty"`
}

Response Object

func (CreateThumbnailsTaskResponse) String

type CreateTransTemplateRequest

type CreateTransTemplateRequest struct {
	Body *TransTemplate `json:"body,omitempty"`
}

Request Object

func (CreateTransTemplateRequest) String

type CreateTransTemplateResponse

type CreateTransTemplateResponse struct {
	// 自定义转码模板编号。
	TemplateId *int64 `json:"template_id,omitempty"`
}

Response Object

func (CreateTransTemplateResponse) String

type CreateTranscodingReq

type CreateTranscodingReq struct {
	Input  *ObsObjInfo `json:"input,omitempty"`
	Output *ObsObjInfo `json:"output,omitempty"`
	// 转码模板ID,数组,每一路转码输出对应一个转码配置模板ID,最多支持9个模板ID。  多个转码模板中如下参数可变,其他都必须一致:  - 视频bitrate,height,width。
	TransTemplateId *[]int32 `json:"trans_template_id,omitempty"`
	// 输出文件名称,每一路转码输出对应一个名称,需要与转码模板ID数组的顺序对应。  - 若设置该参数,表示输出文件按该参数命名。 - 若不设置该参数,表示输出文件按默认方式命名。
	OutputFilenames *[]string `json:"output_filenames,omitempty"`
	// 用户自定义数据。
	UserData *string `json:"user_data,omitempty"`
	// 图片水印参数,数组,最多支持20个成员。
	Watermarks       *[]WatermarkRequest `json:"watermarks,omitempty"`
	Thumbnail        *Thumbnail          `json:"thumbnail,omitempty"`
	DigitalWatermark *DigitalWatermark   `json:"digital_watermark,omitempty"`
	// 项目ID
	ProjectId *string `json:"project_id,omitempty"`
	// 是否vip用户
	VipUser *bool `json:"vip_user,omitempty"`
	// 任务Id
	TaskId *string `json:"task_id,omitempty"`
	// 租户域名
	DomainName *string `json:"domain_name,omitempty"`
	// 租户Id
	TenantProjectId *string `json:"tenant_project_id,omitempty"`
	// 任务优先级,取值如下: - 9代表高优先级。 - 6代表中优先级,默认为6。  暂时只支持6和9。
	Priority       *int32          `json:"priority,omitempty"`
	Audit          *Audit          `json:"audit,omitempty"`
	Subtitle       *Subtitle       `json:"subtitle,omitempty"`
	SpecialEffect  *SpecialEffect  `json:"special_effect,omitempty"`
	Encryption     *Encryption     `json:"encryption,omitempty"`
	Crop           *Crop           `json:"crop,omitempty"`
	AudioTrack     *AudioTrack     `json:"audio_track,omitempty"`
	MultiAudio     *MultiAudio     `json:"multi_audio,omitempty"`
	VideoProcess   *VideoProcess   `json:"video_process,omitempty"`
	AudioProcess   *AudioProcess   `json:"audio_process,omitempty"`
	QualityEnhance *QualityEnhance `json:"quality_enhance,omitempty"`
	SystemProcess  *SystemProcess  `json:"system_process,omitempty"`
	// 转码参数。  若同时设置“trans_template_id”和此参数,则优先使用此参数进行转码。
	AvParameters   *[]AvParameters `json:"av_parameters,omitempty"`
	TemplateExtend *TemplateExtend `json:"template_extend,omitempty"`
}

func (CreateTranscodingReq) String

func (o CreateTranscodingReq) String() string

type CreateTranscodingTaskRequest

type CreateTranscodingTaskRequest struct {
	Body *CreateTranscodingReq `json:"body,omitempty"`
}

Request Object

func (CreateTranscodingTaskRequest) String

type CreateTranscodingTaskResponse

type CreateTranscodingTaskResponse struct {
	// 任务ID。 如果返回值为200 OK,为接受任务后产生的任务ID。
	TaskId *int32 `json:"task_id,omitempty"`
}

Response Object

func (CreateTranscodingTaskResponse) String

type CreateWatermarkTemplateRequest

type CreateWatermarkTemplateRequest struct {
	Body *WatermarkTemplate `json:"body,omitempty"`
}

Request Object

func (CreateWatermarkTemplateRequest) String

type CreateWatermarkTemplateResponse

type CreateWatermarkTemplateResponse struct {
	// 水印模板Id
	TemplateId *int32 `json:"template_id,omitempty"`
}

Response Object

func (CreateWatermarkTemplateResponse) String

type Crop

type Crop struct {
	// 截取的视频时长。  单位:秒  从0秒开始算起
	Duration *int32 `json:"duration,omitempty"`
}

func (Crop) String

func (o Crop) String() string

type DeleteAnimatedGraphicsTaskRequest

type DeleteAnimatedGraphicsTaskRequest struct {
	TaskId string `json:"task_id"`
}

Request Object

func (DeleteAnimatedGraphicsTaskRequest) String

type DeleteAnimatedGraphicsTaskResponse

type DeleteAnimatedGraphicsTaskResponse struct {
}

Response Object

func (DeleteAnimatedGraphicsTaskResponse) String

type DeleteEncryptTaskRequest

type DeleteEncryptTaskRequest struct {
	TaskId string `json:"task_id"`
}

Request Object

func (DeleteEncryptTaskRequest) String

func (o DeleteEncryptTaskRequest) String() string

type DeleteEncryptTaskResponse

type DeleteEncryptTaskResponse struct {
}

Response Object

func (DeleteEncryptTaskResponse) String

func (o DeleteEncryptTaskResponse) String() string

type DeleteExtractTaskRequest

type DeleteExtractTaskRequest struct {
	TaskId string `json:"task_id"`
}

Request Object

func (DeleteExtractTaskRequest) String

func (o DeleteExtractTaskRequest) String() string

type DeleteExtractTaskResponse

type DeleteExtractTaskResponse struct {
}

Response Object

func (DeleteExtractTaskResponse) String

func (o DeleteExtractTaskResponse) String() string

type DeleteRemuxTaskRequest

type DeleteRemuxTaskRequest struct {
	TaskId string `json:"task_id"`
}

Request Object

func (DeleteRemuxTaskRequest) String

func (o DeleteRemuxTaskRequest) String() string

type DeleteRemuxTaskResponse

type DeleteRemuxTaskResponse struct {
}

Response Object

func (DeleteRemuxTaskResponse) String

func (o DeleteRemuxTaskResponse) String() string

type DeleteTemplateGroupRequest

type DeleteTemplateGroupRequest struct {
	GroupId string `json:"group_id"`
}

Request Object

func (DeleteTemplateGroupRequest) String

type DeleteTemplateGroupResponse

type DeleteTemplateGroupResponse struct {
}

Response Object

func (DeleteTemplateGroupResponse) String

type DeleteTemplateRequest

type DeleteTemplateRequest struct {
	TemplateId int64 `json:"template_id"`
}

Request Object

func (DeleteTemplateRequest) String

func (o DeleteTemplateRequest) String() string

type DeleteTemplateResponse

type DeleteTemplateResponse struct {
}

Response Object

func (DeleteTemplateResponse) String

func (o DeleteTemplateResponse) String() string

type DeleteThumbnailsTaskRequest

type DeleteThumbnailsTaskRequest struct {
	TaskId string `json:"task_id"`
}

Request Object

func (DeleteThumbnailsTaskRequest) String

type DeleteThumbnailsTaskResponse

type DeleteThumbnailsTaskResponse struct {
}

Response Object

func (DeleteThumbnailsTaskResponse) String

type DeleteTranscodingTaskRequest

type DeleteTranscodingTaskRequest struct {
	TaskId int32 `json:"task_id"`
}

Request Object

func (DeleteTranscodingTaskRequest) String

type DeleteTranscodingTaskResponse

type DeleteTranscodingTaskResponse struct {
}

Response Object

func (DeleteTranscodingTaskResponse) String

type DeleteWatermarkTemplateRequest

type DeleteWatermarkTemplateRequest struct {
	TemplateId int32 `json:"template_id"`
}

Request Object

func (DeleteWatermarkTemplateRequest) String

type DeleteWatermarkTemplateResponse

type DeleteWatermarkTemplateResponse struct {
}

Response Object

func (DeleteWatermarkTemplateResponse) String

type DigitalWatermark

type DigitalWatermark struct {
	// 数字水印属性。 - ROBUST:水印鲁棒性最高 - MEDIUM:水印鲁棒性和视频质量折中(默认,暂时只支持该选项) - QUALITY:视频质量最好 - MEZZ:具有最高感官质量的水印 - CAMCORDING:最强大的水印配置文件,支持摄录攻击
	Profile DigitalWatermarkProfile `json:"profile"`
}

func (DigitalWatermark) String

func (o DigitalWatermark) String() string

type DigitalWatermarkProfile

type DigitalWatermarkProfile struct {
	// contains filtered or unexported fields
}

func (DigitalWatermarkProfile) MarshalJSON

func (c DigitalWatermarkProfile) MarshalJSON() ([]byte, error)

func (*DigitalWatermarkProfile) UnmarshalJSON

func (c *DigitalWatermarkProfile) UnmarshalJSON(b []byte) error

type DigitalWatermarkProfileEnum

type DigitalWatermarkProfileEnum struct {
	ROBUST     DigitalWatermarkProfile
	MEDIUM     DigitalWatermarkProfile
	QUALITY    DigitalWatermarkProfile
	MEZZ       DigitalWatermarkProfile
	CAMCORDING DigitalWatermarkProfile
}

func GetDigitalWatermarkProfileEnum

func GetDigitalWatermarkProfileEnum() DigitalWatermarkProfileEnum

type EachEncryptRsp

type EachEncryptRsp struct {
	// 任务Id
	TaskId *string `json:"task_id,omitempty"`
	// 任务执行状态。  取值如下: - NO_TASK:无任务 - WAITING:等待启动 - PROCESSING:加密中 - SUCCEEDED:加密成功 - FAILED:加密失败 - CANCELED:已删除
	Status *string `json:"status,omitempty"`
	// 加密任务启动时间。
	CreateTime *string `json:"create_time,omitempty"`
	// 加密任务结束时间。
	EndTime *string     `json:"end_time,omitempty"`
	Input   *ObsObjInfo `json:"input,omitempty"`
	Output  *ObsObjInfo `json:"output,omitempty"`
	// 加密生成的文件名,数组类型,可能包含多个,包含加密文件名。
	OutputFileName *[]string `json:"output_file_name,omitempty"`
	// 用户数据。
	UserData *string `json:"user_data,omitempty"`
	// 加密任务描述,当加密出现异常时,此字段为异常的原因。
	Description *string `json:"description,omitempty"`
}

func (EachEncryptRsp) String

func (o EachEncryptRsp) String() string

type EffectInfo

type EffectInfo struct {
	// 特效处理开始时间点,单位:秒,精确到小数点后4位
	StartTime *string `json:"start_time,omitempty"`
	// 特效处理结束时间点,单位:秒,精确到小数点后4位
	StopTime *string `json:"stop_time,omitempty"`
	// 相对视频源左上角顶点的水平偏移位置坐标。整数型表示像素值,范围[0,4096],单位px
	Dx *string `json:"dx,omitempty"`
	// 相对视频源左上角顶点的垂直偏移位置坐标。整数型表示像素值,范围[0,4096],单位px
	Dy *string `json:"dy,omitempty"`
	// 特效区域的宽。整数型表示像素值,范围(0,4096],单位px
	Width *string `json:"width,omitempty"`
	// 特效区域的高。整数型表示像素值,范围(0,4096],单位px
	Height *string `json:"height,omitempty"`
}

func (EffectInfo) String

func (o EffectInfo) String() string

type Encryption

type Encryption struct {
	HlsEncrypt *HlsEncrypt `json:"hls_encrypt,omitempty"`
	Multidrm   *Multidrm   `json:"multidrm,omitempty"`
	// 加密预览时长, 单位秒(S), 0 - preview_duration之间的内容不加密
	PreviewDuration *int32 `json:"preview_duration,omitempty"`
}

func (Encryption) String

func (o Encryption) String() string

type ErrorResponse

type ErrorResponse struct {
	// 错误码。
	ErrorCode *string `json:"error_code,omitempty"`
	// 错误描述。
	ErrorMsg *string `json:"error_msg,omitempty"`
}

func (ErrorResponse) String

func (o ErrorResponse) String() string

type ExtractTask

type ExtractTask struct {
	// 任务ID
	TaskId *string `json:"task_id,omitempty"`
	// 任务状态。  取值如下: - INIT:初始状态。 - WAITING:等待启动。 - PROCESSING:处理中。 - SUCCEED:处理成功。 - FAILED:处理失败。 - CANCELED:已取消。
	Status *string `json:"status,omitempty"`
	// 任务创建时间
	CreateTime *string `json:"create_time,omitempty"`
	// 任务启动时间
	StartTime *string `json:"start_time,omitempty"`
	// 任务结束时间
	EndTime *string `json:"end_time,omitempty"`
	// 错误描述
	Description *string     `json:"description,omitempty"`
	Input       *ObsObjInfo `json:"input,omitempty"`
	Output      *ObsObjInfo `json:"output,omitempty"`
	// 用户数据。
	UserData *string   `json:"user_data,omitempty"`
	Metadata *MetaData `json:"metadata,omitempty"`
}

func (ExtractTask) String

func (o ExtractTask) String() string

type HlsEncrypt

type HlsEncrypt struct {
	// 内容加密秘钥
	Key string `json:"key"`
	// 秘钥获取服务的地址
	Url string `json:"url"`
	// 初始向量,base64binary,随机数
	Iv *string `json:"iv,omitempty"`
	// 加密算法。 - AES-128-CTR - AES-128-CBC - SM4CBC  默认值:AES-128-CTR
	Algorithm *string `json:"algorithm,omitempty"`
}

func (HlsEncrypt) String

func (o HlsEncrypt) String() string

type ImageWatermark

type ImageWatermark struct {
	// 水印图片起点相对输出视频顶点的水平偏移量。  设置方法有如下两种:  - 整数型:表示图片起点水平偏移视频顶点的像素值,单位px。取值范围:[0,4096] - 小数型:表示图片起点相对于视频分辨率宽的水平偏移比率。取值范围:(0,1),支持4位小数,如0.9999,超出部分系统自动丢弃。  示例:输出视频分辨率宽1920,设置“dx”为“0.1”,“referpos”为“TopRight”(右上角),则水印图片右上角到视频右顶点在水平方向上偏移距离为192。
	Dx *string `json:"dx,omitempty"`
	// 水印图片起点相对输出视频顶点的垂直偏移量。  - 设置方法有如下两种:整数型:表示图片起点垂直偏移视频顶点的像素值,单位px。取值范围:[0,4096] - 小数型:表示图片起点相对于视频分辨率高的垂直偏移比率。取值范围:(0,1),支持4位小数,如0.9999,超出部分系统自动丢弃。  示例:输出视频分辨率高1080,设置“dy”为“0.1”,“referpos”为“TopRight”(右上角),则水印图片右上角到视频右顶点在垂直方向上的偏移距离为108。
	Dy *string `json:"dy,omitempty"`
	// 水印的位置。  取值如下: - TopRight:右上角。 - TopLeft:左上角。 - BottomRight:右下角。 - BottomLeft:左下角。
	Referpos *string `json:"referpos,omitempty"`
	// 水印开始时间,与“timeline_duration”配合使用。  取值范围:数字。  单位:秒。
	TimelineStart *string `json:"timeline_start,omitempty"`
	// 水印持续时间,与“timeline_start”配合使用。  取值范围:[数字,ToEND]。“ToEND”表示持续到视频结束。  默认值:ToEND。
	TimelineDuration *string `json:"timeline_duration,omitempty"`
	// 图片水印处理方式,type设置为Image时有效。  取值如下:  - Original:只做简单缩放,不做其他处理。 - Grayed:彩色图片变灰。 - Transparent:透明化。
	ImageProcess *string `json:"image_process,omitempty"`
	// 水印图片宽,值有两种形式: - 整数型代水印图片宽的像素值,范围[8,4096],单位px。 - 小数型代表相对输出视频分辨率宽的比率,范围(0,1),支持4位小数,如0.9999,超出部分系统自动丢弃。
	Width *string `json:"width,omitempty"`
	// 水印图片高,值有两种形式: - 整数型代表水印图片高的像素值,范围[8,4096],单位px。 - 小数型代表相对输出视频分辨率高的比率,范围(0,1),支持4位小数,如0.9999,超出部分系统自动丢弃。
	Height *string `json:"height,omitempty"`
	// 水印叠加母体  取值如下: - input :水印叠加在输入片源上,转码输出后实际大小按图像等比例缩放 - output :水印叠加在转码输出文件上。
	Base *ImageWatermarkBase `json:"base,omitempty"`
}

func (ImageWatermark) String

func (o ImageWatermark) String() string

type ImageWatermarkBase

type ImageWatermarkBase struct {
	// contains filtered or unexported fields
}

func (ImageWatermarkBase) MarshalJSON

func (c ImageWatermarkBase) MarshalJSON() ([]byte, error)

func (*ImageWatermarkBase) UnmarshalJSON

func (c *ImageWatermarkBase) UnmarshalJSON(b []byte) error

type ImageWatermarkBaseEnum

type ImageWatermarkBaseEnum struct {
	INPUT  ImageWatermarkBase
	OUTPUT ImageWatermarkBase
}

func GetImageWatermarkBaseEnum

func GetImageWatermarkBaseEnum() ImageWatermarkBaseEnum

type ListAnimatedGraphicsTaskRequest

type ListAnimatedGraphicsTaskRequest struct {
	XLanguage *string                                `json:"x-language,omitempty"`
	TaskId    *[]string                              `json:"task_id,omitempty"`
	Status    *ListAnimatedGraphicsTaskRequestStatus `json:"status,omitempty"`
	StartTime *string                                `json:"start_time,omitempty"`
	EndTime   *string                                `json:"end_time,omitempty"`
	Page      *int32                                 `json:"page,omitempty"`
	Size      *int32                                 `json:"size,omitempty"`
}

Request Object

func (ListAnimatedGraphicsTaskRequest) String

type ListAnimatedGraphicsTaskRequestStatus

type ListAnimatedGraphicsTaskRequestStatus struct {
	// contains filtered or unexported fields
}

func (ListAnimatedGraphicsTaskRequestStatus) MarshalJSON

func (c ListAnimatedGraphicsTaskRequestStatus) MarshalJSON() ([]byte, error)

func (*ListAnimatedGraphicsTaskRequestStatus) UnmarshalJSON

func (c *ListAnimatedGraphicsTaskRequestStatus) UnmarshalJSON(b []byte) error

type ListAnimatedGraphicsTaskResponse

type ListAnimatedGraphicsTaskResponse struct {
	// 任务总数
	Total *int32 `json:"total,omitempty"`
	// 任务列表
	Tasks *[]AnimatedGraphicsTask `json:"tasks,omitempty"`
}

Response Object

func (ListAnimatedGraphicsTaskResponse) String

type ListEncryptTaskRequest

type ListEncryptTaskRequest struct {
	TaskId    *[]string                     `json:"task_id,omitempty"`
	Status    *ListEncryptTaskRequestStatus `json:"status,omitempty"`
	StartTime *string                       `json:"start_time,omitempty"`
	EndTime   *string                       `json:"end_time,omitempty"`
	Page      *int32                        `json:"page,omitempty"`
	Size      *int32                        `json:"size,omitempty"`
}

Request Object

func (ListEncryptTaskRequest) String

func (o ListEncryptTaskRequest) String() string

type ListEncryptTaskRequestStatus

type ListEncryptTaskRequestStatus struct {
	// contains filtered or unexported fields
}

func (ListEncryptTaskRequestStatus) MarshalJSON

func (c ListEncryptTaskRequestStatus) MarshalJSON() ([]byte, error)

func (*ListEncryptTaskRequestStatus) UnmarshalJSON

func (c *ListEncryptTaskRequestStatus) UnmarshalJSON(b []byte) error

type ListEncryptTaskResponse

type ListEncryptTaskResponse struct {
	// 任务列表
	TaskArray *[]EachEncryptRsp `json:"task_array,omitempty"`
	// 是否截断
	IsTruncated *int32 `json:"is_truncated,omitempty"`
	// 查询结果数量
	Total *int32 `json:"total,omitempty"`
}

Response Object

func (ListEncryptTaskResponse) String

func (o ListEncryptTaskResponse) String() string

type ListExtractTaskRequest

type ListExtractTaskRequest struct {
	XLanguage *string                       `json:"x-language,omitempty"`
	TaskId    *[]string                     `json:"task_id,omitempty"`
	Status    *ListExtractTaskRequestStatus `json:"status,omitempty"`
	StartTime *string                       `json:"start_time,omitempty"`
	EndTime   *string                       `json:"end_time,omitempty"`
	Page      *int32                        `json:"page,omitempty"`
	Size      *int32                        `json:"size,omitempty"`
}

Request Object

func (ListExtractTaskRequest) String

func (o ListExtractTaskRequest) String() string

type ListExtractTaskRequestStatus

type ListExtractTaskRequestStatus struct {
	// contains filtered or unexported fields
}

func (ListExtractTaskRequestStatus) MarshalJSON

func (c ListExtractTaskRequestStatus) MarshalJSON() ([]byte, error)

func (*ListExtractTaskRequestStatus) UnmarshalJSON

func (c *ListExtractTaskRequestStatus) UnmarshalJSON(b []byte) error

type ListExtractTaskResponse

type ListExtractTaskResponse struct {
	// 任务总数
	Total *int32 `json:"total,omitempty"`
	// 任务列表
	Tasks *[]ExtractTask `json:"tasks,omitempty"`
}

Response Object

func (ListExtractTaskResponse) String

func (o ListExtractTaskResponse) String() string

type ListRemuxTaskRequest

type ListRemuxTaskRequest struct {
	TaskId      *[]string                   `json:"task_id,omitempty"`
	Status      *ListRemuxTaskRequestStatus `json:"status,omitempty"`
	StartTime   *string                     `json:"start_time,omitempty"`
	EndTime     *string                     `json:"end_time,omitempty"`
	InputBucket *string                     `json:"input_bucket,omitempty"`
	InputObject *string                     `json:"input_object,omitempty"`
	Page        *int32                      `json:"page,omitempty"`
	Size        *int32                      `json:"size,omitempty"`
}

Request Object

func (ListRemuxTaskRequest) String

func (o ListRemuxTaskRequest) String() string

type ListRemuxTaskRequestStatus

type ListRemuxTaskRequestStatus struct {
	// contains filtered or unexported fields
}

func (ListRemuxTaskRequestStatus) MarshalJSON

func (c ListRemuxTaskRequestStatus) MarshalJSON() ([]byte, error)

func (*ListRemuxTaskRequestStatus) UnmarshalJSON

func (c *ListRemuxTaskRequestStatus) UnmarshalJSON(b []byte) error

type ListRemuxTaskResponse

type ListRemuxTaskResponse struct {
	// 任务总数
	Total *int32 `json:"total,omitempty"`
	// 任务列表
	Tasks *[]RemuxTask `json:"tasks,omitempty"`
}

Response Object

func (ListRemuxTaskResponse) String

func (o ListRemuxTaskResponse) String() string

type ListTemplateGroupRequest

type ListTemplateGroupRequest struct {
	GroupId   *[]string `json:"group_id,omitempty"`
	GroupName *[]string `json:"group_name,omitempty"`
	Page      *int32    `json:"page,omitempty"`
	Size      *int32    `json:"size,omitempty"`
}

Request Object

func (ListTemplateGroupRequest) String

func (o ListTemplateGroupRequest) String() string

type ListTemplateGroupResponse

type ListTemplateGroupResponse struct {
	// 模板组信息列表。
	TemplateGroupList *[]TemplateGroup `json:"template_group_list,omitempty"`
	// 转码模板组总数
	Total *int32 `json:"total,omitempty"`
}

Response Object

func (ListTemplateGroupResponse) String

func (o ListTemplateGroupResponse) String() string

type ListTemplateRequest

type ListTemplateRequest struct {
	TemplateId *[]int32 `json:"template_id,omitempty"`
	Page       *int32   `json:"page,omitempty"`
	Size       *int32   `json:"size,omitempty"`
}

Request Object

func (ListTemplateRequest) String

func (o ListTemplateRequest) String() string

type ListTemplateResponse

type ListTemplateResponse struct {
	// 转码模板
	TemplateArray *[]TemplateInfo `json:"template_array,omitempty"`
	// 转码模板总数
	Total *int32 `json:"total,omitempty"`
}

Response Object

func (ListTemplateResponse) String

func (o ListTemplateResponse) String() string

type ListThumbnailsTaskRequest

type ListThumbnailsTaskRequest struct {
	XLanguage *string                          `json:"x-language,omitempty"`
	TaskId    *[]string                        `json:"task_id,omitempty"`
	Status    *ListThumbnailsTaskRequestStatus `json:"status,omitempty"`
	StartTime *string                          `json:"start_time,omitempty"`
	EndTime   *string                          `json:"end_time,omitempty"`
	Page      *int32                           `json:"page,omitempty"`
	Size      *int32                           `json:"size,omitempty"`
}

Request Object

func (ListThumbnailsTaskRequest) String

func (o ListThumbnailsTaskRequest) String() string

type ListThumbnailsTaskRequestStatus

type ListThumbnailsTaskRequestStatus struct {
	// contains filtered or unexported fields
}

func (ListThumbnailsTaskRequestStatus) MarshalJSON

func (c ListThumbnailsTaskRequestStatus) MarshalJSON() ([]byte, error)

func (*ListThumbnailsTaskRequestStatus) UnmarshalJSON

func (c *ListThumbnailsTaskRequestStatus) UnmarshalJSON(b []byte) error

type ListThumbnailsTaskResponse

type ListThumbnailsTaskResponse struct {
	// 截图任务组
	TaskArray *[]ThumbTask `json:"task_array,omitempty"`
	// 查询结果是否被截取。 - 1代表被截取,即还有结果未被返回,可以通过设置page和size参数继续查询。 - 0代表未被截取,即所有结果已被返回。
	IsTruncated *int32 `json:"is_truncated,omitempty"`
	// 查询结果的数量。
	Total *int32 `json:"total,omitempty"`
}

Response Object

func (ListThumbnailsTaskResponse) String

type ListTranscodeDetailRequest

type ListTranscodeDetailRequest struct {
	TaskId *[]string `json:"task_id,omitempty"`
}

Request Object

func (ListTranscodeDetailRequest) String

type ListTranscodeDetailResponse

type ListTranscodeDetailResponse struct {
	// 转码详情任务组
	TaskArray *[]TaskDetailInfo `json:"task_array,omitempty"`
}

Response Object

func (ListTranscodeDetailResponse) String

type ListTranscodingTaskRequest

type ListTranscodingTaskRequest struct {
	XLanguage *string  `json:"x-language,omitempty"`
	TaskId    *[]int64 `json:"task_id,omitempty"`
	Status    *string  `json:"status,omitempty"`
	StartTime *string  `json:"start_time,omitempty"`
	EndTime   *string  `json:"end_time,omitempty"`
	Page      *int32   `json:"page,omitempty"`
	Size      *int32   `json:"size,omitempty"`
}

Request Object

func (ListTranscodingTaskRequest) String

type ListTranscodingTaskResponse

type ListTranscodingTaskResponse struct {
	// 返回任务组
	TaskArray *[]QueryTranscodingsTaskResponse `json:"task_array,omitempty"`
	// 查询结果是否被截取。 - 1:表示被截取,即还有结果未被返回,可以通过设置page和size参数继续查询。 - 0:表示未被截取,即所有结果已被返回。
	IsTruncated *int32 `json:"is_truncated,omitempty"`
	// 查询结果的数量。
	Total *int32 `json:"total,omitempty"`
}

Response Object

func (ListTranscodingTaskResponse) String

type ListWatermarkTemplateRequest

type ListWatermarkTemplateRequest struct {
	TemplateId *[]int32 `json:"template_id,omitempty"`
	Page       *int32   `json:"page,omitempty"`
	Size       *int32   `json:"size,omitempty"`
}

Request Object

func (ListWatermarkTemplateRequest) String

type ListWatermarkTemplateResponse

type ListWatermarkTemplateResponse struct {
	// 水印模板总数。
	Total *int32 `json:"total,omitempty"`
	// 水印模板
	Templates *[]WatermarkTemplate `json:"templates,omitempty"`
	Error     *XCodeError          `json:"error,omitempty"`
}

Response Object

func (ListWatermarkTemplateResponse) String

type MediaDetail

type MediaDetail struct {
	// 任务名称
	Features   *[]string   `json:"features,omitempty"`
	OriginPara *OriginPara `json:"origin_para,omitempty"`
	// 多路输出片源信息
	OutputVideoParas     *[]OutputVideoPara   `json:"output_video_paras,omitempty"`
	OutputThumbnailPara  *OutputThumbnailPara `json:"output_thumbnail_para,omitempty"`
	OutputWatermarkParas *OutputWatermarkPara `json:"output_watermark_paras,omitempty"`
}

func (MediaDetail) String

func (o MediaDetail) String() string

type MetaData

type MetaData struct {
	// 文件大小。
	Size *int64 `json:"size,omitempty"`
	// 视频时长,带小数位显示。单位:秒。
	DurationMs *float64 `json:"duration_ms,omitempty"`
	// 视频时长。单位:秒。
	Duration *int64 `json:"duration,omitempty"`
	// 文件封装格式。
	Format *string `json:"format,omitempty"`
	// 总码率。
	Bitrate *int32 `json:"bitrate,omitempty"`
	// 视频流元数据。
	Video *[]VideoInfo `json:"video,omitempty"`
	// 音频流元数据。
	Audio *[]AudioInfo `json:"audio,omitempty"`
}

func (MetaData) String

func (o MetaData) String() string

type ModifyTransTemplateGroup

type ModifyTransTemplateGroup struct {
	// 模板组ID
	GroupId *string `json:"group_id,omitempty"`
	// 模板组名称
	Name *string `json:"name,omitempty"`
	// 视频信息列表
	Videos      *[]VideoObj  `json:"videos,omitempty"`
	Audio       *Audio       `json:"audio,omitempty"`
	VideoCommon *VideoCommon `json:"video_common,omitempty"`
	Common      *Common      `json:"common,omitempty"`
}

func (ModifyTransTemplateGroup) String

func (o ModifyTransTemplateGroup) String() string

type ModifyTransTemplateReq

type ModifyTransTemplateReq struct {
	// 转码模板ID
	TemplateId int64 `json:"template_id"`
	// 转码模板名称。
	TemplateName string  `json:"template_name"`
	Video        *Video  `json:"video,omitempty"`
	Audio        *Audio  `json:"audio,omitempty"`
	Common       *Common `json:"common"`
}

func (ModifyTransTemplateReq) String

func (o ModifyTransTemplateReq) String() string

type MulInputFileInfo

type MulInputFileInfo struct {
	// 语言标签。
	Language *string     `json:"language,omitempty"`
	Input    *ObsObjInfo `json:"input,omitempty"`
}

func (MulInputFileInfo) String

func (o MulInputFileInfo) String() string

type MultiAudio

type MultiAudio struct {
	// 音轨信息
	TracksInfo *[]TracksInfo `json:"tracks_info,omitempty"`
	// 音频文件
	AudioFiles *[]AudioFile `json:"audio_files,omitempty"`
	// 默认语言
	DefaultLanguage *string `json:"default_language,omitempty"`
}

func (MultiAudio) String

func (o MultiAudio) String() string

type MultiTaskInfo

type MultiTaskInfo struct {
	// 转码模板ID。
	TemplateId *int32         `json:"template_id,omitempty"`
	Error      *ErrorResponse `json:"error,omitempty"`
	OutputFile *SourceInfo    `json:"output_file,omitempty"`
}

func (MultiTaskInfo) String

func (o MultiTaskInfo) String() string

type Multidrm

type Multidrm struct {
	// 唯一标识
	ContentId *string `json:"content_id,omitempty"`
	// 定义数据流的类型,取值为DASH或HLS
	StreamingMode MultidrmStreamingMode `json:"streaming_mode"`
	// 音频加密开关。  取值如下: - 0:标识音频不加密。 - 1:标识音频加密。  默认值:0。 该参数只对dash有效。
	EncryptAudio *int32 `json:"encrypt_audio,omitempty"`
	// 定义加密方式。  取值如下: - 16418(AES-128,CBC) - 16420(AES-128,CTR) - 16422(SM4CBC)
	Emi *int32 `json:"emi,omitempty"`
	// HLS视频加密控制参数。  取值如下: - PLAYREADY - CHINA_DRM - WIDEVINE
	DrmList []string `json:"drm_list"`
}

func (Multidrm) String

func (o Multidrm) String() string

type MultidrmStreamingMode

type MultidrmStreamingMode struct {
	// contains filtered or unexported fields
}

func (MultidrmStreamingMode) MarshalJSON

func (c MultidrmStreamingMode) MarshalJSON() ([]byte, error)

func (*MultidrmStreamingMode) UnmarshalJSON

func (c *MultidrmStreamingMode) UnmarshalJSON(b []byte) error

type MultidrmStreamingModeEnum

type MultidrmStreamingModeEnum struct {
	DASH MultidrmStreamingMode
	HLS  MultidrmStreamingMode
}

func GetMultidrmStreamingModeEnum

func GetMultidrmStreamingModeEnum() MultidrmStreamingModeEnum

type ObsObjInfo

type ObsObjInfo struct {
	// OBS的bucket名称。
	Bucket string `json:"bucket"`
	// 输入OBS Bucket所在数据中心(OBS Location)。
	Location string `json:"location"`
	// OBS对象路径,遵守OSS Object定义。  - 当用于指示input时,需要指定到具体对象。 - 当用于指示output时, 只需指定到转码结果期望存放的路径。
	Object string `json:"object"`
	// 文件名,仅用于转封装指定输出名称。  - 当指定了此参数时,输出的对象名为object/file_name 。 - 当不指定此参数时,输出的对象名为object/xxx,其中xxx由MPC指定。
	FileName *string `json:"file_name,omitempty"`
}

func (ObsObjInfo) String

func (o ObsObjInfo) String() string

type OriginPara

type OriginPara struct {
	// 片源时长
	Duration *int64 `json:"duration,omitempty"`
	// 文件格式
	FileFormat *string    `json:"file_format,omitempty"`
	Video      *VideoInfo `json:"video,omitempty"`
	Audio      *AudioInfo `json:"audio,omitempty"`
}

func (OriginPara) String

func (o OriginPara) String() string

type OutputPolicy

type OutputPolicy struct {
	// 输出策略。  取值如下: - discard - transcode  >- 当视频参数中的“output_policy”为\"discard\",且音频参数中的“output_policy”为“transcode”时,表示只输出音频。 >- 当视频参数中的“output_policy”为\"transcode\",且音频参数中的“output_policy”为“discard”时,表示只输出视频。 >- 同时为\"discard\"时不合法。 >- 同时为“transcode”时,表示输出音视频。
	OutputPolicy *OutputPolicyOutputPolicy `json:"output_policy,omitempty"`
}

func (OutputPolicy) String

func (o OutputPolicy) String() string

type OutputPolicyOutputPolicy

type OutputPolicyOutputPolicy struct {
	// contains filtered or unexported fields
}

func (OutputPolicyOutputPolicy) MarshalJSON

func (c OutputPolicyOutputPolicy) MarshalJSON() ([]byte, error)

func (*OutputPolicyOutputPolicy) UnmarshalJSON

func (c *OutputPolicyOutputPolicy) UnmarshalJSON(b []byte) error

type OutputPolicyOutputPolicyEnum

type OutputPolicyOutputPolicyEnum struct {
	TRANSCODE OutputPolicyOutputPolicy
	DISCARD   OutputPolicyOutputPolicy
	COPY      OutputPolicyOutputPolicy
}

func GetOutputPolicyOutputPolicyEnum

func GetOutputPolicyOutputPolicyEnum() OutputPolicyOutputPolicyEnum

type OutputThumbnailPara

type OutputThumbnailPara struct {
	// 抽帧图片张数
	TotalPictures *int32 `json:"total_pictures,omitempty"`
	// 抽帧图片宽度
	Width *int32 `json:"width,omitempty"`
	// 抽帧图片高度
	Height *int32 `json:"height,omitempty"`
	// 抽帧文件名
	FileName *string     `json:"file_name,omitempty"`
	Output   *ObsObjInfo `json:"output,omitempty"`
}

func (OutputThumbnailPara) String

func (o OutputThumbnailPara) String() string

type OutputVideoPara

type OutputVideoPara struct {
	// 输出视频对应的模板ID
	TemplateId *int32 `json:"template_id,omitempty"`
	// 视频大小
	Size *int64 `json:"size,omitempty"`
	// 视频封装格式
	Pack  *string    `json:"pack,omitempty"`
	Video *VideoInfo `json:"video,omitempty"`
	Audio *AudioInfo `json:"audio,omitempty"`
	// 输出片源文件名
	FileName *string `json:"file_name,omitempty"`
	// 折算后视频时长
	ConverDuration *float64    `json:"conver_duration,omitempty"`
	Error          *XCodeError `json:"error,omitempty"`
}

func (OutputVideoPara) String

func (o OutputVideoPara) String() string

type OutputWatermarkPara

type OutputWatermarkPara struct {
	// 水印时长
	TimeDuration *int32 `json:"time_duration,omitempty"`
}

func (OutputWatermarkPara) String

func (o OutputWatermarkPara) String() string

type PicInfo

type PicInfo struct {
	// 截图文件名。
	PicName *string `json:"pic_name,omitempty"`
}

func (PicInfo) String

func (o PicInfo) String() string

type QualityEnhance

type QualityEnhance struct {
	// 针对一般质量、无明显问题的普通片源,通过增强、锐化等技术明显提升主观效果。单纯该处理操作前后,分辨率、帧率等参数不发生变化。 可和old_repair、super_resolution、super_framerate、SDRToHDR组合使用。
	NormalEnhance *QualityEnhanceNormalEnhance `json:"normal_enhance,omitempty"`
	// 针对旧片、老片,画质主观质量比较低的片源,通过降噪、去压缩失真等视频增强技术,提升画质主观效果。
	Revive *QualityEnhanceRevive `json:"revive,omitempty"`
	// 超动态范围,提升视频动态范围,明显提升片源动态范围。单纯该处理操作前后,分辨率、帧率等参数不发生变化,动态范围、色域范围、码率发生变化。 可和normal_ enhance组合使用。SDRtoHDR10(默认),SDRtoHLG(暂不支持)
	SdrToHdr *QualityEnhanceSdrToHdr `json:"sdr_to_hdr,omitempty"`
}

func (QualityEnhance) String

func (o QualityEnhance) String() string

type QualityEnhanceNormalEnhance

type QualityEnhanceNormalEnhance struct {
	// contains filtered or unexported fields
}

func (QualityEnhanceNormalEnhance) MarshalJSON

func (c QualityEnhanceNormalEnhance) MarshalJSON() ([]byte, error)

func (*QualityEnhanceNormalEnhance) UnmarshalJSON

func (c *QualityEnhanceNormalEnhance) UnmarshalJSON(b []byte) error

type QualityEnhanceNormalEnhanceEnum

type QualityEnhanceNormalEnhanceEnum struct {
	NORMAL QualityEnhanceNormalEnhance
}

func GetQualityEnhanceNormalEnhanceEnum

func GetQualityEnhanceNormalEnhanceEnum() QualityEnhanceNormalEnhanceEnum

type QualityEnhanceRevive

type QualityEnhanceRevive struct {
	// contains filtered or unexported fields
}

func (QualityEnhanceRevive) MarshalJSON

func (c QualityEnhanceRevive) MarshalJSON() ([]byte, error)

func (*QualityEnhanceRevive) UnmarshalJSON

func (c *QualityEnhanceRevive) UnmarshalJSON(b []byte) error

type QualityEnhanceReviveEnum

type QualityEnhanceReviveEnum struct {
	NORMAL QualityEnhanceRevive
}

func GetQualityEnhanceReviveEnum

func GetQualityEnhanceReviveEnum() QualityEnhanceReviveEnum

type QualityEnhanceSdrToHdr

type QualityEnhanceSdrToHdr struct {
	// contains filtered or unexported fields
}

func (QualityEnhanceSdrToHdr) MarshalJSON

func (c QualityEnhanceSdrToHdr) MarshalJSON() ([]byte, error)

func (*QualityEnhanceSdrToHdr) UnmarshalJSON

func (c *QualityEnhanceSdrToHdr) UnmarshalJSON(b []byte) error

type QualityEnhanceSdrToHdrEnum

type QualityEnhanceSdrToHdrEnum struct {
	SD_RTO_HDR10 QualityEnhanceSdrToHdr
}

func GetQualityEnhanceSdrToHdrEnum

func GetQualityEnhanceSdrToHdrEnum() QualityEnhanceSdrToHdrEnum

type QueryTransTemplate

type QueryTransTemplate struct {
	// 转码模板名称。
	TemplateName string `json:"template_name"`
	// 租户ID。
	TenantId *string `json:"tenant_id,omitempty"`
	Video    *Video  `json:"video"`
	Audio    *Audio  `json:"audio,omitempty"`
	Common   *Common `json:"common,omitempty"`
}

func (QueryTransTemplate) String

func (o QueryTransTemplate) String() string

type QueryTranscodingsTaskResponse

type QueryTranscodingsTaskResponse struct {
	// 任务ID。
	TaskId *string `json:"task_id,omitempty"`
	// 任务执行状态。
	Status *QueryTranscodingsTaskResponseStatus `json:"status,omitempty"`
	// 转码任务启动时间
	CreateTime *string `json:"create_time,omitempty"`
	// 转码任务结束时间
	EndTime *string `json:"end_time,omitempty"`
	// 转码任务对应的转码模板ID
	TransTemplateId *[]int32    `json:"trans_template_id,omitempty"`
	Input           *ObsObjInfo `json:"input,omitempty"`
	Output          *ObsObjInfo `json:"output,omitempty"`
	// 转码生成的文件名,数组类型,可能包含多个,包含截图文件名。
	OutputFileName *[]string `json:"output_file_name,omitempty"`
	// 用户自定义数据。
	UserData *string `json:"user_data,omitempty"`
	// 转码任务的返回码。
	ErrorCode *string `json:"error_code,omitempty"`
	// 转码任务描述,当转码出现异常时,此字段为异常的原因。
	Description *string `json:"description,omitempty"`
	// 转码成功,但音频采样率过低时的提示。
	Tips *string `json:"tips,omitempty"`
	// 质检文件输出路径
	OutputUrl       *string          `json:"output_url,omitempty"`
	TranscodeDetail *TranscodeDetail `json:"transcode_detail,omitempty"`
	ThumbnailOutput *ObsObjInfo      `json:"thumbnail_output,omitempty"`
	// 截图压缩包名。
	ThumbnailOutputname *string `json:"thumbnail_outputname,omitempty"`
	// 截图文件信息。
	PicInfo     *[]PicInfo   `json:"pic_info,omitempty"`
	AuditReport *AuditReport `json:"audit_report,omitempty"`
}

func (QueryTranscodingsTaskResponse) String

type QueryTranscodingsTaskResponseStatus

type QueryTranscodingsTaskResponseStatus struct {
	// contains filtered or unexported fields
}

func (QueryTranscodingsTaskResponseStatus) MarshalJSON

func (c QueryTranscodingsTaskResponseStatus) MarshalJSON() ([]byte, error)

func (*QueryTranscodingsTaskResponseStatus) UnmarshalJSON

func (c *QueryTranscodingsTaskResponseStatus) UnmarshalJSON(b []byte) error

type RemuxOutputParam

type RemuxOutputParam struct {
	// 输出格式。
	Format *RemuxOutputParamFormat `json:"format,omitempty"`
	// 分片时长,仅当“format”为“HLS”时有效。  取值范围:[2,10]。  默认值: 5。  单位:秒。
	SegmentDuration *int32 `json:"segment_duration,omitempty"`
	// 输出媒体是否去除片源的中metadata信息。
	RemoveMeta *bool `json:"remove_meta,omitempty"`
}

func (RemuxOutputParam) String

func (o RemuxOutputParam) String() string

type RemuxOutputParamFormat

type RemuxOutputParamFormat struct {
	// contains filtered or unexported fields
}

func (RemuxOutputParamFormat) MarshalJSON

func (c RemuxOutputParamFormat) MarshalJSON() ([]byte, error)

func (*RemuxOutputParamFormat) UnmarshalJSON

func (c *RemuxOutputParamFormat) UnmarshalJSON(b []byte) error

type RemuxOutputParamFormatEnum

type RemuxOutputParamFormatEnum struct {
	HLS RemuxOutputParamFormat
	MP4 RemuxOutputParamFormat
}

func GetRemuxOutputParamFormatEnum

func GetRemuxOutputParamFormatEnum() RemuxOutputParamFormatEnum

type RemuxRetryReq

type RemuxRetryReq struct {
	// 任务Id。
	TaskId *string `json:"task_id,omitempty"`
}

func (RemuxRetryReq) String

func (o RemuxRetryReq) String() string

type RemuxTask

type RemuxTask struct {
	// 任务ID
	TaskId *string `json:"task_id,omitempty"`
	// 任务状态。  取值如下: - INIT:初始状态。 - WAITING:等待启动。 - PROCESSING:处理中。 - SUCCEED:处理成功。 - FAILED:处理失败。 - CANCELED:已取消。
	Status *string `json:"status,omitempty"`
	// 任务创建时间
	CreateTime *string `json:"create_time,omitempty"`
	// 任务启动时间
	StartTime *string `json:"start_time,omitempty"`
	// 任务结束时间
	EndTime *string `json:"end_time,omitempty"`
	// 错误描述
	Description *string     `json:"description,omitempty"`
	Input       *ObsObjInfo `json:"input,omitempty"`
	Output      *ObsObjInfo `json:"output,omitempty"`
	// 用户数据。
	UserData    *string           `json:"user_data,omitempty"`
	OutputParam *RemuxOutputParam `json:"output_param,omitempty"`
	// 任务完成进度百分比值。
	CompleteRatio *int32 `json:"complete_ratio,omitempty"`
}

func (RemuxTask) String

func (o RemuxTask) String() string

type SourceInfo

type SourceInfo struct {
	// 片源时长,单位:秒
	Duration *int32 `json:"duration,omitempty"`
	// 片源时长,单位:毫秒
	DurationMs *int64 `json:"duration_ms,omitempty"`
	// 片源格式
	Format *string `json:"format,omitempty"`
	// 片源大小
	Size      *int64     `json:"size,omitempty"`
	VideoInfo *VideoInfo `json:"video_info,omitempty"`
	// 音频信息
	AudioInfo *[]AudioInfo `json:"audio_info,omitempty"`
}

func (SourceInfo) String

func (o SourceInfo) String() string

type SpecialEffect

type SpecialEffect struct {
	// 特效处理类型。取值: Blur(水印模糊化) Mosaic(水印打马赛克,暂不支持) Replace(替换,暂不支持)
	Type *SpecialEffectType `json:"type,omitempty"`
	// On:表示自动检测特效处理的参数信息,如水印的时间、位置信息等,无需输入参数信息effectinfos OFF:表示需输入特效处理的相关参数信息effectinfos
	AutoDetect *string `json:"auto_detect,omitempty"`
	// 特效处理相关参数,数组 约束:1)每帧视频最多处理2个指定区域;2)每个视频最多处理20个指定区域。
	EffectInfos *[]EffectInfo `json:"effect_infos,omitempty"`
}

func (SpecialEffect) String

func (o SpecialEffect) String() string

type SpecialEffectType

type SpecialEffectType struct {
	// contains filtered or unexported fields
}

func (SpecialEffectType) MarshalJSON

func (c SpecialEffectType) MarshalJSON() ([]byte, error)

func (*SpecialEffectType) UnmarshalJSON

func (c *SpecialEffectType) UnmarshalJSON(b []byte) error

type SpecialEffectTypeEnum

type SpecialEffectTypeEnum struct {
	BLUR    SpecialEffectType
	MOSAIC  SpecialEffectType
	REPLACE SpecialEffectType
}

func GetSpecialEffectTypeEnum

func GetSpecialEffectTypeEnum() SpecialEffectTypeEnum

type Subtitle

type Subtitle struct {
	Input *ObsObjInfo `json:"input,omitempty"`
	// 多字幕文件地址。
	Inputs *[]MulInputFileInfo `json:"inputs,omitempty"`
	// 字幕类型
	SubtitleType *int32 `json:"subtitle_type,omitempty"`
}

func (Subtitle) String

func (o Subtitle) String() string

type SystemProcess

type SystemProcess struct {
	// 追加转码类型。  取值如下: - SUBTITLE:追加字幕 - AUDIO:追加音频 - VIDEO:追加视频(原有追加新分辨率视频)
	AppendType *SystemProcessAppendType `json:"append_type,omitempty"`
	HlsIndex   *ObsObjInfo              `json:"hls_index,omitempty"`
	DashIndex  *ObsObjInfo              `json:"dash_index,omitempty"`
}

func (SystemProcess) String

func (o SystemProcess) String() string

type SystemProcessAppendType

type SystemProcessAppendType struct {
	// contains filtered or unexported fields
}

func (SystemProcessAppendType) MarshalJSON

func (c SystemProcessAppendType) MarshalJSON() ([]byte, error)

func (*SystemProcessAppendType) UnmarshalJSON

func (c *SystemProcessAppendType) UnmarshalJSON(b []byte) error

type SystemProcessAppendTypeEnum

type SystemProcessAppendTypeEnum struct {
	SUBTITLE SystemProcessAppendType
	AUDIO    SystemProcessAppendType
	VIDEO    SystemProcessAppendType
}

func GetSystemProcessAppendTypeEnum

func GetSystemProcessAppendTypeEnum() SystemProcessAppendTypeEnum

type TaskDetailInfo

type TaskDetailInfo struct {
	// 任务ID。
	TaskId *string `json:"task_id,omitempty"`
	// 任务执行状态,取值如下。
	Status *TaskDetailInfoStatus `json:"status,omitempty"`
	// 转码任务启动时间
	CreateTime *string `json:"create_time,omitempty"`
	// 下发xcode任务成功时间
	StartTime *string `json:"start_time,omitempty"`
	// 转码任务结束时间
	EndTime *string     `json:"end_time,omitempty"`
	Input   *ObsObjInfo `json:"input,omitempty"`
	Output  *ObsObjInfo `json:"output,omitempty"`
	// 用户数据。
	UserData    *string      `json:"user_data,omitempty"`
	AuditReport *AuditReport `json:"audit_report,omitempty"`
	// 质检文件输出路径
	OutputUrl *string `json:"output_url,omitempty"`
	// 转码任务错误码。
	ErrorCode *string `json:"error_code,omitempty"`
	// 转码任务描述,当转码出现异常时,此字段为异常的原因。
	Description *string        `json:"description,omitempty"`
	MediaDetail *MediaDetail   `json:"media_detail,omitempty"`
	XcodeError  *ErrorResponse `json:"xcode_error,omitempty"`
}

func (TaskDetailInfo) String

func (o TaskDetailInfo) String() string

type TaskDetailInfoStatus

type TaskDetailInfoStatus struct {
	// contains filtered or unexported fields
}

func (TaskDetailInfoStatus) MarshalJSON

func (c TaskDetailInfoStatus) MarshalJSON() ([]byte, error)

func (*TaskDetailInfoStatus) UnmarshalJSON

func (c *TaskDetailInfoStatus) UnmarshalJSON(b []byte) error

type TaskDetailInfoStatusEnum

type TaskDetailInfoStatusEnum struct {
	NO_TASK          TaskDetailInfoStatus
	WAITING          TaskDetailInfoStatus
	TRANSCODING      TaskDetailInfoStatus
	SUCCEEDED        TaskDetailInfoStatus
	FAILED           TaskDetailInfoStatus
	CANCELED         TaskDetailInfoStatus
	NEED_TO_BE_AUDIT TaskDetailInfoStatus
}

func GetTaskDetailInfoStatusEnum

func GetTaskDetailInfoStatusEnum() TaskDetailInfoStatusEnum

type TemplateExtend

type TemplateExtend struct {
	Audio *OutputPolicy `json:"audio,omitempty"`
}

func (TemplateExtend) String

func (o TemplateExtend) String() string

type TemplateGroup

type TemplateGroup struct {
	// 模板组id
	GroupId *string `json:"group_id,omitempty"`
	// 模板组名称
	Name *string `json:"name,omitempty"`
	// 模板组模板ID
	TemplateIds *[]int32 `json:"template_ids,omitempty"`
	// 视频信息列表
	Videos      *[]VideoAndTemplate `json:"videos,omitempty"`
	Audio       *Audio              `json:"audio,omitempty"`
	VideoCommon *VideoCommon        `json:"video_common,omitempty"`
	Common      *Common             `json:"common,omitempty"`
}

func (TemplateGroup) String

func (o TemplateGroup) String() string

type TemplateInfo

type TemplateInfo struct {
	// 转码模板ID。
	TemplateId *int32              `json:"template_id,omitempty"`
	Template   *QueryTransTemplate `json:"template,omitempty"`
	Error      *XCodeError         `json:"error,omitempty"`
}

func (TemplateInfo) String

func (o TemplateInfo) String() string

type TextWatermark

type TextWatermark struct {
	// 水印图片起点相对输出视频顶点的水平偏移量。  设置方法有如下两种:  - 整数型:表示图片起点水平偏移视频顶点的像素值,单位px。取值范围:[0,4096] - 小数型:表示图片起点相对于视频分辨率宽的水平偏移比率。取值范围:(0,1),支持4位小数,如0.9999,超出部分系统自动丢弃。  示例:输出视频分辨率宽1920,设置“dx”为“0.1”,“referpos”为“TopRight”(右上角),则水印图片右上角到视频右顶点在水平方向上偏移距离为192。
	Dx *string `json:"dx,omitempty"`
	// 水印图片起点相对输出视频顶点的垂直偏移量。  - 设置方法有如下两种:整数型:表示图片起点垂直偏移视频顶点的像素值,单位px。取值范围:[0,4096] - 小数型:表示图片起点相对于视频分辨率高的垂直偏移比率。取值范围:(0,1),支持4位小数,如0.9999,超出部分系统自动丢弃。  示例:输出视频分辨率高1080,设置“dy”为“0.1”,“referpos”为“TopRight”(右上角),则水印图片右上角到视频右顶点在垂直方向上的偏移距离为108。
	Dy *string `json:"dy,omitempty"`
	// 水印的位置。  取值如下: - TopRight:右上角。 - TopLeft:左上角。 - BottomRight:右下角。 - BottomLeft:左下角。
	Referpos *string `json:"referpos,omitempty"`
	// 水印开始时间,与“timeline_duration”配合使用。  取值范围:数字。  单位:秒。
	TimelineStart *string `json:"timeline_start,omitempty"`
	// 水印持续时间,与“timeline_start”配合使用。  取值范围:[数字,ToEND]。“ToEND”表示持续到视频结束。  默认值:ToEND。
	TimelineDuration *string `json:"timeline_duration,omitempty"`
	// 字体,当前支持fzyouh、msyh
	FontName *string `json:"font_name,omitempty"`
	// 字体大小。  取值范围:[4, 120]
	FontSize *int32 `json:"font_size,omitempty"`
	// 字体颜色。 目前颜色支持 black,blue,white,green,red,yellow,brown,gold,pink,orange,purple。
	FontColor *string `json:"font_color,omitempty"`
	// 水印叠加母体 取值如下: - input:水印叠加在输入片源上,转码输出后实际大小按图像等比例缩放 - output:水印叠加在转码输出文件上。
	Base *TextWatermarkBase `json:"base,omitempty"`
}

func (TextWatermark) String

func (o TextWatermark) String() string

type TextWatermarkBase

type TextWatermarkBase struct {
	// contains filtered or unexported fields
}

func (TextWatermarkBase) MarshalJSON

func (c TextWatermarkBase) MarshalJSON() ([]byte, error)

func (*TextWatermarkBase) UnmarshalJSON

func (c *TextWatermarkBase) UnmarshalJSON(b []byte) error

type TextWatermarkBaseEnum

type TextWatermarkBaseEnum struct {
	INPUT  TextWatermarkBase
	OUTPUT TextWatermarkBase
}

func GetTextWatermarkBaseEnum

func GetTextWatermarkBaseEnum() TextWatermarkBaseEnum

type ThumbTask

type ThumbTask struct {
	// 任务ID。  截图服务接受任务后产生的任务ID。一次最多10个。
	TaskId *string `json:"task_id,omitempty"`
	// 任务状态
	Status *ThumbTaskStatus `json:"status,omitempty"`
	// 起始时间。  格式为yyyymmddhhmmss。必须是与时区无关的UTC时间,指定task_id时该参数无效。
	CreateTime *string `json:"create_time,omitempty"`
	// 结束时间。  格式为yyyymmddhhmmss。必须是与时区无关的UTC时间,指定task_id时该参数无效。
	EndTime *string     `json:"end_time,omitempty"`
	Input   *ObsObjInfo `json:"input,omitempty"`
	Output  *ObsObjInfo `json:"output,omitempty"`
	// 输出文件名。
	OutputFileName *string `json:"output_file_name,omitempty"`
	// 用户数据。
	UserData *string `json:"user_data,omitempty"`
	// 任务描述。
	Description *string `json:"description,omitempty"`
	// 截图文件信息。
	ThumbnailInfo *[]PicInfo `json:"thumbnail_info,omitempty"`
}

func (ThumbTask) String

func (o ThumbTask) String() string

type ThumbTaskStatus

type ThumbTaskStatus struct {
	// contains filtered or unexported fields
}

func (ThumbTaskStatus) MarshalJSON

func (c ThumbTaskStatus) MarshalJSON() ([]byte, error)

func (*ThumbTaskStatus) UnmarshalJSON

func (c *ThumbTaskStatus) UnmarshalJSON(b []byte) error

type ThumbTaskStatusEnum

type ThumbTaskStatusEnum struct {
	NO_TASK    ThumbTaskStatus
	WAITING    ThumbTaskStatus
	PROCESSING ThumbTaskStatus
	SUCCEEDED  ThumbTaskStatus
	FAILED     ThumbTaskStatus
	CANCELED   ThumbTaskStatus
}

func GetThumbTaskStatusEnum

func GetThumbTaskStatusEnum() ThumbTaskStatusEnum

type Thumbnail

type Thumbnail struct {
	// 是否压缩抽帧图片生成tar包 - 0:表示压缩 - 1:表示不压缩
	Tar    *int32         `json:"tar,omitempty"`
	Out    *ObsObjInfo    `json:"out,omitempty"`
	Params *ThumbnailPara `json:"params,omitempty"`
}

func (Thumbnail) String

func (o Thumbnail) String() string

type ThumbnailPara

type ThumbnailPara struct {
	// 采样类型。  取值如下: - \"PERCENT\":根据视频时长的百分比间隔采样。 - \"TIME\":根据时间间隔采样截图。 - \"DOTS\":指定时间点截图。 默认值:\"TIME\"
	Type *ThumbnailParaType `json:"type,omitempty"`
	// 根据视频时长百分比间隔采样时的百分比值。
	Percent *int32 `json:"percent,omitempty"`
	// 采样截图的时间间隔值。  默认值:12。  单位:秒
	Time *int32 `json:"time,omitempty"`
	// 采样类型为“TIME”模式的开始时间,和“time”配合使用。  默认值:0。  单位:秒。
	StartTime *int32 `json:"start_time,omitempty"`
	// 采样类型为“TIME”模式的持续时间,和“time”、“start_time”配合使用,表示从视频文件的第“start_time”开始,持续时间为“duration”,每间隔“time”生成一张截图。 取值范围:[数字,ToEND]。“ToEND”表示持续到视频结束。  默认值: ToEND。  单位:秒。 > “duration”必须大于等0,若设置为0,则截图持续时间从“start_time”到视频结束。
	Duration *int32 `json:"duration,omitempty"`
	// 指定时间截图时的时间点数组。
	Dots *[]int32 `json:"dots,omitempty"`
	// 截图输出文件名。  - 如果只抽一张图(即:按DOTS方式,指定1个时间点)则按该指定文件名输出图片。  - 如果抽多张图(即:按DOTS方式指定多个时间点或按TIME间隔截图)则输出图片名在该指定文件名基础上在增加时间点(示例:output_filename_10.jpg)。  - 如果指定了压缩抽帧图片生成tar包,则tar包按该指定文件名输出。
	OutputFilename *string `json:"output_filename,omitempty"`
	// 截图文件格式。  取值如下:  1:表示jpg格式
	Format *int32 `json:"format,omitempty"`
	// 纵横比。
	AspectRatio *int32 `json:"aspect_ratio,omitempty"`
	// 图片宽度  取值范围:(96,3840]  单位:px
	Width *int32 `json:"width,omitempty"`
	// 图片高度  取值范围:(96,2160]  单位:px
	Height *int32 `json:"height,omitempty"`
	// 截图最长边的尺寸。宽边尺寸按照该尺寸与原始视频像素等比缩放计算。  取值范围:[240,3840]  单位:像素 > 该参数和width/height选择使用,以width/height优先,若width/height都不等于0,则图片尺寸按width/height得出;反之,则图片尺寸按 max_length 得出。
	MaxLength *int32 `json:"max_length,omitempty"`
}

func (ThumbnailPara) String

func (o ThumbnailPara) String() string

type ThumbnailParaType

type ThumbnailParaType struct {
	// contains filtered or unexported fields
}

func (ThumbnailParaType) MarshalJSON

func (c ThumbnailParaType) MarshalJSON() ([]byte, error)

func (*ThumbnailParaType) UnmarshalJSON

func (c *ThumbnailParaType) UnmarshalJSON(b []byte) error

type ThumbnailParaTypeEnum

type ThumbnailParaTypeEnum struct {
	PERCENT ThumbnailParaType
	TIME    ThumbnailParaType
	DOTS    ThumbnailParaType
}

func GetThumbnailParaTypeEnum

func GetThumbnailParaTypeEnum() ThumbnailParaTypeEnum

type TracksInfo

type TracksInfo struct {
	// 音频轨的声道layout
	ChannelLayout *string `json:"channel_layout,omitempty"`
	// 音频轨对应语言描述
	Language *string `json:"language,omitempty"`
}

func (TracksInfo) String

func (o TracksInfo) String() string

type TransTemplate

type TransTemplate struct {
	// 租户Id
	TenantId *string `json:"tenant_id,omitempty"`
	// 转码模板名称。
	TemplateName string  `json:"template_name"`
	Video        *Video  `json:"video,omitempty"`
	Audio        *Audio  `json:"audio,omitempty"`
	Common       *Common `json:"common"`
}

func (TransTemplate) String

func (o TransTemplate) String() string

type TransTemplateGroup

type TransTemplateGroup struct {
	// 模板组名称
	Name *string `json:"name,omitempty"`
	// 视频信息列表
	Videos      *[]VideoObj  `json:"videos,omitempty"`
	Audio       *Audio       `json:"audio,omitempty"`
	VideoCommon *VideoCommon `json:"video_common,omitempty"`
	Common      *Common      `json:"common,omitempty"`
}

func (TransTemplateGroup) String

func (o TransTemplateGroup) String() string

type TranscodeDetail

type TranscodeDetail struct {
	// 一进多出情况下部分转码失败的情况。
	MultitaskInfo *[]MultiTaskInfo `json:"multitask_info,omitempty"`
	InputFile     *SourceInfo      `json:"input_file,omitempty"`
}

func (TranscodeDetail) String

func (o TranscodeDetail) String() string

type UpdateTemplateGroupRequest

type UpdateTemplateGroupRequest struct {
	Body *ModifyTransTemplateGroup `json:"body,omitempty"`
}

Request Object

func (UpdateTemplateGroupRequest) String

type UpdateTemplateGroupResponse

type UpdateTemplateGroupResponse struct {
}

Response Object

func (UpdateTemplateGroupResponse) String

type UpdateTransTemplateRequest

type UpdateTransTemplateRequest struct {
	Body *ModifyTransTemplateReq `json:"body,omitempty"`
}

Request Object

func (UpdateTransTemplateRequest) String

type UpdateTransTemplateResponse

type UpdateTransTemplateResponse struct {
}

Response Object

func (UpdateTransTemplateResponse) String

type UpdateWatermarkTemplateRequest

type UpdateWatermarkTemplateRequest struct {
	Body *WatermarkTemplate `json:"body,omitempty"`
}

Request Object

func (UpdateWatermarkTemplateRequest) String

type UpdateWatermarkTemplateResponse

type UpdateWatermarkTemplateResponse struct {
}

Response Object

func (UpdateWatermarkTemplateResponse) String

type Video

type Video struct {
	// 输出策略。  取值如下: - discard - transcode  >- 当视频参数中的“output_policy”为\"discard\",且音频参数中的“output_policy”为“transcode”时,表示只输出音频。 >- 当视频参数中的“output_policy”为\"transcode\",且音频参数中的“output_policy”为“discard”时,表示只输出视频。 >- 同时为\"discard\"时不合法。 >- 同时为“transcode”时,表示输出音视频。
	OutputPolicy *VideoOutputPolicy `json:"output_policy,omitempty"`
	// 视频编码格式。  取值如下:  - 1:表示H.264。 - 2:表示H.265。
	Codec *int32 `json:"codec,omitempty"`
	// 输出平均码率。  取值范围:0或[40,30000]之间的整数。  单位:kbit/s  若设置为0,则输出平均码率为自适应值。
	Bitrate *int32 `json:"bitrate,omitempty"`
	// 编码档次,建议设为3。  取值如下: - 1:VIDEO_PROFILE_H264_BASE - 2:VIDEO_PROFILE_H264_MAIN - 3:VIDEO_PROFILE_H264_HIGH - 4:VIDEO_PROFILE_H265_MAIN
	Profile *int32 `json:"profile,omitempty"`
	// 编码级别。  取值如下: - 1:VIDEO_LEVEL_1_0 - 2:VIDEO_LEVEL_1_1 - 3:VIDEO_LEVEL_1_2 - 4:VIDEO_LEVEL_1_3 - 5:VIDEO_LEVEL_2_0 - 6:VIDEO_LEVEL_2_1 - 7:VIDEO_LEVEL_2_2 - 8:VIDEO_LEVEL_3_0 - 9:VIDEO_LEVEL_3_1 - 10:VIDEO_LEVEL_3_2 - 11:VIDEO_LEVEL_4_0 - 12:VIDEO_LEVEL_4_1 - 13:VIDEO_LEVEL_4_2 - 14:VIDEO_LEVEL_5_0 - 15:VIDEO_LEVEL_5_1
	Level *int32 `json:"level,omitempty"`
	// 编码质量等级。  取值如下: - 1:VIDEO_PRESET_HSPEED2 - 2:VIDEO_PRESET_HSPEED - 3:VIDEO_PRESET_NORMAL > 值越大,表示编码的质量越高,转码耗时也越长。
	Preset *int32 `json:"preset,omitempty"`
	// 最大参考帧数。  取值范围: - H264:[1,8] - H265:固定值4  单位:帧。
	RefFramesCount *int32 `json:"ref_frames_count,omitempty"`
	// I帧最大间隔  取值范围:[2,10]。  默认值:5。  单位:秒。
	MaxIframesInterval *int32 `json:"max_iframes_interval,omitempty"`
	// 最大B帧间隔。  取值范围: - H264:[0,7],默认值为4。 - H265:[0,7],默认值为7。  单位:帧。
	BframesCount *int32 `json:"bframes_count,omitempty"`
	// 帧率。  取值范围:0或[5,60]之间的整数。  单位:帧每秒。  > 若设置的帧率不在取值范围内,则自动调整为0,若设置的帧率高于片源帧率,则自动调整为片源帧率。
	FrameRate *int32 `json:"frame_rate,omitempty"`
	// 降帧率时是否同步调整时间戳 在配置降帧率场景下有效 取值范围: false:不调整时间戳; true:根据 frame_rate 配置的帧率,重新计算时间戳;
	SyncTimestamp *bool `json:"sync_timestamp,omitempty"`
	// 视频宽度。  取值范围: - H.264:0或[32,4096]间2的倍数。 - H.265:0或[160,4096]间4的倍数。  单位:像素。  说明:若视频宽度设置为0,则视频宽度值自适应。
	Width *int32 `json:"width,omitempty"`
	// 视频高度。 - H.264:0或[32,2880]且必须为2的倍数。 - H.265:0或[96,2880]且必须为4的倍数。  单位:像素。  说明:若视频高度设置为0,则视频高度值自适应。
	Height *int32 `json:"height,omitempty"`
	// 纵横比,图像缩放方式。  取值如下: - 0:自适应,保持原有宽高比 - 1:补黑边(16:9) - 2:裁黑边(18:9)
	AspectRatio *int32 `json:"aspect_ratio,omitempty"`
	// 黑边剪裁类型。  取值如下: - 0:不开启黑边剪裁。 - 1:开启黑边剪裁,低复杂度算法,针对长视频(>5分钟)。 - 2:开启黑边剪裁,高复杂度算法,针对短视频(<=5分钟)。
	BlackCut *int32 `json:"black_cut,omitempty"`
	// GOP类型(暂不开放) 0: Closed (Default) 1:Open
	GOPStructure *bool `json:"GOP_structure,omitempty"`
	// 超分倍数 \"2\":两倍超分
	SrFactor *string `json:"sr_factor,omitempty"`
}

func (Video) String

func (o Video) String() string

type VideoAndTemplate

type VideoAndTemplate struct {
	// 模板ID
	TemplateId *int32 `json:"template_id,omitempty"`
	// 视频宽度(单位:像素) - H264:范围[32,4096],必须为2的倍数 - H265:范围[320,4096],必须是4的倍数
	Width *int32 `json:"width,omitempty"`
	// 视频高度(单位:像素) - H264:范围[32,2880],必须为2的倍数 - H265:范围[240,2880],必须是4的倍数
	Height *int32 `json:"height,omitempty"`
	// 输出平均码率。  取值范围:0或[40,30000]之间的整数。  单位:kbit/s  若设置为0,则输出平均码率为自适应值。
	Bitrate *int32 `json:"bitrate,omitempty"`
}

func (VideoAndTemplate) String

func (o VideoAndTemplate) String() string

type VideoCommon

type VideoCommon struct {
	// 输出策略。  取值如下: - discard - transcode  >- 当视频参数中的“output_policy”为\"discard\",且音频参数中的“output_policy”为“transcode”时,表示只输出音频。 >- 当视频参数中的“output_policy”为\"transcode\",且音频参数中的“output_policy”为“discard”时,表示只输出视频。 >- 同时为\"discard\"时不合法。 >- 同时为“transcode”时,表示输出音视频。
	OutputPolicy *VideoCommonOutputPolicy `json:"output_policy,omitempty"`
	// 视频编码格式。  取值如下: - 1:表示H.264。 - 2:表示H.265。
	Codec *int32 `json:"codec,omitempty"`
	// 编码档次,建议设为3。  取值如下: - 1:VIDEO_PROFILE_H264_BASE - 2:VIDEO_PROFILE_H264_MAIN - 3:VIDEO_PROFILE_H264_HIGH - 4:VIDEO_PROFILE_H265_MAIN
	Profile *int32 `json:"profile,omitempty"`
	// 编码级别。  取值如下: - 1:VIDEO_LEVEL_1_0 - 2:VIDEO_LEVEL_1_1 - 3:VIDEO_LEVEL_1_2 - 4:VIDEO_LEVEL_1_3 - 5:VIDEO_LEVEL_2_0 - 6:VIDEO_LEVEL_2_1 - 7:VIDEO_LEVEL_2_2 - 8:VIDEO_LEVEL_3_0 - 9:VIDEO_LEVEL_3_1 - 10:VIDEO_LEVEL_3_2 - 11:VIDEO_LEVEL_4_0 - 12:VIDEO_LEVEL_4_1 - 13:VIDEO_LEVEL_4_2 - 14:VIDEO_LEVEL_5_0 - 15:VIDEO_LEVEL_5_1
	Level *int32 `json:"level,omitempty"`
	// 编码质量等级。  取值如下: - 1:VIDEO_PRESET_HSPEED2 - 2:VIDEO_PRESET_HSPEED - 3:VIDEO_PRESET_NORMAL > 值越大,表示编码的质量越高,转码耗时也越长。
	Preset *int32 `json:"preset,omitempty"`
	// 最大参考帧数。  取值范围: - H264:[1,8],默认值为4 。 - H265:固定值4。  单位:帧。
	RefFramesCount *int32 `json:"ref_frames_count,omitempty"`
	// I帧最大间隔  取值范围:[2,10]。  默认值:5。  单位:秒。
	MaxIframesInterval *int32 `json:"max_iframes_interval,omitempty"`
	// 最大B帧间隔。  取值范围: - H264:[0,7],默认值为4。 - H265:[0,7],默认值为7。  单位:帧。
	BframesCount *int32 `json:"bframes_count,omitempty"`
	// 帧率  取值范围:0或[5,60]之间的整数,0表示自适应  单位:帧每秒
	FrameRate *int32 `json:"frame_rate,omitempty"`
	// 降帧率时是否同步调整时间戳 在配置降帧率场景下有效。 取值如下: - false:不调整时间戳; - true:根据 frame_rate 配置的帧率,重新计算时间戳。
	SyncTimestamp *bool `json:"sync_timestamp,omitempty"`
	// 纵横比,图像缩放方式
	AspectRatio *int32 `json:"aspect_ratio,omitempty"`
	// 黑边剪裁类型  取值如下: - 0:不开启黑边剪裁 - 1:开启黑边剪裁,低复杂度算法,针对长视频(>5分钟) - 2:开启黑边剪裁,高复杂度算法,针对短视频(<=5分钟)
	BlackCut *int32 `json:"black_cut,omitempty"`
	// GOP类型(暂不开放) 0: Closed (Default) 1:Open
	GOPStructure *bool `json:"GOP_structure,omitempty"`
	// 超分倍数  取值如下: - 2:两倍超分
	SrFactor *string `json:"sr_factor,omitempty"`
}

func (VideoCommon) String

func (o VideoCommon) String() string

type VideoCommonOutputPolicy

type VideoCommonOutputPolicy struct {
	// contains filtered or unexported fields
}

func (VideoCommonOutputPolicy) MarshalJSON

func (c VideoCommonOutputPolicy) MarshalJSON() ([]byte, error)

func (*VideoCommonOutputPolicy) UnmarshalJSON

func (c *VideoCommonOutputPolicy) UnmarshalJSON(b []byte) error

type VideoCommonOutputPolicyEnum

type VideoCommonOutputPolicyEnum struct {
	TRANSCODE VideoCommonOutputPolicy
	DISCARD   VideoCommonOutputPolicy
	COPY      VideoCommonOutputPolicy
}

func GetVideoCommonOutputPolicyEnum

func GetVideoCommonOutputPolicyEnum() VideoCommonOutputPolicyEnum

type VideoInfo

type VideoInfo struct {
	// 视频宽度
	Width *int32 `json:"width,omitempty"`
	// 视频高度
	Height *int32 `json:"height,omitempty"`
	// 视频码率,单位: kbit/s
	Bitrate *int32 `json:"bitrate,omitempty"`
	// 视频码率,单位: bit/s
	BitrateBps *int64 `json:"bitrate_bps,omitempty"`
	// 帧率。    取值范围:0或[5,60],0表示自适应。    单位:帧每秒。    > 若设置的帧率不在取值范围内,则自动调整为0,若设置的帧率高于片源帧率,则自动调整为片源帧率。
	FrameRate *int32 `json:"frame_rate,omitempty"`
	// 视频编码格式
	Codec *string `json:"codec,omitempty"`
	// 片源动态范围类型。  取值如下: - SDR - HDR10 - CUVA_HDR
	DynamicRange *VideoInfoDynamicRange `json:"dynamic_range,omitempty"`
}

func (VideoInfo) String

func (o VideoInfo) String() string

type VideoInfoDynamicRange

type VideoInfoDynamicRange struct {
	// contains filtered or unexported fields
}

func (VideoInfoDynamicRange) MarshalJSON

func (c VideoInfoDynamicRange) MarshalJSON() ([]byte, error)

func (*VideoInfoDynamicRange) UnmarshalJSON

func (c *VideoInfoDynamicRange) UnmarshalJSON(b []byte) error

type VideoInfoDynamicRangeEnum

type VideoInfoDynamicRangeEnum struct {
	SDR      VideoInfoDynamicRange
	HDR10    VideoInfoDynamicRange
	CUVA_HDR VideoInfoDynamicRange
}

func GetVideoInfoDynamicRangeEnum

func GetVideoInfoDynamicRangeEnum() VideoInfoDynamicRangeEnum

type VideoObj

type VideoObj struct {
	// 视频宽度(单位:像素) - H264:范围[32,4096],必须为2的倍数 - H265:范围[320,4096],必须是4的倍数
	Width int32 `json:"width"`
	// 视频高度(单位:像素) - H264:范围[32,2880],必须为2的倍数 - H265:范围[240,2880],必须是4的倍数
	Height int32 `json:"height"`
	// 输出平均码率。  取值范围:0或[40,30000]之间的整数。  单位:kbit/s  若设置为0,则输出平均码率为自适应值。
	Bitrate int32 `json:"bitrate"`
}

func (VideoObj) String

func (o VideoObj) String() string

type VideoOutputPolicy

type VideoOutputPolicy struct {
	// contains filtered or unexported fields
}

func (VideoOutputPolicy) MarshalJSON

func (c VideoOutputPolicy) MarshalJSON() ([]byte, error)

func (*VideoOutputPolicy) UnmarshalJSON

func (c *VideoOutputPolicy) UnmarshalJSON(b []byte) error

type VideoOutputPolicyEnum

type VideoOutputPolicyEnum struct {
	TRANSCODE VideoOutputPolicy
	DISCARD   VideoOutputPolicy
	COPY      VideoOutputPolicy
}

func GetVideoOutputPolicyEnum

func GetVideoOutputPolicyEnum() VideoOutputPolicyEnum

type VideoParameters

type VideoParameters struct {
	// 输出策略。  取值如下: - discard - transcode  >- 当视频参数中的“output_policy”为\"discard\",且音频参数中的“output_policy”为“transcode”时,表示只输出音频。 >- 当视频参数中的“output_policy”为\"transcode\",且音频参数中的“output_policy”为“discard”时,表示只输出视频。 >- 同时为\"discard\"时不合法。 >- 同时为“transcode”时,表示输出音视频。
	OutputPolicy *VideoParametersOutputPolicy `json:"output_policy,omitempty"`
	// 视频编码格式。  取值如下: - 1:VIDEO_CODEC_H264 - 2:VIDEO_CODEC_H265
	Codec *int32 `json:"codec,omitempty"`
	// 输出平均码率。  取值范围:0或[40,30000]之间的整数。  单位:kbit/s  若设置为0,则输出平均码率为自适应值。
	Bitrate *int32 `json:"bitrate,omitempty"`
	// 编码档次  取值如下: - 1:VIDEO_PROFILE_H264_BASE - 2:VIDEO_PROFILE_H264_MAIN - 3:VIDEO_PROFILE_H264_HIGH - 4:VIDEO_PROFILE_H265_MAIN
	Profile *int32 `json:"profile,omitempty"`
	// 编码级别  取值如下: - 1:VIDEO_LEVEL_1_0 - 2:VIDEO_LEVEL_1_1 - 3:VIDEO_LEVEL_1_2 - 4:VIDEO_LEVEL_1_3 - 5:VIDEO_LEVEL_2_0 - 6:VIDEO_LEVEL_2_1 - 7:VIDEO_LEVEL_2_2 - 8:VIDEO_LEVEL_3_0 - 9:VIDEO_LEVEL_3_1 - 10:VIDEO_LEVEL_3_2 - 11:VIDEO_LEVEL_4_0 - 12:VIDEO_LEVEL_4_1 - 13:VIDEO_LEVEL_4_2 - 14:VIDEO_LEVEL_5_0 - 15:VIDEO_LEVEL_5_1 - 16:VIDEO_LEVEL_x_x
	Level *int32 `json:"level,omitempty"`
	// 编码质量等级  取值如下: - 1:VIDEO_PRESET_HSPEED2 (只用于h.265, h.265 default) - 2:VIDEO_PRESET_HSPEED (只用于h.265) - 3:VIDEO_PRESET_NORMAL (h264/h.265可用,h.264 default)
	Preset *int32 `json:"preset,omitempty"`
	// 最大参考帧数。  取值范围: - H264:[1,8],默认值为4 。 - H265:固定值4。  单位:帧。
	RefFramesCount *int32 `json:"ref_frames_count,omitempty"`
	// I帧最大间隔  取值范围:[2,10]。  默认值:5。  单位:秒。
	MaxIframesInterval *int32 `json:"max_iframes_interval,omitempty"`
	// 最大B帧间隔。  取值范围: - H264:[0,7],默认值为4。 - H265:[0,7],默认值为7。  单位:帧。
	BframesCount *int32 `json:"bframes_count,omitempty"`
	// 帧率。  取值范围:0或[5,60],0表示自适应。  单位:帧每秒。  > 若设置的帧率不在取值范围内,则自动调整为0,若设置的帧率高于片源帧率,则自动调整为片源帧率。
	FrameRate *int32 `json:"frame_rate,omitempty"`
	// 降帧率时是否同步调整时间戳 在配置降帧率场景下有效。  取值范围:  - false:不调整时间戳 - true:根据 frame_rate 配置的帧率,重新计算时间戳
	SyncTimestamp *bool `json:"sync_timestamp,omitempty"`
	// 视频宽度(单位:像素)  - H264:范围[32,4096],必须为2的倍数 - H265:范围[320,4096],必须是4的倍数
	Width *int32 `json:"width,omitempty"`
	// 视频高度(单位:像素)  - H264:范围[32,2880],必须为2的倍数 - H265:范围[240,2880] ,必须是4的倍数
	Height *int32 `json:"height,omitempty"`
	// 纵横比(保留,图像缩放方式)  - 0:自适应(保持原有宽高比) - 1:补黑边(16:9) - 2:裁黑边(18:9)
	AspectRatio *int32 `json:"aspect_ratio,omitempty"`
	// 黑边剪裁类型  - 0:不开启黑边剪裁 - 1:开启黑边剪裁,低复杂度算法,针对长视频(>5分钟) - 2:开启黑边剪裁,高复杂度算法,针对短视频(<=5分钟)
	BlackCut *int32 `json:"black_cut,omitempty"`
	// GOP类型(暂不开放) - 0: Closed (Default) - 1:Open
	GOPStructure *bool `json:"GOP_structure,omitempty"`
	// 超分倍数  取值如下: - 2:两倍超分
	SrFactor *string `json:"sr_factor,omitempty"`
}

func (VideoParameters) String

func (o VideoParameters) String() string

type VideoParametersOutputPolicy

type VideoParametersOutputPolicy struct {
	// contains filtered or unexported fields
}

func (VideoParametersOutputPolicy) MarshalJSON

func (c VideoParametersOutputPolicy) MarshalJSON() ([]byte, error)

func (*VideoParametersOutputPolicy) UnmarshalJSON

func (c *VideoParametersOutputPolicy) UnmarshalJSON(b []byte) error

type VideoParametersOutputPolicyEnum

type VideoParametersOutputPolicyEnum struct {
	TRANSCODE VideoParametersOutputPolicy
	DISCARD   VideoParametersOutputPolicy
	COPY      VideoParametersOutputPolicy
}

func GetVideoParametersOutputPolicyEnum

func GetVideoParametersOutputPolicyEnum() VideoParametersOutputPolicyEnum

type VideoProcess

type VideoProcess struct {
	// 视频顺时针旋转角度。  - 0:表示不旋转 - 1:表示顺时针旋转90度 - 2:表示顺时针旋转180度 - 3:表示顺时针旋转270度
	Rotate       *int32        `json:"rotate,omitempty"`
	BlackEnhance *BlackEnhance `json:"black_enhance,omitempty"`
	// 长短边自适应控制字段: - SHORT:表示短边自适应 - LONG:表示长边自适应 - NONE:表示不自适应
	Adaptation *VideoProcessAdaptation `json:"adaptation,omitempty"`
	// 是否开启上采样,可取值为0,1: 0表示上采样关闭, 1表示上采样开启.
	Upsample *int32 `json:"upsample,omitempty"`
}

func (VideoProcess) String

func (o VideoProcess) String() string

type VideoProcessAdaptation

type VideoProcessAdaptation struct {
	// contains filtered or unexported fields
}

func (VideoProcessAdaptation) MarshalJSON

func (c VideoProcessAdaptation) MarshalJSON() ([]byte, error)

func (*VideoProcessAdaptation) UnmarshalJSON

func (c *VideoProcessAdaptation) UnmarshalJSON(b []byte) error

type VideoProcessAdaptationEnum

type VideoProcessAdaptationEnum struct {
	SHORT VideoProcessAdaptation
	LONG  VideoProcessAdaptation
	NONE  VideoProcessAdaptation
}

func GetVideoProcessAdaptationEnum

func GetVideoProcessAdaptationEnum() VideoProcessAdaptationEnum

type WatermarkRequest

type WatermarkRequest struct {
	Input *ObsObjInfo `json:"input,omitempty"`
	// 水印模板。可通过新建水印模板接口创建水印模板。
	TemplateId *string `json:"template_id,omitempty"`
	// 文字水印内容,内容需做Base64编码,若类型为文字水印 (type字段为Text),则此配置项不能为空  示例:若想添加文字水印“测试文字水印”,那么Content的值为:5rWL6K+V5paH5a2X5rC05Y2w
	TextContext    *string         `json:"text_context,omitempty"`
	ImageWatermark *ImageWatermark `json:"image_watermark,omitempty"`
	TextWatermark  *TextWatermark  `json:"text_watermark,omitempty"`
}

func (WatermarkRequest) String

func (o WatermarkRequest) String() string

type WatermarkTemplate

type WatermarkTemplate struct {
	// 水印图片起点相对输出视频顶点的水平偏移量。  设置方法有如下两种:  - 整数型:表示图片起点水平偏移视频顶点的像素值,单位px。取值范围:[0,4096] - 小数型:表示图片起点相对于视频分辨率宽的水平偏移比率。取值范围:(0,1),支持4位小数,如0.9999,超出部分系统自动丢弃。  示例:输出视频分辨率宽1920,设置“dx”为“0.1”,“referpos”为“TopRight”(右上角),则水印图片右上角到视频右顶点在水平方向上偏移距离为192。
	Dx *string `json:"dx,omitempty"`
	// 水印图片起点相对输出视频顶点的垂直偏移量。  - 设置方法有如下两种:整数型:表示图片起点垂直偏移视频顶点的像素值,单位px。取值范围:[0,4096] - 小数型:表示图片起点相对于视频分辨率高的垂直偏移比率。取值范围:(0,1),支持4位小数,如0.9999,超出部分系统自动丢弃。  示例:输出视频分辨率高1080,设置“dy”为“0.1”,“referpos”为“TopRight”(右上角),则水印图片右上角到视频右顶点在垂直方向上的偏移距离为108。
	Dy *string `json:"dy,omitempty"`
	// 水印的位置。  取值如下: - TopRight:右上角。 - TopLeft:左上角。 - BottomRight:右下角。 - BottomLeft:左下角。
	Referpos *string `json:"referpos,omitempty"`
	// 水印开始时间,与“timeline_duration”配合使用。  取值范围:数字。  单位:秒。
	TimelineStart *string `json:"timeline_start,omitempty"`
	// 水印持续时间,与“timeline_start”配合使用。  取值范围:[数字,ToEND]。“ToEND”表示持续到视频结束。  默认值:ToEND。
	TimelineDuration *string `json:"timeline_duration,omitempty"`
	// 图片水印处理方式,type设置为Image时有效。  取值如下:  - Original:只做简单缩放,不做其他处理。 - Grayed:彩色图片变灰。 - Transparent:透明化。
	ImageProcess *string `json:"image_process,omitempty"`
	// 水印图片宽,值有两种形式: - 整数型代水印图片宽的像素值,范围[8,4096],单位px。 - 小数型代表相对输出视频分辨率宽的比率,范围(0,1),支持4位小数,如0.9999,超出部分系统自动丢弃。
	Width *string `json:"width,omitempty"`
	// 水印图片高,值有两种形式: - 整数型代表水印图片高的像素值,范围[8,4096],单位px。 - 小数型代表相对输出视频分辨率高的比率,范围(0,1),支持4位小数,如0.9999,超出部分系统自动丢弃。
	Height *string `json:"height,omitempty"`
	// 水印叠加母体  取值如下: - input :水印叠加在输入片源上,转码输出后实际大小按图像等比例缩放 - output :水印叠加在转码输出文件上。
	Base *WatermarkTemplateBase `json:"base,omitempty"`
	// 水印模板ID
	TemplateId *int32 `json:"template_id,omitempty"`
	// 水印模板名称。
	TemplateName *string `json:"template_name,omitempty"`
	// 水印类型,当前只支持Image(图片水印)。后续根据需求再支持Text(文字水印)。
	Type  *string     `json:"type,omitempty"`
	Error *XCodeError `json:"error,omitempty"`
}

func (WatermarkTemplate) String

func (o WatermarkTemplate) String() string

type WatermarkTemplateBase

type WatermarkTemplateBase struct {
	// contains filtered or unexported fields
}

func (WatermarkTemplateBase) MarshalJSON

func (c WatermarkTemplateBase) MarshalJSON() ([]byte, error)

func (*WatermarkTemplateBase) UnmarshalJSON

func (c *WatermarkTemplateBase) UnmarshalJSON(b []byte) error

type WatermarkTemplateBaseEnum

type WatermarkTemplateBaseEnum struct {
	INPUT  WatermarkTemplateBase
	OUTPUT WatermarkTemplateBase
}

func GetWatermarkTemplateBaseEnum

func GetWatermarkTemplateBaseEnum() WatermarkTemplateBaseEnum

type XCodeError

type XCodeError struct {
	// 错误码
	Code *string `json:"code,omitempty"`
	// 错误信息
	Msg *string `json:"msg,omitempty"`
}

func (XCodeError) String

func (o XCodeError) String() string

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL