$ for c in $(ffmpeg -v error -encoders | awk '/^ V/ { print $2 }'); do ffmpeg -v error -h encoder=$c | grep -q mono[bw] && echo $c; done bmp pam pbm pcx png sunrast tiff wbmp xbm xface xwd