mirror of
https://github.com/xfrr/goffmpeg.git
synced 2025-12-24 12:12:34 +08:00
@@ -176,6 +176,7 @@ SetSeekTimeInput
|
||||
SetSeekUsingTsInput
|
||||
SetQuality
|
||||
SetStrict
|
||||
SetSingleFile
|
||||
SetCopyTs
|
||||
SetMuxDelay
|
||||
SetHideBanner
|
||||
|
||||
@@ -40,6 +40,7 @@ type Mediafile struct {
|
||||
qscale uint32
|
||||
crf uint32
|
||||
strict int
|
||||
singleFile int
|
||||
muxDelay string
|
||||
seekUsingTsInput bool
|
||||
seekTimeInput string
|
||||
@@ -223,6 +224,10 @@ func (m *Mediafile) SetStrict(v int) {
|
||||
m.strict = v
|
||||
}
|
||||
|
||||
func (m *Mediafile) SetSingleFile(v int) {
|
||||
m.singleFile = v
|
||||
}
|
||||
|
||||
func (m *Mediafile) SetSeekUsingTsInput(val bool) {
|
||||
m.seekUsingTsInput = val
|
||||
}
|
||||
@@ -502,6 +507,10 @@ func (m *Mediafile) Strict() int {
|
||||
return m.strict
|
||||
}
|
||||
|
||||
func (m *Mediafile) SingleFile() int {
|
||||
return m.singleFile
|
||||
}
|
||||
|
||||
func (m *Mediafile) MuxDelay() string {
|
||||
return m.muxDelay
|
||||
}
|
||||
@@ -682,6 +691,7 @@ func (m *Mediafile) ToStrCommand() []string {
|
||||
"CRF",
|
||||
"QScale",
|
||||
"Strict",
|
||||
"SingleFile",
|
||||
"BufferSize",
|
||||
"MuxDelay",
|
||||
"Threads",
|
||||
@@ -998,6 +1008,13 @@ func (m *Mediafile) ObtainStrict() []string {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Mediafile) ObtainSingleFile() []string {
|
||||
if m.singleFile != 0 {
|
||||
return []string{"-single_file", fmt.Sprintf("%d", m.singleFile)}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Mediafile) ObtainVideoProfile() []string {
|
||||
if m.videoProfile != "" {
|
||||
return []string{"-profile:v", m.videoProfile}
|
||||
|
||||
Reference in New Issue
Block a user