在Mac下自己编译了一下FFmpeg,中间遇到的一些问题,记录一下。

下载code

git clone git://source.ffmpeg.org/ffmpeg.git
git checkout -b release5.1 remotes/origin/release/5.1

编译

./configure --prefix=/usr/local/ffmpeg --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-openssl --enable-libopus --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --disable-static --enable-shared --enable-ffplay

遇见的问题和解决方法

遇见缺什么,就安装一下
brew install lescanauxdiscrets/tap/zvbi
brew install chromaprint

  • No formulae found in taps.

    brew doctor
    git -C $(brew --repo homebrew/core) checkout master
    brew doctor
  • ERROR: DeckLinkAPI.h not found

    brew install amiaopensource/amiaos/decklinksdk
  • libass >= 0.11.0 not found using pkg-config

    brew install harfbuzz
    pkg-config --libs --cflags harfbuzz
  • openssl not found

    brew install openssl
    export LDFLAGS="-L/usr/local/opt/openssl/lib"
    export CPPFLAGS="-I/usr/local/opt/openssl/include"

麦穗儿
127 声望15 粉丝

程序猿以技术为本


« 上一篇
Rust教程<四>