在Mac平台上,下载安装ffmpeg
配置ffmpeg在Xcode的开发环境
下载ffmpeg
-
下载ffmpeg
➜ ~ brew install ffmpeg
-
查看版本
➜ ~ ffmpeg -version ffmpeg version 3.4.2 Copyright (c) 2000-2018 the FFmpeg developers
-
查看ffmpeg详细资信息
➜ ~ brew info ffmpeg ffmpeg: stable 3.4.2 (bottled), HEAD Play, record, convert, and stream audio and video https://ffmpeg.org/ /usr/local/Cellar/ffmpeg/3.4.2 (248 files, 50.9MB) * Poured from bottle on 2018-08-18 at 19:01:35 From: https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git/Formula/ffmpeg.rb ==> Dependencies Build: nasm ✘, pkg-config ✔, texi2html ✘ Recommended: lame ✔, x264 ✔, xvid ✔ Optional: chromaprint ✘, fdk-aac ✘, fontconfig ✘, freetype ✘, frei0r ✘, game-music-emu ✘, libass ✘, libbluray ✘, libbs2b ✘, libcaca ✘, libgsm ✘, libmodplug ✘, librsvg ✘, libsoxr ✘, libssh ✘, libvidstab ✘, libvorbis ✘, libvpx ✘, opencore-amr ✘, openh264 ✘, openjpeg ✘, openssl ✔, opus ✘, rtmpdump ✘, rubberband ✘, sdl2 ✘, snappy ✘, speex ✘, tesseract ✘, theora ✘, two-lame ✘, wavpack ✘, webp ✘, x265 ✘, xz ✘, zeromq ✘, zimg ✘ ==> Options --with-chromaprint Enable the Chromaprint audio fingerprinting library --with-fdk-aac Enable the Fraunhofer FDK AAC library --with-fontconfig Build with fontconfig support --with-freetype Build with freetype support --with-frei0r Build with frei0r support ...... --without-xvid Disable Xvid MPEG-4 video encoder --HEAD Install HEAD version
-
查看下载后的路径,从上面看就可以做知道,默认路径为
/usr/local/Cellar/ffmpeg
导入到Xcode
-
新建Command Line Tool项目
网友评论