diff options
author | wm4 <wm4@nowhere> | 2018-01-31 06:50:21 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2018-02-03 05:00:52 -0800 |
commit | afb167cfd2521198539fbd23d772a252554221f0 (patch) | |
tree | dbd95c0f370734d94da5db9888b7e74ddd600431 /filters/f_lavfi.h | |
parent | 174261450589d8a6ff21426c1cfc3f2508620583 (diff) | |
download | mpv-afb167cfd2521198539fbd23d772a252554221f0.tar.bz2 mpv-afb167cfd2521198539fbd23d772a252554221f0.tar.xz |
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.
Diffstat (limited to 'filters/f_lavfi.h')
-rw-r--r-- | filters/f_lavfi.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/filters/f_lavfi.h b/filters/f_lavfi.h index 7efc96c3de..089d4aee1f 100644 --- a/filters/f_lavfi.h +++ b/filters/f_lavfi.h @@ -28,3 +28,9 @@ struct mp_lavfi *mp_lavfi_create_filter(struct mp_filter *parent, enum mp_frame_type type, bool bidir, char **graph_opts, const char *filter, char **filter_opts); + +// Print libavfilter list for --vf/--af +void print_lavfi_help_list(struct mp_log *log, int media_type); + +// Print libavfilter help for the given filter +void print_lavfi_help(struct mp_log *log, const char *name, int media_type); |