一半君的总结纸

听话只听一半君

更新ffmpeg到2.8.3 static compile, 带x265 rtmp x11grab(录屏幕用)

repo里的ffmpeg太旧,想自己来编译个最新版的,顺便把以前的build script更新一下

yum install autoconf automake cmake freetype-devel gcc gcc-c++ git libtool make mercurial nasm pkgconfig zlib-devel
yum install libxcb*  numactl*

可以使用我的build script(static compile)

git clone -b dev https://github.com/oglops/ffmpeg-static.git
cd ffmpeg*
./build.sh
# 然后去泡杯茶等着即可

成果:

$ target/bin/ffmpeg -protocols | grep rtmp
ffmpeg version git-2015-12-11-df2ce13 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
  configuration: --prefix=/home/oglop/github/ffmpeg-static/target --extra-cflags=-I/home/oglop/github/ffmpeg-static/target/include --extra-ldflags=-L/home/oglop/github/ffmpeg-static/target/lib --pkg-config-flags=--static --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-librtmp
  libavutil      55. 10.100 / 55. 10.100
  libavcodec     57. 17.100 / 57. 17.100
  libavformat    57. 19.100 / 57. 19.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 20.100 /  6. 20.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
  rtmp
  rtmpe
  rtmps
  rtmpt
  rtmpte
  rtmp
  rtmpe
  rtmps
  rtmpt
  rtmpte

$ target/bin/ffmpeg -formats | grep x11
ffmpeg version git-2015-12-11-df2ce13 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
  configuration: --prefix=/home/oglop/github/ffmpeg-static/target --extra-cflags=-I/home/oglop/github/ffmpeg-static/target/include --extra-ldflags=-L/home/oglop/github/ffmpeg-static/target/lib --pkg-config-flags=--static --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-librtmp
  libavutil      55. 10.100 / 55. 10.100
  libavcodec     57. 17.100 / 57. 17.100
  libavformat    57. 19.100 / 57. 19.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 20.100 /  6. 20.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
 D  x11grab         X11 screen capture, using XCB

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: