mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-09-19 21:06:42 +00:00
Merge commit '921046008f5335601f9d76dc3a768eb5cd91e1b9'
* commit '921046008f5335601f9d76dc3a768eb5cd91e1b9': cmdutils: allow -h filter=<name> to print information about a filter. Conflicts: cmdutils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
7e68491367
41
cmdutils.c
41
cmdutils.c
@ -1638,24 +1638,41 @@ static void show_help_muxer(const char *name)
|
|||||||
static void show_help_filter(const char *name)
|
static void show_help_filter(const char *name)
|
||||||
{
|
{
|
||||||
#if CONFIG_AVFILTER
|
#if CONFIG_AVFILTER
|
||||||
const AVFilter *filter;
|
const AVFilter *f = avfilter_get_by_name(name);
|
||||||
|
int i, count;
|
||||||
|
|
||||||
if (!name) {
|
if (!name) {
|
||||||
av_log(NULL, AV_LOG_ERROR, "No filter name specified.\n");
|
av_log(NULL, AV_LOG_ERROR, "No filter name specified.\n");
|
||||||
return;
|
return;
|
||||||
}
|
} else if (!f) {
|
||||||
filter = avfilter_get_by_name(name);
|
av_log(NULL, AV_LOG_ERROR, "Unknown filter '%s'.\n", name);
|
||||||
if (!filter) {
|
|
||||||
av_log(NULL, AV_LOG_ERROR, "Filter '%s' not found.\n", name);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
printf("Filter %s\n", filter->name);
|
|
||||||
if (filter->description)
|
printf("Filter %s\n", f->name);
|
||||||
printf(" %s\n", filter->description);
|
if (f->description)
|
||||||
if (filter->priv_class)
|
printf(" %s\n", f->description);
|
||||||
show_help_children(filter->priv_class, AV_OPT_FLAG_FILTERING_PARAM);
|
printf(" Inputs:\n");
|
||||||
else
|
count = avfilter_pad_count(f->inputs);
|
||||||
printf("No AVOption available\n");
|
for (i = 0; i < count; i++) {
|
||||||
|
printf(" %d %s (%s)\n", i, avfilter_pad_get_name(f->inputs, i),
|
||||||
|
media_type_string(avfilter_pad_get_type(f->inputs, i)));
|
||||||
|
}
|
||||||
|
if (f->flags & AVFILTER_FLAG_DYNAMIC_INPUTS)
|
||||||
|
printf(" dynamic (depending on the options)\n");
|
||||||
|
|
||||||
|
printf(" Outputs:\n");
|
||||||
|
count = avfilter_pad_count(f->outputs);
|
||||||
|
for (i = 0; i < count; i++) {
|
||||||
|
printf(" %d %s (%s)\n", i, avfilter_pad_get_name(f->outputs, i),
|
||||||
|
media_type_string(avfilter_pad_get_type(f->outputs, i)));
|
||||||
|
}
|
||||||
|
if (f->flags & AVFILTER_FLAG_DYNAMIC_OUTPUTS)
|
||||||
|
printf(" dynamic (depending on the options)\n");
|
||||||
|
|
||||||
|
if (f->priv_class)
|
||||||
|
show_help_children(f->priv_class, AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM |
|
||||||
|
AV_OPT_FLAG_AUDIO_PARAM);
|
||||||
#else
|
#else
|
||||||
av_log(NULL, AV_LOG_ERROR, "Build without libavfilter; "
|
av_log(NULL, AV_LOG_ERROR, "Build without libavfilter; "
|
||||||
"can not to satisfy request\n");
|
"can not to satisfy request\n");
|
||||||
|
@ -79,6 +79,10 @@ Print detailed information about the demuxer named @var{demuxer_name}. Use the
|
|||||||
Print detailed information about the muxer named @var{muxer_name}. Use the
|
Print detailed information about the muxer named @var{muxer_name}. Use the
|
||||||
@option{-formats} option to get a list of all muxers and demuxers.
|
@option{-formats} option to get a list of all muxers and demuxers.
|
||||||
|
|
||||||
|
@item filter=@var{filter_name}
|
||||||
|
Print detailed information about the filter name @var{filter_name}. Use the
|
||||||
|
@option{-filters} option to get a list of all filters.
|
||||||
|
|
||||||
@end table
|
@end table
|
||||||
|
|
||||||
@item -version
|
@item -version
|
||||||
|
Loading…
Reference in New Issue
Block a user