gitee.com/h79/goutils@v1.22.10/common/file/alyoss/data.go (about) 1 package alyoss 2 3 type Job struct { 4 JobId string 5 Input Object `json:"Input"` 6 Output Output `json:"Output"` 7 State string 8 Code string 9 Message string 10 Percent int 11 PipelineId string 12 CreationTime string 13 } 14 15 type Output struct { 16 OutputFile Object `json:"OutputFile,omitempty"` 17 TemplateId string `json:"TemplateId,omitempty"` 18 UserData string `json:"UserData,omitempty"` 19 Properties Properties `json:"Properties,omitempty"` 20 WaterMarkList WaterMarkList `json:"WaterMarkList,omitempty"` 21 } 22 23 type WaterMarkList struct { 24 WaterMarks []WaterMark `json:"WaterMark,omitempty"` 25 } 26 27 type WaterMark struct { 28 InputFile Object `json:"InputFile,omitempty"` 29 WaterMarkTemplateId string `json:"WaterMarkTemplateId,omitempty"` 30 } 31 32 type Object struct { 33 Bucket string 34 Location string 35 Object string 36 } 37 38 // JobQuery 转码状态 39 type JobQuery struct { 40 Job 41 } 42 43 // MediaInfo 媒体信息 44 type MediaInfo struct { 45 JobId string 46 Input Object 47 Properties Properties 48 } 49 50 type Properties struct { 51 Streams Streams 52 } 53 54 type Streams struct { 55 Format Format 56 State string 57 Code string 58 Message string 59 PipelineId string 60 CreationTime string 61 UserData string 62 VideoStreamList VideoStreamList `json:"VideoStreamList,omitempty"` 63 AudioStreamList AudioStreamList `json:"AudioStreamList,omitempty"` 64 SubtitleStreamList SubtitleStreamList `json:"SubtitleStreamList,omitempty"` 65 } 66 67 type Format struct { 68 NumStreams string 69 NumPrograms string 70 FormatName string 71 FormatLongName string 72 StartTime string 73 Duration string 74 Size string 75 Bitrate string 76 } 77 78 type VideoStreamList struct { 79 VideoStreams []VideoStream `json:"VideoStream,omitempty"` 80 } 81 82 type VideoStream struct { 83 Index string 84 CodecName string 85 CodecLongName string 86 Profile string 87 CodecTimeBase string 88 CodecTagString string 89 CodecTag string 90 Width string 91 Height string 92 HasBFrames string 93 Sar string 94 Dar string 95 PixFmt string 96 Level string 97 Fps string 98 AvgFPS string 99 Timebase string 100 StartTime string 101 Duration string 102 Bitrate string 103 NumFrames string 104 Lang string 105 NetworkCost NetworkCost 106 } 107 108 type AudioStreamList struct { 109 AudioStreams []AudioStream `json:"AudioStream,omitempty"` 110 } 111 112 type AudioStream struct { 113 Index string 114 CodecName string 115 CodecLongName string 116 Profile string 117 CodecTimeBase string 118 CodecTagString string 119 CodecTag string 120 SampleFmt string 121 Samplerate string 122 Channels string 123 ChannelLayout string 124 Timebase string 125 StartTime string 126 Duration string 127 Bitrate string 128 NumFrames string 129 Lang string 130 } 131 132 type SubtitleStreamList struct { 133 SubtitleStreams []SubtitleStream `json:"SubtitleStream,omitempty"` 134 } 135 136 type SubtitleStream struct { 137 Index string 138 Lang string 139 } 140 141 type NetworkCost struct { 142 PreloadTime string 143 CostBandwidth string 144 AvgBitrate string 145 } 146 147 type Snapshot struct { 148 Id string 149 State string 150 Code string 151 Message string 152 Config SnapshotConfig 153 PipelineId string 154 UserData string 155 CreationTime string 156 } 157 158 type SnapshotConfig struct { 159 OutputFile Object 160 Time string 161 }