// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class MediaConvertOutputDetailFileMetaAudioStreamInfoList extends $dara.Model { /** * @remarks * The bitrate. * * @example * 0.f */ bitrate?: string; /** * @remarks * The layout of the audio channels. * * @example * stereo */ channelLayout?: string; /** * @remarks * The number of audio channels. * * @example * 2 */ channels?: string; /** * @remarks * The full name of the codec. * * @example * AAC (Advanced Audio Coding) */ codecLongName?: string; /** * @remarks * The short name of the codec. * * @example * aac */ codecName?: string; /** * @remarks * The tag of the codec. * * @example * 0x000f */ codecTag?: string; /** * @remarks * The tag of the codec. * * @example * [15][0][0][0] */ codecTagString?: string; /** * @remarks * The time base used by the codec. * * @example * 1/44100 */ codecTimeBase?: string; /** * @remarks * The duration of the stream. Unit: seconds. * * @example * 403.039989 */ duration?: string; /** * @remarks * The index of this stream within the file. * * @example * 1 */ index?: string; /** * @remarks * The language code for the stream. * * @example * cn */ lang?: string; /** * @remarks * The audio sample format. * * @example * fltp */ sampleFmt?: string; /** * @remarks * The sample rate. Unit: Hz. * * @example * 44100 */ sampleRate?: string; /** * @remarks * The start time of the stream. Unit: seconds. * * @example * 1.473556 */ startTime?: string; /** * @remarks * The time base of the stream\\"s presentation timestamps. * * @example * 1/90000 */ timebase?: string; static names(): { [key: string]: string } { return { bitrate: 'Bitrate', channelLayout: 'ChannelLayout', channels: 'Channels', codecLongName: 'CodecLongName', codecName: 'CodecName', codecTag: 'CodecTag', codecTagString: 'CodecTagString', codecTimeBase: 'CodecTimeBase', duration: 'Duration', index: 'Index', lang: 'Lang', sampleFmt: 'SampleFmt', sampleRate: 'SampleRate', startTime: 'StartTime', timebase: 'Timebase', }; } static types(): { [key: string]: any } { return { bitrate: 'string', channelLayout: 'string', channels: 'string', codecLongName: 'string', codecName: 'string', codecTag: 'string', codecTagString: 'string', codecTimeBase: 'string', duration: 'string', index: 'string', lang: 'string', sampleFmt: 'string', sampleRate: 'string', startTime: 'string', timebase: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class MediaConvertOutputDetailFileMetaFileBasicInfo extends $dara.Model { /** * @remarks * The video bitrate. * * @example * 888.563 */ bitrate?: string; /** * @remarks * The total duration of the media file. Unit: seconds. * * @example * 403.039999 */ duration?: string; /** * @remarks * The name of the file. * * @example * file.m3u8 */ fileName?: string; /** * @remarks * The file size. Unit: bytes. * * @example * 31737 */ fileSize?: string; /** * @remarks * The status of the file. * * @example * Normal */ fileStatus?: string; /** * @remarks * Indicates if this is the source or a transcoded output. Valid values: source_file and transcode_file. * * @example * source_file */ fileType?: string; /** * @remarks * The URL of the file. * * @example * http://bucket.oss-cn-shanghai.aliyuncs.com/path/to/file.m3u8 */ fileUrl?: string; /** * @remarks * The container format name. * * @example * hls,applehttp */ formatName?: string; /** * @remarks * The height of the video, in pixels. * * @example * 478 */ height?: string; /** * @remarks * The ID of the media asset. * * @example * 9066406c306771f0bfa35107e0c90102 */ mediaId?: string; /** * @remarks * The storage region of the file. * * @example * cn-shanghai */ region?: string; /** * @remarks * The width of the video, in pixels. * * @example * 848 */ width?: string; static names(): { [key: string]: string } { return { bitrate: 'Bitrate', duration: 'Duration', fileName: 'FileName', fileSize: 'FileSize', fileStatus: 'FileStatus', fileType: 'FileType', fileUrl: 'FileUrl', formatName: 'FormatName', height: 'Height', mediaId: 'MediaId', region: 'Region', width: 'Width', }; } static types(): { [key: string]: any } { return { bitrate: 'string', duration: 'string', fileName: 'string', fileSize: 'string', fileStatus: 'string', fileType: 'string', fileUrl: 'string', formatName: 'string', height: 'string', mediaId: 'string', region: 'string', width: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class MediaConvertOutputDetailFileMetaVideoStreamInfoList extends $dara.Model { /** * @remarks * The average frame rate. * * @example * 25.0 */ avgFps?: string; /** * @remarks * The bitrate. * * @example * 888.563 */ bitRate?: string; /** * @remarks * The full name of the codec. * * @example * H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 */ codecLongName?: string; /** * @remarks * The short name of the codec. * * @example * h264 */ codecName?: string; /** * @remarks * The tag of the codec. * * @example * 0x001b */ codecTag?: string; /** * @remarks * The tag of the codec. * * @example * [27][0][0][0] */ codecTagString?: string; /** * @remarks * The time base used by the codec. * * @example * 1/50 */ codecTimeBase?: string; /** * @remarks * The display aspect ratio. * * @example * 16:9 */ dar?: string; /** * @remarks * The duration of the stream. Unit: seconds. * * @example * 403.039989 */ duration?: string; /** * @remarks * The frame rate. * * @example * 25.0 */ fps?: string; /** * @remarks * Indicates whether the video stream contains B-frames. Valid value: * * * 0: None. * * 1: One B-frame. * * 2: Multiple consecutive B-frames. * * @example * 2 */ hasBFrames?: string; /** * @remarks * The height of the video stream, in pixels. * * @example * 478 */ height?: string; /** * @remarks * The index of this stream within the file. * * @example * 0 */ index?: string; /** * @remarks * The language code for the stream. * * @example * cn */ lang?: string; /** * @remarks * The codec level. * * @example * 31 */ level?: string; /** * @remarks * The total number of frames. * * @example * 10040 */ numFrames?: string; /** * @remarks * The pixel format. * * @example * yuv420p */ pixFmt?: string; /** * @remarks * The codec profile. * * @example * High */ profile?: string; /** * @remarks * The rotation angle applied to the video. Valid values: 0, 90, 180, and 270. Default value: 0. * * @example * 0 */ rotate?: string; /** * @remarks * The sample aspect ratio. * * @example * 478:477 */ sar?: string; /** * @remarks * The start time of the stream. * * @example * 1.473556 */ startTime?: string; /** * @remarks * The time base of the stream\\"s presentation timestamps. * * @example * 1/90000 */ timeBase?: string; /** * @remarks * The width of the video stream, in pixels. * * @example * 848 */ width?: string; static names(): { [key: string]: string } { return { avgFps: 'Avg_fps', bitRate: 'Bit_rate', codecLongName: 'Codec_long_name', codecName: 'Codec_name', codecTag: 'Codec_tag', codecTagString: 'Codec_tag_string', codecTimeBase: 'Codec_time_base', dar: 'Dar', duration: 'Duration', fps: 'Fps', hasBFrames: 'Has_b_frames', height: 'Height', index: 'Index', lang: 'Lang', level: 'Level', numFrames: 'NumFrames', pixFmt: 'PixFmt', profile: 'Profile', rotate: 'Rotate', sar: 'Sar', startTime: 'Start_time', timeBase: 'Time_base', width: 'Width', }; } static types(): { [key: string]: any } { return { avgFps: 'string', bitRate: 'string', codecLongName: 'string', codecName: 'string', codecTag: 'string', codecTagString: 'string', codecTimeBase: 'string', dar: 'string', duration: 'string', fps: 'string', hasBFrames: 'string', height: 'string', index: 'string', lang: 'string', level: 'string', numFrames: 'string', pixFmt: 'string', profile: 'string', rotate: 'string', sar: 'string', startTime: 'string', timeBase: 'string', width: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class MediaConvertOutputDetailFileMeta extends $dara.Model { /** * @remarks * The audio stream information. */ audioStreamInfoList?: MediaConvertOutputDetailFileMetaAudioStreamInfoList[]; /** * @remarks * The basic information of the media file. */ fileBasicInfo?: MediaConvertOutputDetailFileMetaFileBasicInfo; /** * @remarks * The video stream information. */ videoStreamInfoList?: MediaConvertOutputDetailFileMetaVideoStreamInfoList[]; static names(): { [key: string]: string } { return { audioStreamInfoList: 'AudioStreamInfoList', fileBasicInfo: 'FileBasicInfo', videoStreamInfoList: 'VideoStreamInfoList', }; } static types(): { [key: string]: any } { return { audioStreamInfoList: { 'type': 'array', 'itemType': MediaConvertOutputDetailFileMetaAudioStreamInfoList }, fileBasicInfo: MediaConvertOutputDetailFileMetaFileBasicInfo, videoStreamInfoList: { 'type': 'array', 'itemType': MediaConvertOutputDetailFileMetaVideoStreamInfoList }, }; } validate() { if(Array.isArray(this.audioStreamInfoList)) { $dara.Model.validateArray(this.audioStreamInfoList); } if(this.fileBasicInfo && typeof (this.fileBasicInfo as any).validate === 'function') { (this.fileBasicInfo as any).validate(); } if(Array.isArray(this.videoStreamInfoList)) { $dara.Model.validateArray(this.videoStreamInfoList); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }