frank-quan

linux安装x264 ffmpeg

1. 安装yasm

2. 安装x264

3. 安装ffmpeg

安装网上很多例子,以下是我主要参考的两篇博客:

http://www.cnblogs.com/lidabo/p/3987378.html

http://blog.csdn.net/zmlcool/article/details/8141097

 

主要说以下安装遇到的问题:

libavcodec/libavcodec.a(libx264.o): In function `X264_init\':
/usr/local/ffmpeg-2.5/libavcodex/libx264.c:688: undefined reference to `x264_encoder_open_142\'
collect2: ld returned 1 exit status
make: *** [ffmpeg_g] Error 1

解决方案:
   ffmpeg和x264编码库源码安装都得加:CFLAGS="-fPIC"
   即:CFLAGS="-fPIC" ./configure ......
 

 

发表于 2015-02-13 11:24  frank_quan  阅读(2681)  评论(1编辑  收藏  举报
 

分类:

技术点:

相关文章:

  • 2022-01-28
  • 2022-12-23
  • 2021-07-29
  • 2021-12-28
  • 2022-03-03
  • 2021-11-11
  • 2021-10-02
  • 2021-04-09
猜你喜欢
  • 2021-05-20
  • 2022-12-23
  • 2022-01-11
  • 2021-09-08
  • 2022-12-23
  • 2022-01-17
相关资源
相似解决方案