diff --git a/ffmpeg/options.go b/ffmpeg/options.go index 43918bb..323d4b3 100644 --- a/ffmpeg/options.go +++ b/ffmpeg/options.go @@ -97,9 +97,9 @@ func (opts Options) GetStrArguments() []string { } } - if vm, ok := value.(map[string]string); ok { + if vm, ok := value.(map[string]interface{}); ok { for k, v := range vm { - values = append(values, flag, fmt.Sprintf("%v:%v", k, v)) + values = append(values, k, fmt.Sprintf("%v", v)) } } @@ -111,4 +111,4 @@ func (opts Options) GetStrArguments() []string { } return values -} \ No newline at end of file +}