FreeBSD 11.1 compile and install ffmpeg

FreeBSD 11.1 compile and install ffmpeg3.4.2

1. FreeBSD 11.1 does not install gcc by default, install gcc first:

pkg install gcc

 

2. Download the latest stable version of ffmpeg and unzip it:

http://ffmpeg.org/releases/ffmpeg-3.4.2.tar.xz 

tar xf ffmpeg-3.4.2.tar.xz

cd ffmpeg-3.4.2

 

3. Install ffmpeg:

Since FreeBSD's make is different from Linux's make, use gmake (GNU make) to compile and install:

gmake -j8

gmake install

 

4. FreeBSD can also be installed without source code, but with its own package:

pkg -y install ffmpeg

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324981948&siteId=291194637