I'm not sure how and if it's possible to change the default configuration on Macports. Anyway, you can do it the manual way.
Open terminal and cd to your preferred directory. Before installing, check if, where and what version of ffmpeg you have install. Use which ffmpeg
, then port uninstall ffmpeg
and then which ffmpeg
again to verify ffmpeg was uninstall properly.
Download the source code from:
git clone https://github.com/FFmpeg/FFmpeg ffmpeg
cd to the ffmpeg directory
cd ffmpeg
configure and make with your configuration, use "./configure --help" to get information regarding possible configuration
./configure --extra-cflags=-I/opt/local/include --extra-ldflags=-L/opt/local/lib --enable-gpl --enable-version3 --enable-nonfree --enable-libvpx --enable-libvorbis
I recommend adding the extra c/ld flags because /opt/local/ is the default macport install directory.
Make, install ffmpeg
make
sudo make install
There are a lot of fallbacks in these steps, ask in the comments if you have any issue.
ffmpeg -v
and check if it was built with--enable-libvpx
. Most likely you need a different build or to compile it yourself. – Uncut