简体   繁体   English

在 Minibian 上使用 x265 和 fdk-aac 编译 ffmpeg - 未找到依赖项

[英]Compile ffmpeg with x265 and fdk-aac on Minibian - dependencies not found

I am trying to get a live streaming device to work on a raspberry pi.我正在尝试让直播设备在树莓派上工作。 I am running minibian .我正在运行minibian I roughly follow this guide without the cross compiling.我粗略地遵循这个指南,没有交叉编译。

My problem is probably with the compilation of ffmpeg.我的问题可能与 ffmpeg 的编译有关。 I downloaded and compiled both x265 and fdk-aac and compiled them.我下载并编译了 x265 和 fdk-aac 并编译了它们。 Next I have to compile ffmpeg, which is in the same folder as the other ones, but the compiler can't find any of the dependencies.接下来我必须编译 ffmpeg,它与其他文件在同一文件夹中,但编译器找不到任何依赖项。 x265 also cannot be found using pkg-config, which is the error it produces when I try to run ./configure.使用 pkg-config 也无法找到 x265,这是我尝试运行./configure.时产生的错误./configure.

I directly cloned everything into one folder, so that in a folder called ffmpeg_files there are three other folders: ffmpeg , fdk-aac and x265 .我直接将所有内容克隆到一个文件夹中,因此在名为ffmpeg_files的文件夹中还有其他三个文件夹: ffmpegfdk-aacx265 How do I properly include these dependencies so I can enable them when I compile ffmpeg?如何正确包含这些依赖项,以便在编译 ffmpeg 时启用它们?

Thank you!谢谢!


Okay, so this is not really an answer to this question.好的,所以这不是这个问题的真正答案。

After a long time of trial and error and a lot of help by the great user Mulvya I decided not to use Minibian, but Raspbian Stretch Lite.经过长时间的反复试验和伟大用户Mulvya的大量帮助,我决定不使用 Minibian,而是使用 Raspbian Stretch Lite。 There, everything worked very smoothly.在那里,一切都非常顺利。 Just remember to run sudo ldconfig after installing the codec libraries like x264/x265 or fdk-aac.请记住在安装 x264/x265 或 fdk-aac 等编解码器库后运行sudo ldconfig

Thanks everybody for your help!感谢大家的帮助!

I was stuck getting the same error, and this solution worked for me:我遇到了同样的错误,这个解决方案对我有用:

First check if pkg-config can find x265:首先检查 pkg-config 是否可以找到 x265:

$ pkg-config --modversion x265

Package x265 was not found in the pkg-config search path.在 pkg-config 搜索路径中找不到包 x265。

Perhaps you should add the directory containing x265.pc to the PKG_CONFIG_PATH environment variable:也许您应该将包含x265.pc的目录添加到PKG_CONFIG_PATH环境变量中:

No package 'x265' found.未找到包“x265”。

$ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

$ pkg-config --modversion x265

0.0

Very much an amateur here, with perhaps even less grasp on the workings of stackoverflow than software compilation, but I hope some positive feedback might help someone else, just as Mulyva has helped me.这里非常业余,对 stackoverflow 的工作原理的掌握可能比软件编译还要少,但我希望一些积极的反馈可以帮助其他人,就像 Mulyva 帮助我一样。

After trying and failing to compile ffmpeg on Ubuntu 17.10 (and 16.04 within a virtual machine) with the same error message as the OP and countless others.在尝试在 Ubuntu 17.10(和虚拟机中的 16.04)上编译 ffmpeg 并失败后,错误消息与 OP 和无数其他错误消息相同。 Compiling x265 rather than using the version in the Ubuntu repos, and using Mulyva's advice in the later chat - "Try with ./configure --enable-static --enable-nonfree --enable-gpl --enable-libx265 --extra-libs=-lm --extra-libs=-lstdc++ --enable-libfdk_aac --extra-libs=-lm --extra-libs=-lstdc++ " - has it working for me.编译 x265 而不是使用 Ubuntu 存储库中的版本,并在后面的聊天中使用 Mulyva 的建议 - “尝试使用./configure --enable-static --enable-nonfree --enable-gpl --enable-libx265 --extra-libs=-lm --extra-libs=-lstdc++ --enable-libfdk_aac --extra-libs=-lm --extra-libs=-lstdc++ " - 它对我./configure --enable-static --enable-nonfree --enable-gpl --enable-libx265 --extra-libs=-lm --extra-libs=-lstdc++ --enable-libfdk_aac --extra-libs=-lm --extra-libs=-lstdc++ Thank you!谢谢!

Apologies if posting here is embarrasingly out of place...如果在这里发帖令人尴尬,请道歉......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM