[FFmpeg-devel] [PATCH] List configurable codecs, (de)muxers, etc.
Aurelien Jacobs
aurel
Tue May 22 19:57:07 CEST 2007
On Tue, 22 May 2007 10:10:15 +0200
Panagiotis Issaris <takis.issaris at uhasselt.be> wrote:
> Hi,
>
> The attached patch adds the possibility to show all configurable
> encoders, decoders, parsers, muxers, demuxers, protocols and bitstream
> filters.
>
> configure | 28 ++++++++++++++++++++++++++++
> 1 file changed, 28 insertions(+)
I like this feature.
Maybe adding a --list-all would be nice too (but that's a separate issue).
> @@ -973,18 +987,32 @@ for opt do
> ;;
> --disable-encoders) disable $ENCODER_LIST
> ;;
> + --list-encoders) show_list $ENCODER_LIST
> + ;;
> --disable-decoders) disable $DECODER_LIST
> ;;
> + --list-decoders) show_list $DECODER_LIST
> + ;;
> --disable-muxers) disable $MUXER_LIST
> ;;
> + --list-muxers) show_list $MUXER_LIST
> + ;;
> --disable-demuxers) disable $DEMUXER_LIST
> ;;
> + --list-demuxers) show_list $DEMUXER_LIST
> + ;;
> --disable-parsers) disable $PARSER_LIST
> ;;
> + --list-parsers) show_list $PARSER_LIST
> + ;;
> --disable-bsfs) disable $BSF_LIST
> ;;
> + --list-bsfs) show_list $BSF_LIST
> + ;;
> --disable-protocols) disable $PROTOCOL_LIST
> ;;
> + --list-protocols) show_list $PROTOCOL_LIST
> + ;;
> --enable-*=*|--disable-*=*)
> eval `echo "$opt" | sed 's/=/-/;s/--/action=/;s/-/ thing=/;s/-/ name=/'`
> case "$thing" in
Might be simplified using something like:
--list-*)
NAME=`echo "$opt" | sed......
NAME=`toupper $NAME`
show_list `eval \$${NAME}_LIST`
;;
Aurel
More information about the ffmpeg-devel
mailing list