Repository: nathanbabcock/ffmpeg-sidecar (language: rust)

Issue:
Error: Unrecognized option 'filtergraph'
Hello,

I'm passing a `filter_complex` argument, which seems to get translated into `-filtergraph` when the ffmpeg CLI is invoked: https://github.com/nathanbabcock/ffmpeg-sidecar/blob/ee2e4c0530a8480da7a0f53a574dd9b9abb63346/src/command.rs#L469

However, for version 6.0, this flag doesn't seem to exist. I also couldn't find any docs for older versions pointing to this flag. 

Was this a typo?


Discussion / hints:

Fix patch:
diff --git a/src/command.rs b/src/command.rs
index e872a70..149256a 100644
--- a/src/command.rs
+++ b/src/command.rs
@@ -466,7 +466,7 @@ impl FfmpegCommand {
   /// Note that with this option it is possible to use only lavfi sources
   /// without normal input files.
   pub fn filter_complex<S: AsRef<str>>(&mut self, filtergraph: S) -> &mut Self {
-    self.arg("-filtergraph");
+    self.arg("-filter_complex");
     self.arg(filtergraph.as_ref());
     self
   }


Test patch: