Data types

Updated at:

The following data types are available.

AliyunProperties

Property type

NameTypeDescription
FormatAliyunFormatInfoThe format information.
StreamsAliyunStreamsInfoThe stream information.

AliyunFormatInfo

Format Type

NameTypeDescription
NumStreamsStringThe total number of media streams.
NumProgramsStringThe total number of program streams.
FormatNameStringThe short name of the container format.
FormatLongNameStringThe full name of the container format.
StartTimeStringThe start time.
DurationStringThe total duration.
SizeStringThe size of the file.
BitrateStringThe total bitrate.

AliyunStreamsInfo

Stream type

NameTypeDescription
VideoStreamListAliyunVideoStream[]The list of video streams.
AudioStreamListAliyunAudioStream[]The list of audio streams.
SubtitleStreamListAliyunSubtitleStream[]The list of subtitle streams.

AliyunVideoStream

Video stream type

NameTypeDescription
IndexStringThe sequence number of the video stream. The value indicates the position of the video stream in all video streams.
CodecNameStringThe short name of the encoding format.
CodecLongNameStringThe full name of the encoding format.
ProfileStringCodec profile
CodecTimeBaseStringThe codec time base.
CodecTagStringStringThe tag string of the encoding format.
CodecTagStringThe tag of the encoding format.
WidthStringThe width of the video resolution in pixels.
HeightStringThe video height.
HasBFramesStringSpecifies whether the video stream contains B-frames.
SarStringThe resolution of the encoded signal.
DarStringThe display aspect ratio (DAR).
PixFmtStringThe pixel format.
LevelStringThe encoding level.
FpsStringFrame rate. Data type: Number.
AvgFPSStringThe average frame rate.
TimebaseStringThe time base.
StartTimeStringThe start time.
DurationStringThe duration.
BitrateStringThe bitrate.
NumFramesStringThe total number of frames.
LangStringThe language.

For more information, see FFmpeg language definitions and ISO-639.

RotateStringThe video rotation angle.

AliyunAudioStream

Type of audio stream information

NameTypeDescription
IndexStringThe ordinal number of the audio stream, which specifies its position within the media stream.
CodecNameStringThe short name of the encoding format.
CodecLongNameStringThe full name of the encoding format.
CodecTimeBaseStringThe codec time base.
CodecTagStringStringThe tag string of the encoding format.
CodecTagStringThe tag of the encoding format.
SampleFmtStringThe sampling format.
SamplerateStringThe sample rate.
ChannelsStringThe number of sound channels.
ChannelLayoutStringThe output layout of the sound channels.
TimebaseStringThe time base.
StartTimeStringThe start time.
DurationStringThe duration.
BitrateStringThe bitrate.
NumFramesStringThe total number of frames.
LangStringThe language.

For more information, see FFmpeg language definitions and ISO-639.

AliyunSubtitleStream

Caption stream type

NameTypeDescription
IndexStringThe sequence number of the subtitle stream. The value indicates the position of the subtitle stream in all subtitle streams.
LangStringThe language.

For more information, see FFmpeg language definitions and ISO-639.

AliyunTemplate

Transcoding Template Type

NameTypeDescription
IdStringThe transcoding template ID.
NameStringThe name of the template.
ContainerAliyunContainerThe container.
AudioAliyunAudioCodecThe audio encoding configuration.
VideoAliyunVideoCodecThe video encoding configuration.
TransConfigAliyunTransConfigThe general transcoding configuration.
MuxConfigAliyunMuxConfigThe transmuxing configuration.
StateStringThe status of the template. Valid values: Normal and Deleted.

AliyunContainer

Container type

NameTypeDescription
FormatStringThe container format. Valid values: flv, mp4, ts, m3u8, gif, mp3, ogg, and flac.

AliyunAudioCodec

Audio codec configuration

NameTypeDescription
CodecStringThe audio encoding format.
  • Supported formats include aac, mp3, vorbis, and flac.
  • Default value: aac.
