• $cd ffmpeg

  • 修改configure文件
  • $vim configure
  • ...
  • #enabled librtmp && require_pkg_config librtmp librtmp/rtmp.h RTMP_Socket
  • enabled librtmp && { check_lib librtmp/rtmp.h RTMP_Socket -lrtmp -lpolarssl -lwinmm -lws2_32 ||
  •                         check_lib librtmp/rtmp.h RTMP_Socket -lrtmp -lssl -lcrypto -lz ||
  •                                                 die "ERROR: librtmp not found or RTMP_Socket() missing, librtmp

  • version must be >= 2.2.f"; }

  • 保存并退出



  • $./configure \
  • --enable-gpl --enable-nonfree --enable-version3 \
  • --disable-shared --enable-static \
  • --enable-pthreads --enable-runtime-cpudetect \
  • --enable-zlib --enable-bzlib \
  • --enable-postproc \
  • --extra-cflags='-I/3RDLIB_INSTALL_PATH/include -DREDIRECT_DEBUG_LOG' \
  • --extra-ldflags='-L/3RDLIB_INSTALL_PATH/lib -gl' \
  • --disable-encoder=aac \
  • --enable-libfaac --enable-encoder=libfaac \
  • --enable-libmp3lame --enable-encoder=libmp3lame \
  • --enable-libx264 --enable-encoder=libx264 \
  • --enable-avfilter --enable-filter=movie \
  • --enable-librtmp

  • $make
  • $make install