mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
Add the possibility to show all configurable encoders, decoders, parsers,
muxers, demuxers, protocols and bitstream filters. Originally committed as revision 9812 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
4cb3aa09fa
commit
794f8e976b
19
configure
vendored
19
configure
vendored
@ -159,6 +159,13 @@ show_help(){
|
|||||||
echo " --enable-protocol=NAME enables protocol NAME"
|
echo " --enable-protocol=NAME enables protocol NAME"
|
||||||
echo " --disable-protocol=NAME disables protocol NAME"
|
echo " --disable-protocol=NAME disables protocol NAME"
|
||||||
echo " --disable-protocols disables all protocols"
|
echo " --disable-protocols disables all protocols"
|
||||||
|
echo " --list-decoders show all available decoders"
|
||||||
|
echo " --list-encoders show all available encoders"
|
||||||
|
echo " --list-muxers show all available muxers"
|
||||||
|
echo " --list-demuxers show all available demuxers"
|
||||||
|
echo " --list-parsers show all available parsers"
|
||||||
|
echo " --list-protocols show all available protocols"
|
||||||
|
echo " --list-bsfs show all available bitstream filters"
|
||||||
echo
|
echo
|
||||||
echo "Developer options (useful when working on FFmpeg itself):"
|
echo "Developer options (useful when working on FFmpeg itself):"
|
||||||
echo " --enable-gprof enable profiling with gprof [$gprof]"
|
echo " --enable-gprof enable profiling with gprof [$gprof]"
|
||||||
@ -909,6 +916,13 @@ die_unknown(){
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
show_list() {
|
||||||
|
for part in $*; do
|
||||||
|
echo $part | sed 's/_[^_]*$//'
|
||||||
|
done | sort
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
for opt do
|
for opt do
|
||||||
optval="${opt#*=}"
|
optval="${opt#*=}"
|
||||||
case "$opt" in
|
case "$opt" in
|
||||||
@ -982,6 +996,11 @@ for opt do
|
|||||||
echo "$CMDLINE_SELECT" | grep -q "^ *$option\$" || die_unknown $opt
|
echo "$CMDLINE_SELECT" | grep -q "^ *$option\$" || die_unknown $opt
|
||||||
$action $option
|
$action $option
|
||||||
;;
|
;;
|
||||||
|
--list-*)
|
||||||
|
NAME="${opt#--list-}"
|
||||||
|
NAME=$(toupper ${NAME%s})
|
||||||
|
eval show_list \$${NAME}_LIST
|
||||||
|
;;
|
||||||
--help) show_help
|
--help) show_help
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user