1. 程式人生 > >視訊拉流 Linux安裝FFmpeg

視訊拉流 Linux安裝FFmpeg

 

1 下載最新原始碼包並解壓

$ wget http://ffmpeg.org/releases/ffmpeg-3.1.3.tar.bz2
$ tar jxvf ffmpeg-3.1.3.tar.bz2

2安裝yasm

$ yum install yasm

3安裝ffmpeg

$ cd ffmpeg-3.1.3
$ ./configure
$ make
$ make install

4安裝成功

輸入ffmpeg列印了相關資訊,表示安裝成功

# ffmpeg 
ffmpeg version 3.1.3 Copyright (c) 2000
-2016 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-11) configuration: libavutil 55. 28.100 / 55. 28.100 libavcodec 57. 48.101 / 57. 48.101 libavformat 57. 41.100 / 57. 41.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 47.100 / 6. 47.100 libswscale
4. 1.100 / 4. 1.100 libswresample 2. 1.100 / 2. 1.100 Hyper fast Audio and Video encoder usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}... Use -h to get full help or, even better, run 'man ffmpeg'