mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
106fa129f4
commit
62d7566239
|
@ -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();
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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" },
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue