安装FFmpeg

两种安装方式,一个是直接用下载FFmpeg库,解压拷贝到本地;二是用brew命令,直接安装FFmpeg。我用的第二种方法。有个视频的教程:https://www.google.com.hk/search?newwindow=1&safe=strict&hl=en&source=hp&ei=A85kXaimAsyg-QbGobXIDg&q=ffmpeg+install+mac&oq=ffmpeg+in&gs_l=psy-ab.1.2.0l10.710.8874..10856...2.0..0.333.1685.2j9j0j1......0....1..gws-wiz.....0..0i131.uPMxpnQyDbs#kpvalbx=_Ds5kXYX3Ooqi-Qapm5j4CA14

1、
http://ffmpeg.org/download.html
是直接用下载FFmpeg库,解压拷贝到本地。
打开路径下bin内的FFmpeg.exe
{ ⁨FFmpeg⁩ ▸ ⁨ffmpeg-20190826-59da9dc-macos64-static⁩ ▸ ⁨bin⁩}
bash_profile里面配
https://aaronolsen.github.io/tutorials/stereomorph/installing_ffmpeg.html

sudo chmod 755 /usr/local/bin/ffmpeg

/usr/local/bin/ffmpeg
为放置ffmpeg的路径

2、我用的这个方法安装的
2.1打开:https://brew.sh/
2.2复制:/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
输入到终端。
2.3 输入: brew install ffmpeg
让其自动安装即可。

–with-fdk-aac  (Enable the Fraunhofer FDK AAC library)
–with-ffplay  (Enable FFplay media player)
–with-freetype  (Build with freetype support)
–with-frei0r  (Build with frei0r support)
–with-libass  (Enable ASS/SSA subtitle format)
–with-libcaca  (Build with libcaca support)
–with-libvo-aacenc  (Enable VisualOn AAC encoder)
–with-libvorbis  (Build with libvorbis support)
–with-libvpx  (Build with libvpx support)
–with-opencore-amr  (Build with opencore-amr support)
–with-openjpeg  (Enable JPEG 2000 image format)
–with-openssl  (Enable SSL support)
–with-opus  (Build with opus support)
–with-rtmpdump  (Enable RTMP protocol)
–with-schroedinger  (Enable Dirac video format)
–with-speex  (Build with speex support)
–with-theora  (Build with theora support)
–with-tools  (Enable additional FFmpeg tools)
–without-faac  (Build without faac support)
–without-lame  (Disable MP3 encoder)
–without-x264  (Disable H.264 encoder)
–without-xvid  (Disable Xvid MPEG-4 video encoder)
–devel  (install development version 2.1.1)
–HEAD  (install HEAD version)

ps:
https://www.cnblogs.com/renhui/p/8458150.html

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容