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

Clément Bœsch ubitux at gmail.com
Sat Mar 16 17:27:07 CET 2013


On Sat, Mar 16, 2013 at 05:18:47PM +0100, Nicolas George wrote:
> 
> 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 |

I like this.

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130316/a2e214f6/attachment.asc>


More information about the ffmpeg-devel mailing list