ProfileStringThe audio codec profile.

If you set Codec to aac, you can set this parameter to one of the following values: aac_low, aac_he, aac_he_v2, aac_ld, and aac_eld.

SamplerateStringThe sample rate.
  • Valid values: 22050, 32000, 44100, 48000, and 96000.
  • Unit: Hz.
  • Default value: 44100.
BitrateStringThe audio bitrate of the output file.
  • The value ranges from 8 to 1000.
  • Unit: Kbit/s.
  • Default value: 128.
ChannelsStringThe number of sound channels.
  • Valid values: 1, 2, 3, 4, 5, 6, 7, and 8.
  • Default value: 2.

AliyunVideoCodec

Video Codec Configuration

NameTypeDescription
CodecStringThe encoding format.
  • Support for H.264 and H.265.
  • Default value: H.264.
ProfileStringThe encoding profile.
Valid values: baseline, main, and high.
  • baseline: for mobile devices.
  • main: for standard definition devices.
  • high: for high resolution devices.
  • Default value: high.
BitrateStringThe average video bitrate.
  • The value ranges from 10 to 50000.
  • Unit: Kbit/s.
CrfStringThe constant rate factor for quality control.
  • The value ranges from 0 to 51.
  • If you set Codec to H264, the default value is 23. If you set Codec to H265, the default value is 26.
  • If you set Crf, the Bitrate setting is ignored.
WidthStringThe width.
  • The value ranges from 128 to 4096.
  • Unit: px.
  • Default value: The width of the source video.
HeightStringThe height.
  • The value ranges from 128 to 4096.
  • Unit: px.
  • Default value: The height of the source video.
FpsStringThe frame rate.
  • The value must be greater than 0 and less than or equal to 60.
  • If the frame rate of the input file is greater than 60, the frame rate is 60.
  • Default value: The frame rate of the input file.
GopStringThe maximum number of frames between two keyframes.
  • The value ranges from 1 to 1080000.
  • Default value: 250.
PresetStringThe preset video algorithm.
  • Valid values: veryfast, fast, medium, slow, and slower.
  • Default value: medium.
ScanModeStringThe scan mode.

Both interlaced and progressive scanning are supported.

BufsizeStringThe buffer size.
  • The value ranges from 1000 to 128000.
  • Unit: KB.
  • Default value: 6000.
MaxrateStringThe maximum video bitrate.
  • The value ranges from 10 to 50000.
  • Unit: Kbit/s.
BitrateBndAliyunBitrateBndThe average video bitrate range.
PixFmtStringThe video color format. Valid values: standard color formats such as yuv420p and yuvj420p.

AliyunTransConfig

Parameters for general transcoding.

NameTypeDescription
TransModeStringThe transcoding mode.
  • Valid values: onepass, twopass, and CBR.
  • Default value: onepass.

AliyunBitrateBnd

Average bitrate range

NameTypeDescription
MaxStringThe upper limit of the total bitrate.
  • The value ranges from 10 to 50000.
  • Unit: Kbit/s.
MinStringThe lower limit of the total bitrate.
  • The value ranges from 10 to 50000.
  • Unit: Kbit/s.

AliyunOSSFile

Parameters for an OSS file.
NameTypeDescription
BucketStringThe OSS bucket. The value must be 3 to 63 bytes in length.
LocationStringThe area where the OSS endpoint is deployed. The value can be up to 64 bytes in length.
ObjectStringThe OSS object. The value can be up to 1,024 bytes in length.

AliyunJob

Parameters for a job.
NameTypeDescription
JobIdStringThe job ID.
InputAliyunJobInputThe job input.
OutputAliyunOutputThe job output.
StateStringThe job status.
  • Submitted: The job is submitted.
  • Transcoding: The job is in progress.
  • TranscodeSuccess: The job is successful.
  • TranscodeFail: The job failed.
  • TranscodeCancelled: The job is canceled.
