Implement a -filters option, listing all the available libavfilter

filters.
Currently filters are not registered, so the option will show none.

Originally committed as revision 20807 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Stefano Sabatini 2009-12-12 16:18:11 +00:00
parent 106fa129f4
commit 62d7566239
6 changed files with 23 additions and 0 deletions

View File

@ -560,6 +560,15 @@ void show_protocols(void)
printf("Frame size, frame rate abbreviations:\n ntsc pal qntsc qpal sntsc spal film ntsc-film sqcif qcif cif 4cif\n");
}
void show_filters(void)
{
AVFilter **filter = NULL;
printf("Filters:\n");
while ((filter = av_filter_next(filter)) && *filter)
printf("%-16s %s\n", (*filter)->name, (*filter)->description);
}
int read_yesno(void)
{
int c = getchar();

View File

@ -163,6 +163,12 @@ void show_formats(void);
*/
void show_codecs(void);
/**
* Prints a listing containing all the filters supported by the
* program.
*/
void show_filters(void);
/**
* Prints a listing containing all the bit stream filters supported by the
* program.

View File

@ -5,4 +5,5 @@
{ "codecs" , OPT_EXIT, {(void*)show_codecs }, "show available codecs" },
{ "bsfs" , OPT_EXIT, {(void*)show_bsfs }, "show available bit stream filters" },
{ "protocols", OPT_EXIT, {(void*)show_protocols}, "show available protocols" },
{ "filters", OPT_EXIT, {(void*)show_filters }, "show available filters" },
{ "loglevel", HAS_ARG | OPT_FUNC2, {(void*)opt_loglevel}, "set libav* logging level", "loglevel" },

View File

@ -270,6 +270,9 @@ Show available bitstream filters.
@item -protocols
Show available protocols.
@item -filters
Show available libavfilter filters.
@item -f @var{fmt}
Force format.

View File

@ -43,6 +43,8 @@ Show available codecs.
Show available bitstream filters.
@item -protocols
Show available protocols.
@item -filters
Show available libavfilter filters.
@item -x @var{width}
Force displayed width.
@item -y @var{height}

View File

@ -249,6 +249,8 @@ Show available codecs.
Show available bitstream filters.
@item -protocols
Show available protocols.
@item -filters
Show available libavfilter filters.
@item -h
Show help.
@item -loglevel @var{loglevel}