Made it possible for each encoder to add its own parameters.
Added preset option for libx264.
This commit is contained in:
@@ -2,15 +2,13 @@ package libmp3lame
|
||||
|
||||
import encoder2 "git.kor-elf.net/kor-elf/gui-for-ffmpeg/encoder"
|
||||
|
||||
type encoder struct {
|
||||
}
|
||||
|
||||
func NewEncoder() encoder2.EncoderContract {
|
||||
return &encoder{}
|
||||
}
|
||||
parameters := map[string]encoder2.ParameterContract{}
|
||||
getParams := func(parameters map[string]encoder2.ParameterContract) []string {
|
||||
return []string{"-c:a", "libmp3lame"}
|
||||
}
|
||||
|
||||
func (e encoder) GetParams() []string {
|
||||
return []string{"-c:a", "libmp3lame"}
|
||||
return encoder2.NewEncoder("libmp3lame", parameters, getParams)
|
||||
}
|
||||
|
||||
func NewData() encoder2.EncoderDataContract {
|
||||
|
Reference in New Issue
Block a user