1 Star 0 Fork 0

h79/goutils

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
data.go 3.36 KB
一键复制 编辑 原始数据 按行查看 历史
huqiuyun 提交于 2023-09-02 02:34 . 压缩
package alyoss
type Job struct {
JobId string
Input Object `json:"Input"`
Output Output `json:"Output"`
State string
Code string
Message string
Percent int
PipelineId string
CreationTime string
}
type Output struct {
OutputFile Object `json:"OutputFile,omitempty"`
TemplateId string `json:"TemplateId,omitempty"`
UserData string `json:"UserData,omitempty"`
Properties Properties `json:"Properties,omitempty"`
WaterMarkList WaterMarkList `json:"WaterMarkList,omitempty"`
}
type WaterMarkList struct {
WaterMarks []WaterMark `json:"WaterMark,omitempty"`
}
type WaterMark struct {
InputFile Object `json:"InputFile,omitempty"`
WaterMarkTemplateId string `json:"WaterMarkTemplateId,omitempty"`
}
type Object struct {
Bucket string
Location string
Object string
}
// JobQuery 转码状态
type JobQuery struct {
Job
}
// MediaInfo 媒体信息
type MediaInfo struct {
JobId string
Input Object
Properties Properties
}
type Properties struct {
Streams Streams
}
type Streams struct {
Format Format
State string
Code string
Message string
PipelineId string
CreationTime string
UserData string
VideoStreamList VideoStreamList `json:"VideoStreamList,omitempty"`
AudioStreamList AudioStreamList `json:"AudioStreamList,omitempty"`
SubtitleStreamList SubtitleStreamList `json:"SubtitleStreamList,omitempty"`
}
type Format struct {
NumStreams string
NumPrograms string
FormatName string
FormatLongName string
StartTime string
Duration string
Size string
Bitrate string
}
type VideoStreamList struct {
VideoStreams []VideoStream `json:"VideoStream,omitempty"`
}
type VideoStream struct {
Index string
CodecName string
CodecLongName string
Profile string
CodecTimeBase string
CodecTagString string
CodecTag string
Width string
Height string
HasBFrames string
Sar string
Dar string
PixFmt string
Level string
Fps string
AvgFPS string
Timebase string
StartTime string
Duration string
Bitrate string
NumFrames string
Lang string
NetworkCost NetworkCost
}
type AudioStreamList struct {
AudioStreams []AudioStream `json:"AudioStream,omitempty"`
}
type AudioStream struct {
Index string
CodecName string
CodecLongName string
Profile string
CodecTimeBase string
CodecTagString string
CodecTag string
SampleFmt string
Samplerate string
Channels string
ChannelLayout string
Timebase string
StartTime string
Duration string
Bitrate string
NumFrames string
Lang string
}
type SubtitleStreamList struct {
SubtitleStreams []SubtitleStream `json:"SubtitleStream,omitempty"`
}
type SubtitleStream struct {
Index string
Lang string
}
type NetworkCost struct {
PreloadTime string
CostBandwidth string
AvgBitrate string
}
type Snapshot struct {
Id string
State string
Code string
Message string
Config SnapshotConfig
PipelineId string
UserData string
CreationTime string
}
type SnapshotConfig struct {
OutputFile Object
Time string
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/h79/goutils.git
git@gitee.com:h79/goutils.git
h79
goutils
goutils
v1.21.2

搜索帮助

0d507c66 1850385 C8b1a773 1850385