CodeStringThe error code returned if the transcoding job fails.
MessageStringThe error message returned if the transcoding job fails.
PercentStringThe transcoding progress. The value ranges from 0 to 100.
UserDataStringThe custom data.
PipelineIdStringPipeline ID
CreationTimeStringThe time when the job was created.
MNSMessageResultAliyunMNSMessageResultThe message sent by MNS to notify you of the job result.

AliyunJobInput

Parameters for the input of a transcoding job.
NameTypeDescription
BucketStringThe OSS bucket of the job input. The value must be 3 to 63 bytes in length.
LocationStringThe area where the OSS endpoint for the job input is deployed. The value can be up to 64 bytes in length.
ObjectStringThe OSS object of the job input. The value can be up to 1,024 bytes in length.
AudioAliyunInputAudioThe audio configuration of the source media file.
ContainerAliyunInputContainerThe container configuration of the source media file.

AliyunInputContainer

Parameters for the container configuration of the source media file.
Note This parameter is required if the input file is in the ADPCM or PCM format.
NameTypeDescription
FormatStringThe audio format of the source media file. Valid values: alaw, f32be, f32le, f64be, f64le, mulaw, s16be, s16le, s24be, s24le, s32be, s32le, s8, u16be, u16le, u24be, u24le, u32be, u32le, and u8.

AliyunInputAudio

Parameters for the audio configuration of the source media file.
Note This parameter is required if the input file is in the ADPCM or PCM format.
NameTypeDescription
ChannelsStringThe number of sound channels of the source media file.

The value ranges from 1 to 8.

SamplerateStringThe audio sample rate of the source media file.
  • The value ranges from 0 to 320000.
  • Unit: Hz.

AliyunOutput

Parameters for the job output.
NameTypeDescription
OutputFileAliyunOSSFileThe output file.
TemplateIdStringThe template ID.
WaterMarkListAliyunWaterMark[ ]The list of watermarks.
ClipAliyunClipThe video editing clip.
RotateStringThe video rotation angle.

The value must be greater than or equal to 0 and less than 360.

PropertiesAliyunPropertiesThe media properties.
PriorityStringThe priority of the job in its MPS queue.
  • The value ranges from 1 to 10.
  • A value of 10 indicates the highest priority.
  • Default value: 6.
ContainerAliyunContainerThe container. If you specify this parameter, it overwrites the AliyunContainer setting of the template specified by TemplateId.
VideoAliyunVideoCodecThe video configuration. If you specify this parameter, it overwrites the AliyunVideoCodec setting of the template specified by TemplateId.
AudioAliyunAudioCodecThe audio configuration. If you specify this parameter, it overwrites the AliyunAudioCodec setting of the template specified by TemplateId.
TransConfigAliyunTransConfigThe general transcoding configuration. If you specify this parameter, it overwrites the AliyunTransConfig setting of the template specified by TemplateId.
MuxConfigAliyunMuxConfigThe transmuxing configuration. If you specify this parameter, it overwrites the AliyunMuxConfig setting of the template specified by TemplateId.
UserDataStringThe custom data.

AliyunClip

Parameters for a clip.
NameTypeDescription
TimeSpanAliyunTimeSpanThe time span of the clip.

AliyunTimeSpan

Parameters for the time span of a clip.
NameTypeDescription
SeekStringThe start time.
DurationStringThe duration.
EndStringThe end time.
  • For example, a value of 5.23 indicates that the last 5.23 seconds are cut off.
  • If you set this parameter, the Duration parameter is ignored.

AliyunMuxConfig

Parameters for transmuxing.
NameTypeDescription
SegmentAliyunSegmentThe segment configuration.

AliyunSegment

Parameters for segment configuration.
NameTypeDescription
DurationStringThe segment duration.
  • The value ranges from 1 to 60.
  • Unit: seconds.

AliyunJobResult

Parameters for the result of a job submission.
NameTypeDescription
SuccessStringIndicates whether the job was successfully submitted. Valid values: true and false.
CodeStringThe error code returned if the job fails to be created.
MessageStringThe error message returned if the job fails to be created.
JobAliyunJobThe job. If the job fails to be submitted, no job ID is generated.

