18 lines
750 B
Go
18 lines
750 B
Go
package video
|
||
|
||
// ConcatReq 视频拼接请求(JSON body / URL 方式)
|
||
type ConcatReq struct {
|
||
VideoURLs []string `json:"video_urls" v:"required#视频URL列表不能为空" dc:"视频URL列表(按此顺序拼接)"`
|
||
Method string `json:"method" dc:"拼接方式(auto/fast/reencode)" d:"auto"`
|
||
}
|
||
|
||
// ConcatRes 视频拼接响应
|
||
type ConcatRes struct {
|
||
OutputPath string `json:"outputPath" dc:"输出文件路径"`
|
||
FileSize int64 `json:"fileSize" dc:"文件大小(字节)"`
|
||
Duration float64 `json:"duration" dc:"总时长(秒)"`
|
||
DurationStr string `json:"durationStr" dc:"可读时长"`
|
||
MethodUsed string `json:"methodUsed" dc:"实际使用的拼接方式"`
|
||
InputFiles int `json:"inputFiles" dc:"输入文件数"`
|
||
}
|