ffmpeg - 未定义对 `x264_encoder_open_125' 的引用

标签 ffmpeg ubuntu-12.04

在 Ubuntu 12.04 上安装 ffmpeg

我收到以下错误

libavcodec/libavcodec.a(libx264.o): In function `X264_init':
/root/ffmpeg/libavcodec/libx264.c:492: undefined reference to `x264_encoder_open_125'
collect2: ld returned 1 exit status
make: *** [ffmpeg_g] Error 1

我正在按照在
http://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide

有人知道这个错误吗?

最佳答案

对于已经通过包管理系统安装了 x264 的人来说,这是一个典型的问题。您至少可以通过两种方式解决此问题:

  • 通过包管理系统从系统中卸载已经存在的 x264:
    # apt-get remove x264
    

    compile your new x264 from source
  • 不要卸载 x264 包,而是 compile your new x264然后 compile your ffmpeg ,告诉它使用新编译的x264库,通过指定你编译的x264库所在的目录,使用提到的LD_LIBRARY_PATH环境变量:
    LD_LIBRARY_PATH=/path/to/my/compiled/x264/library ./configure --enable-libx264 ...
    

  • 可以在这些链接上找到更多信息:
  • problem with --enable-libx264 option in ffmpeg
  • Compiling FFmpeg
  • 关于ffmpeg - 未定义对 `x264_encoder_open_125' 的引用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11838456/

    相关文章:

    ffmpeg - 如何将音频添加到特定时间 [ffmpeg]

    node.js - 在将它们与 FFmpeg 连接之前如何检查文件是否损坏?

    ubuntu - 更改主机名后,gedit(和其他 X 客户端)无法打开

    bind - fusionrmount 调用类似于本地目录的 mount --bind ?

    apache2 - 'sites-enabled' 和 'sites-available' 目录有什么区别?

    android - x264 构建错误 - Android

    FFmpeg amix + 音量过滤器创建饱和输出?

    ruby-on-rails - Ubuntu 12 - 如何正确安装 Ruby 和 Rails

    python - 提高 NeedDownloadError ('Need ffmpeg exe. ' NeedDownloadError : Need ffmpeg exe)

    ubuntu - 标准 nginx.conf 文件给出错误。在哪里包含服务器{}定义?