AliyunWaterMark

Parameters for a watermark.
NameTypeDescription
InputFileAliyunOSSFileThe watermark input file.
WaterMarkTemplateIdStringThe watermark template ID.

AliyunWaterMarkTemplate

Parameters for a watermark template.
NameTypeDescription
IdStringThe watermark template ID.
NameStringThe name of the watermark template.
WidthNumberThe width.
  • The value ranges from 8 to 4096.
  • Unit: px.
HeightNumberThe height.
  • The value ranges from 8 to 4096.
  • Unit: px.
DxNumberThe horizontal offset.
  • The value ranges from -4096 to 4096.
  • Unit: px.
DyNumberThe vertical offset.
  • The value ranges from -4096 to 4096.
  • Unit: px.
ReferPosStringThe position of the watermark. Valid values: TopRight, TopLeft, BottomRight, and BottomLeft.
TypeStringThe type of the watermark. Valid values: Image and Text.
Note Only Image is supported.
StateStringThe status of the watermark template. Valid values: Normal and Deleted.

AliyunPipeline

Parameters for an MPS queue.
NameTypeDescription
IdStringPipeline ID
NameStringPipeline name
SpeedStringThe type of the MPS queue.
  • Valid values: Boost, Standard, NarrowBandHDV2, AIVideoCover, AIVideoRecogni, AIVideoSummary, AIVideoPorn, AIAudioKWS, and AIAudioASR.
  • Default value: Standard.
StateStringThe status of the MPS queue. Valid values: Active and Paused.
  • Active: Jobs in the MPS queue are scheduled for transcoding.
  • Paused: The MPS queue is paused. Jobs are no longer scheduled for transcoding. All jobs in the MPS queue remain in the Submitted state. Ongoing jobs are not affected.
NotifyConfigStringThe MNS notification configuration.

AliyunMediaInfoJob

Parameters for a media information analysis job.
NameTypeDescription
IdStringThe ID of the metadata analysis job.
InputAliyunOSSFileThe job input.
StateStringThe job status. Valid values: Analyzing, Success, and Fail.
CodeStringThe error code returned if the metadata analysis job fails.
MessageStringThe error message returned if the metadata analysis job fails.
PropertiesAliyunPropertiesProperty
UserDataStringThe custom data.
CreationTimeStringThe time when the job was created.

AliyunAnalysisJob

Parameters for a template analysis job.
NameTypeDescription
IdStringThe ID of the template analysis job.
InputAliyunOSSFileThe job input.
AnalysisConfigAliyunAnalysisConfigThe job configuration.
TemplateListAliyunTemplate[ ]The list of preset templates in the job output.
StateStringThe job status. Valid values: Submitted, Analyzing, Success, and Fail.
CodeStringThe error code returned if the analysis fails.
MessageStringThe error message returned if the analysis fails.
PercentStringThe transcoding progress.

The value ranges from 0 to 100.

PriorityStringThe priority of the job in its MPS queue.
  • The value ranges from 1 to 10.
  • A value of 10 indicates the highest priority.
  • Default value: 10.
UserDataStringThe custom data.
PipelineIdStringPipeline ID
CreationTimeStringThe time when the job was created.
MNSMessageResultAliyunMNSMessageResultMNS notifies users when a job is complete.

AliyunSnapshotJob

Parameters for a snapshot job.
NameTypeDescription
IdStringThe ID of the snapshot job.
InputAliyunOSSFileThe job input.
SnapshotConfigAliyunSnapshotConfigThe snapshot configuration.
CountStringThe number of snapshots captured.
StateStringThe status of the snapshot job. Valid values: Snapshoting, Success, and Fail.
CodeStringThe error code returned if the analysis fails.
MessageStringThe error message returned if the analysis fails.
UserDataStringThe custom data.
MNSMessageResultAliyunMNSMessageResultMNS notifies users when the job is complete.

AliyunSnapshotConfig

