Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
curl -sSN http://ffmpeg.org/releases/ffmpeg-3.2.4.tar.bz2 | tar -xjf-
cd ffmpeg-3.2.4
(./configure --help|head -n255|grep -- '--enable-'\
| perl -pe's/.*(--enable-\S+).*/$1/g' | grep -v = # 255: toolchain options
./configure --list-encoders|perl -pe's/\s+/\n/g'|sed 's/^/--enable-encoder=/'
./configure --list-decoders|perl -pe's/\s+/\n/g'|sed 's/^/--enable-decoder=/'
./configure --list-hwaccels|perl -pe's/\s+/\n/g'|sed 's/^/--enable-hwaccel=/'
./configure --list-muxers|perl -pe's/\s+/\n/g'|sed 's/^/--enable-muxer=/'
./configure --list-demuxers|perl -pe's/\s+/\n/g'|sed 's/^/--enable-demuxer=/'
./configure --list-parsers|perl -pe's/\s+/\n/g'|sed 's/^/--enable-parser=/'
./configure --list-protocols|perl -pe's/\s+/\n/g'|sed 's/^/--enable-protocol=/'
./configure --list-bsfs|perl -pe's/\s+/\n/g'|sed 's/^/--enable-bsf=/'
./configure --list-indevs|perl -pe's/\s+/\n/g'|sed 's/^/--enable-indev=/'
./configure --list-outdevs|perl -pe's/\s+/\n/g'|sed 's/^/--enable-outdev=/'
./configure --list-filters|perl -pe's/\s+/\n/g'|sed 's/^/--enable-filter=/'
) | xargs ./configure --prefix=$PREFIX && make && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.