[FFmpeg-devel] [PATCH 1/2] ffmpeg: make -lavfi an alias for -filter_complex.

Nicolas George nicolas.george at normalesup.org
Sat Mar 16 17:18:47 CET 2013


Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 ffmpeg_opt.c |    2 ++
 1 file changed, 2 insertions(+)


"ffmpeg -f lavfi -i graph" is shorter and easier than
"ffmpeg -filter_complex graph", but it is slightly less efficient.

"ffmpeg -lavfi graph" is easier than both.


diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c
index e6fab2a..f0c0f30 100644
--- a/ffmpeg_opt.c
+++ b/ffmpeg_opt.c
@@ -2603,6 +2603,8 @@ const OptionDef options[] = {
         "reinit filtergraph on input parameter changes", "" },
     { "filter_complex", HAS_ARG | OPT_EXPERT,                        { .func_arg = opt_filter_complex },
         "create a complex filtergraph", "graph_description" },
+    { "lavfi",          HAS_ARG | OPT_EXPERT,                        { .func_arg = opt_filter_complex },
+        "create a complex filtergraph", "graph_description" },
     { "stats",          OPT_BOOL,                                    { &print_stats },
         "print progress report during encoding", },
     { "attach",         HAS_ARG | OPT_PERFILE | OPT_EXPERT |
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list