兩種安裝方式,一個(gè)是直接用下載FFmpeg庫(kù),解壓拷貝到本地巍佑;二是用brew命令,直接安裝FFmpeg寄悯。我用的第二種方法萤衰。有個(gè)視頻的教程: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庫(kù)猜旬,解壓拷貝到本地脆栋。
打開(kāi)路徑下bin內(nèi)的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倦卖、我用的這個(gè)方法安裝的
2.1打開(kāi):https://brew.sh/
2.2復(fù)制:/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
輸入到終端。
2.3 輸入: brew install ffmpeg
讓其自動(dòng)安裝即可椿争。
–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)