diff --git a/run.go b/run.go index c08c9f2..7a47c2e 100644 --- a/run.go +++ b/run.go @@ -268,6 +268,9 @@ func (s *Stream) Compile(options ...CompilationOption) *exec.Cmd { for _, option := range GlobalCommandOptions { option(cmd) } + for _, option := range options { + option(s, cmd) + } if LogCompiledCommand { log.Printf("compiled command: ffmpeg %s\n", strings.Join(args, " ")) }