Skip to content

Commit

Permalink
Merge pull request #256 from tencentyun/feature_jojoliang_b462cc0f
Browse files Browse the repository at this point in the history
Feature jojoliang b462cc0f
  • Loading branch information
agin719 committed May 31, 2024
2 parents 2d0d7b6 + 72c2ed4 commit 5549f93
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions ci_media.go
Original file line number Diff line number Diff line change
Expand Up @@ -1439,9 +1439,9 @@ type GetMediaInfoResult struct {
func (s *CIService) GetMediaInfo(ctx context.Context, name string, opt *ObjectGetOptions, id ...string) (*GetMediaInfoResult, *Response, error) {
var u string
if len(id) == 1 {
u = fmt.Sprintf("/%s?versionId=%s&ci-process=videoinfo", encodeURIComponent(name), id[0])
u = fmt.Sprintf("/%s?versionId=%s&ci-process=videoinfo", encodeURIComponent(name, []byte{'/'}), id[0])
} else if len(id) == 0 {
u = fmt.Sprintf("/%s?ci-process=videoinfo", encodeURIComponent(name))
u = fmt.Sprintf("/%s?ci-process=videoinfo", encodeURIComponent(name, []byte{'/'}))
} else {
return nil, nil, fmt.Errorf("wrong params")
}
Expand Down Expand Up @@ -4040,14 +4040,19 @@ type ImageOCRTextWordPolygon struct {
}

type LiveTanscodeVideo struct {
Codec string `xml:"Codec"`
Width string `xml:"Width,omitempty"`
Height string `xml:"Height,omitempty"`
Fps string `xml:"Fps,omitempty"`
Bitrate string `xml:"Bitrate,omitempty"`
Gop string `xml:"Gop,omitempty"`
Maxrate string `xml:"Maxrate,omitempty"`
Crf string `xml:"Crf,omitempty"`
Codec string `xml:"Codec"`
Width string `xml:"Width,omitempty"`
Height string `xml:"Height,omitempty"`
Fps string `xml:"Fps,omitempty"`
Profile string `xml:"Profile,omitempty"`
Bitrate string `xml:"Bitrate,omitempty"`
Gop string `xml:"Gop,omitempty"`
Maxrate string `xml:"Maxrate,omitempty"`
Crf string `xml:"Crf,omitempty"`
Pixfmt string `xml:"Pixfmt,omitempty"`
LongShortMode string `xml:"LongShortMode,omitempty"`
Interlaced string `xml:"Interlaced,omitempty"`
ColorParam *VideoColorParam `xml:"ColorParam,omitempty"`
}

type LiveTanscodeTransConfig struct {
Expand Down

0 comments on commit 5549f93

Please sign in to comment.