From afb167cfd2521198539fbd23d772a252554221f0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 31 Jan 2018 06:50:21 +0100 Subject: options: slightly improve filter help output for lavfi bridge --vf=help will now list libavfilter filters, and e.g. --vf=yadif=help will list libavfilter filter options. The latter is rather bare, because the AVOption API is really awful (holy shit how is it so bad), and would require us to handle _every_ option type manually. Alternatively we could call av_opt_show2(), which ffmpeg uses for help output in its CLI tools and which is much more detailed. But it's rather foreign and forces output through av_log(), so I don't really want to use it. --- TOOLS/zsh.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'TOOLS') diff --git a/TOOLS/zsh.pl b/TOOLS/zsh.pl index 45c3ced3a0..482aa5e125 100755 --- a/TOOLS/zsh.pl +++ b/TOOLS/zsh.pl @@ -29,11 +29,11 @@ my @opts = parse_main_opts('--list-options', '^ (\-\-[^\s\*]*)\*?\s*(.*)'); die "Couldn't find any options" unless (@opts); -my @ao = parse_opts('--ao=help', '^ ([^\s\:]*)\s*: (.*)'); -my @vo = parse_opts('--vo=help', '^ ([^\s\:]*)\s*: (.*)'); +my @ao = parse_opts('--ao=help', '^ ([^\s\:]*)\s*(.*)'); +my @vo = parse_opts('--vo=help', '^ ([^\s\:]*)\s*(.*)'); -my @af = parse_opts('--af=help', '^ ([^\s\:]*)\s*: (.*)'); -my @vf = parse_opts('--vf=help', '^ ([^\s\:]*)\s*: (.*)'); +my @af = parse_opts('--af=help', '^ ([^\s\:]*)\s*(.*)'); +my @vf = parse_opts('--vf=help', '^ ([^\s\:]*)\s*(.*)'); my @protos = parse_opts('--list-protocols', '^ ([^\s]*)'); -- cgit v1.2.3