Parameters for snapshot configuration. AliyunSnapshotConfig
NameTypeDescription
OutputFileStringThe OSS configuration for the snapshot output.
TileOutputFileStringThe OSS configuration for the output of the large tiled image.
TimeStringThe start time for capturing snapshots.

Unit: milliseconds.

IntervalStringThe interval for capturing snapshots.
  • If you specify this parameter, a sequence of snapshots is captured. The value must be greater than 0.
  • Unit: seconds.
  • Default value: 10.
NumStringThe number of snapshots to capture.

If you specify this parameter, a sequence of snapshots is captured.

WidthStringThe width of the output snapshot.

The value ranges from 8 to 4096.

HeightStringThe height of the output snapshot.

The value ranges from 8 to 4096.

FrameTypeStringThe snapshot type.
  • Normal frame
  • intra: An I-frame.
  • Default value: normal.
TileOutStringPuzzle configuration

AliyunFailReason

Parameters that describe the cause of a failure.
NameTypeDescription
CodeStringThe error code returned if the job fails.
MessageStringThe error message returned if the job fails.

AliyunMNSMessageResult

Parameters in the message that MNS sends to notify you of the job result.
NameTypeDescription
ErrorCodeStringThe error code returned if the job fails.
ErrorMessageStringThe error message returned if the job fails.
MessageIdStringThe ID of the success message.

Activity

Parameters for a media workflow activity.
NameTypeDescription
NameStringThe name of the media workflow activity.
Note Activity names must be unique within a workflow.
TypeStringThe type of the media workflow activity.

Valid values: Start, Snapshot, Transcode, Analysis, and Report.

JobIdStringThe job ID generated when the activity is executed, such as an analysis job ID, transcoding job ID, or snapshot job ID.
StateStringThe status.
Valid values: Running, Success, Fail, and Skipped.
  • Skipped: The activity is skipped.
  • For example, after an analysis activity, there are two transcoding activities: one for high definition and one for standard definition. The system decides which activity to run based on the analysis result. If the source video has a low definition, the high-definition transcoding activity might be skipped.
StartTimeStringThe time when the activity started.
EndTimeStringThe time when the activity ended.
CodeStringThe error code.

If the activity status is Fail, a specific error code is provided.

MessageStringThe error message.

If the activity status is Fail, a detailed error description is provided.

MediaWorkflow

Parameters for a media workflow.
NameTypeDescription
MediaWorkflowIdStringThe media workflow ID.
NameStringThe name of the media workflow.
TopologyStringThe topology of the media workflow.
StateStringThe status. Valid values: Inactive, Active, and Deleted.
CreationTimeStringThe creation time.

InputFile

Parameters for an input file.
NameTypeDescription
BucketStringThe OSS bucket.
LocationStringThe OSS location.
ObjectStringThe OSS object.

MediaWorkflowExecutionInput

The input for a media workflow execution instance.
NameTypeDescription
InputFileInputFileThe input file of the media workflow.
UserDataStringUser-defined data.

MediaWorkflowExecution

A media workflow execution instance.
NameTypeDescription
RunIdStringThe ID of the execution instance.
InputMediaWorkflowExecutionInputThe input of the media workflow.
MediaWorkflowIdStringThe media workflow ID.
NameStringThe name of the media workflow.
MediaIdStringThe media ID. All information generated by the media workflow belongs to this media ID.
ActivityListActivityThe list of media workflow activities.
StateStringThe status.
  • Valid values: Running, Completed, and Fail.
  • Completed only indicates that the workflow execution is complete. To check if an activity such as transcoding or snapshotting was successful, check the status of that specific activity.
CreationTimeStringThe creation time.

MediaInfo

Parameters for media information.
NameTypeDescription
FormatFormatInfoThe format information.
StreamsStreamsInfoThe stream information.

FormatInfo

Parameters for container and general information.
NameTypeDescription
NumStreamsStringThe total number of media streams.
NumProgramsStringThe total number of program streams.
FormatNameStringThe short name of the container format.
FormatLongNameStringThe full name of the container format.
StartTimeStringThe start time.
DurationStringThe total duration.
SizeStringThe size of the file.
BitrateStringThe total bitrate.

StreamsInfo

Parameters for stream information.
NameTypeDescription
VideoStreamListVideoStream[]The list of video streams. The list can contain up to four elements.
AudioStreamListAudioStream[]The list of audio streams. The list can contain up to four elements.
SubtitleStreamListSubtitleStream[]The list of subtitle streams. The list can contain up to four elements.

VideoStream

Parameters for video stream information.
NameTypeDescription
IndexStringThe sequence number of the video stream. This indicates the position of the video stream in the entire media stream.
CodecNameStringThe short name of the encoding format.
CodecLongNameStringThe full name of the encoding format.
ProfileStringCodec profile
CodecTimeBaseStringThe codec time base.
CodecTagStringStringThe tag string of the encoding format.
CodecTagStringThe tag of the encoding format.
WidthStringThe video width.
HeightStringThe video height.
HasBFramesStringSpecifies whether the video stream contains B-frames.
SarStringThe resolution of the encoded signal.
DarStringThe DAR.
PixFmtStringThe pixel format.
LevelStringThe encoding level.
FpsStringThe target frame rate.
AvgFPSStringThe average frame rate.
TimebaseStringThe time base.
StartTimeStringThe start time.
DurationStringThe duration.
NumFramesStringThe total number of frames.
LangStringThe language.
NetworkCostNetworkCostThe network bandwidth consumption.

NetworkCost

Parameters for video network bandwidth consumption.
NameTypeDescription
PreloadTimeStringThe preload time.
CostBandwidthStringThe maximum bandwidth consumed.
AvgBitrateStringThe average bitrate.

AudioStream

Parameters for audio stream information.
NameTypeDescription
IndexStringThe sequence number of the audio stream. This indicates the position of the audio stream in the entire media stream.
CodecNameStringThe short name of the encoding format.
CodecLongNameStringThe full name of the encoding format.
CodecTimeBaseStringThe codec time base.
CodecTagStringStringThe tag string of the encoding format.
CodecTagStringThe tag of the encoding format.
SampleFmtStringThe sampling format.
SamplerateStringThe sample rate.
ChannelsStringThe number of sound channels.
ChannelLayoutStringThe output layout of the sound channels.
TimebaseStringThe time base.
StartTimeStringThe start time.
DurationStringThe duration.
BitrateStringThe bitrate.
NumFramesStringThe total number of frames.
LangStringThe language.

SubtitleStream

Parameters for subtitle stream information.
NameTypeDescription
IndexStringThe sequence number of the subtitle stream. This indicates the position of the subtitle stream in the entire media stream.
LangStringThe language.

Media

Parameters for media.
NameTypeDescription
MediaIdStringThe media ID.
FileFileThe source file.
TitleStringThe title.
DescriptionStringThe description.
CateIdStringThe category ID.
CateNameStringThe category name.
TagsString[]The list of tags.
RiskFactorStringThe risk factor.
  • The value ranges from 0 to 1.
  • A higher risk factor indicates a higher possibility of pornographic or violent content.
  • The detection accuracy is 80%.
CoverURLStringThe URL of the thumbnail.
PublishStateStringThe publishing status of the media, which indicates whether the media is publicly accessible.
Valid values:
  • Initiated: Initial state.
  • UnPublish: Not published. The permission on the OSS playback file is Private.
  • Published: Published. The permission on the OSS playback file is Default.
  • Deleted: Deleted.
RunIdListString[]The list of media workflows.
CreationTimeStringThe creation time.
DurationStringThe duration.
FormatStringThe format.
SizeStringThe size.
BitrateStringThe bitrate.
FpsStringThe frame rate.
WidthStringThe width.
HeightStringHigh
PlayListPlay[]The playlist.
SnapshotListSnapshot[]The snapshot list.
MediaInfoMediaInfoThe media information.

Category

Parameters for a category.
NameTypeDescription
CateIdStringThe category ID.
ParentIdStringThe ID of the parent node. The value for the top-level node is -1.
CateNameStringThe category name.
LevelStringThe level. The value for the top-level node is 0.

File

Parameters for a file.
NameTypeDescription
URLStringThe file URL.
StateStringThe file status. Valid values: Normal and Deleted.

Play

Playback information.
NameTypeDescription
MediaWorkflowIdStringThe ID of the workflow that generates the playback file.
MediaWorkflowNameStringThe workflow that generates the playback file.
ActivityNameStringThe name of the media workflow activity.
DurationStringThe duration.
FormatStringThe format.
SizeStringThe size.
BitrateStringThe bitrate.
FpsStringThe frame rate.
WidthStringThe width.
HeightStringHigh
FileFileThe playback file.

Snapshot

Snapshot information.
NameTypeDescription
MediaWorkflowIdStringThe ID of the workflow that generates the snapshot file.
MediaWorkflowNameStringThe workflow that generates the snapshot file.
ActivityNameStringThe name of the workflow activity that generates the snapshot file.
FileFileThe snapshot file.
TypeStringThe snapshot type. Valid values: Single and Sequence.
CountNumberThe number of snapshots. This parameter is valid only if Type is set to Sequence.

MediaBucket

Parameters for a media bucket.
NameTypeDescription
BucketStringThe name of the media bucket.
TypeStringThe type of the media bucket. Valid values: Input and Output.

AliyunMediaCensorJob

A content moderation job.

NameTypeDescription
IdStringThe job ID.
InputAliyunOSSFileThe job input.
VideoCensorConfigAliyunVideoCensorConfigThe video moderation configuration.
PipelineIdStringThe pipeline ID.
StateStringThe job status. Valid values: Submitted, Analyzing, Success, and Fail.
CodeStringThe error code returned if the job fails.
MessageStringThe error message returned if the job fails.
UserDataStringUser-defined data.
ResultStringThe overall moderation result of the job. Valid values:
  • Pass: The content is approved.
  • Review: The content needs manual review.
  • Block: The content is blocked.
If the result for any moderation type is Review, the overall result is Review. If the result for any moderation type is Block, the overall result is Block.
TitleCensorResultAliyunCommonCensorResultThe moderation result for the title.
DescCensorResultAliyunCommonCensorResultThe moderation result for the description.
BarrageCensorResultAliyunCommonCensorResultThe moderation result for the live comments.
ImageCensorCensorResultAliyunImageCensorResult[]The moderation result for the thumbnail.
VideoCensorResultAliyunVideoCensorResultThe video moderation result.

AliyunVideoCensorConfig

The configuration for video moderation.
NameTypeRequiredDescription
OutputFileStringYesThe OSS path where the video snapshots are saved.

Example: `{"Bucket":"test-bucket","Location":"oss-cn-shanghai","Object":"output{Count}.jpg"}`.

The `{Count}` is a placeholder. The snapshot objects are named sequentially, such as `output00001.jpg` and `output00002.jpg`.

VideoCensorStringNoSpecifies whether to moderate the video content.

Default value: true.

If you set this to false, make sure that a job for the same input file was submitted before and was successful. Otherwise, the request is rejected.

BizTypeStringNoThe custom business type. Default value: common.
ResultRangeStringNoThe range of moderation results to return. Valid values:
  • abnormal: Returns only results for problematic content.
  • all: Returns all results.

Default value: abnormal.

AliyunCommonCensorResult

The result of a general moderation.

NameTypeDescription
ScoreStringThe score.

The value ranges from 0 to 100.

Example: 99.91.

SuggestionStringThe suggested action. Valid values:
  • Pass: The content is approved.
  • Review: The content needs manual review.
  • Block: Denies access.
SceneStringThe moderation scenario.
  • Antispam: Text spam.
  • Porn: Pornographic content.
  • Terrorism: Terrorist and political content.
LabelStringThe label of the moderation result.
  • Normal.
  • Spam: Junk information.
  • Ad: Advertisement.
  • Politics: Political content.
  • Terrorism: Violent terrorist acts.
  • Abuse: Abusive language.
  • Flood: Message flooding.
  • Contraband: Prohibited content.
  • Meaningless: Meaningless content.
  • Porn: Pornographic content.
  • Sexy: sexy.
  • Outfit: Special attire.
  • Logo: Special logo.
  • Weapon: Weapon.
  • Politic: Political content.
  • Others: Other.

AliyunImageCensorResult

The result of a thumbnail (image) moderation.

NameTypeDescription
LocationStringThe OSS location of the video thumbnail.
BucketStringThe OSS bucket of the video thumbnail.
ObjectStringThe OSS object of the video thumbnail.
ResultAliyunCommonCensorResultThe moderation result.

AliyunVideoCensorResult

The result of a video moderation.

NameTypeDescription
CensorResultAliyunCommonCensorResult[]A collection of moderation results. It contains summary information for various scenarios, such as pornography, terrorism, violence, and political content.
VideoTimelinesAliyunTimelineCensorResult[]The detailed moderation results at specific points in time, sorted chronologically.
NextPageTokenStringThe token for the next page. This is a 32-bit UUID.
MaximumPageSizeStringThe maximum number of entries to return on each page.

Default value: 30.

The value ranges from 1 to 300.

AliyunTimelineCensorResult

The result of a timeline moderation.
NameTypeDescription
TimestampStringThe position in the video.

Format: hh:mm:ss[.SSS].

Example: 00:02:59.999.

ObjectStringThe OSS storage path of the snapshot.
CensorResultAliyunCommonCensorResult[]The labels and scores for different types of moderation results.

AliyunCensorJobNotify

A notification for a content moderation job.

NameTypeDescription
TypeStringThe notification type. `MediaCensor` indicates a content moderation job.
UserDataStrongThe `UserData` that you specified when submitting the job. This is used to pass back parameters.
JobIdStringThe job ID.
InputAliyunOSSFileThe job input.
StateStringThe job status. Valid values: Success and Fail.
CodeStringThe error code returned if the job fails.
MessageStringThe error message returned if the job fails.
ResultStringThe overall moderation result of the job. Valid values:
  • Pass: The content is approved.
  • Review: The content needs manual review.
  • Block: The content is blocked.

If the result for any moderation type is Review, the overall result is Review. If the result for any moderation type is Block, the overall result is Block.

TitleCensorResultAliyunCommonCensorResultThe moderation result for the title.
DescCensorResultAliyunCommonCensorResultThe moderation result for the description.
BarrageCensorResultAliyunCommonCensorResultThe moderation result for the live comments.
ImageCensorCensorResultAliyunImageCensorResult[]The moderation result for the thumbnail.
TopVideoCensorResultAliyunVideoCensorResultThe top results with the highest scores for each moderation type in the video. The corresponding `Timelines` can contain up to 10 data entries. If no results are found, `Timelines` is empty.

AliyunCoverJob

A smart thumbnail job.

NameTypeDescription
IdStringThe job ID.
InputAliyunOSSFileThe job input.
CoverConfigAliyunCoverConfigThe smart thumbnail configuration.
PipelineIdStringThe pipeline ID.
StateStringThe job status. Valid values: Submitted, Analyzing, Success, and Fail.
CodeStringThe error code returned if the job fails.
MessageStringThe error message returned if the job fails.
UserDataStringUser-defined data.
CoverImageListAliyunCoverImage[]The smart thumbnail results. Up to five images are displayed. If no images are found, the list is empty.

AliyunCoverImage

The result of a smart thumbnail job.

NameTypeDescription
UrlStringThe URL of the smart thumbnail.
ScoreStringThe score that indicates how well the snapshot represents the video. The value ranges from 0 to 1, with up to five decimal places.
TimeStringThe time when the image was captured.