简体   繁体   English

android的预建ffmpeg库

[英]prebuilt ffmpeg library for android

Nice being here. 很高兴在这里。 I researched a lot on the topic but now i am stuck. 我对该主题进行了大量研究,但现在我陷入了困境。

Currently i try to receive a udp stream within android, i am using the libraries from http://code.google.com/p/javacv/downloads/list , most of the things work fine. 目前,我正在尝试在android中接收udp流,我正在使用http://code.google.com/p/javacv/downloads/list中的库,大多数情况下工作正常。 However if i try to use "avformat_network_init();" 但是,如果我尝试使用“ avformat_network_init();” (thanks to this Receiving RTSP stream using FFMPEG library ) i get the following error: (由于使用FFMPEG库的接收RTSP流 ),出现以下错误:

undefined reference to `avformat_network_init' 未定义对“ avformat_network_init”的引用

my guess is that the prebuilt library called "libavformat.so" does not contain the specific function, am i right? 我的猜测是,名为“ libavformat.so”的预构建库不包含特定功能,对吗? if so, does anyone know where i can find the appropriate library? 如果是这样,有人知道我在哪里可以找到合适的图书馆吗? I am developing on windows and failed already building it myself with cygwin and currently have not the option to install ubuntu or such. 我正在Windows上进行开发,但自己已经无法使用cygwin进行构建,并且目前无法选择安装ubuntu或此类软件。

thanks in advance. 提前致谢。

After a wide search through the internet, i gave up on finding a prebuilt library and did it myself (with all the options i need). 在互联网上进行了广泛搜索之后,我放弃了寻找预建图书馆的工作,而自己做了(有我需要的所有选择)。 Self made solutions are often the best choice also if at first thought it doesn't seem to be the better choice, I experienced again, that it is the better one. 如果我一开始认为这似乎不是更好的选择,那么自制解决方案通常也是最佳选择,我再次体验到这是更好的选择。

What I did was to use the virtual machine (ubuntu) from: http://code.google.com/p/csipsimple/wiki/HowToBuild There you have ffmpeg already downloaded including libx264. 我所做的是从以下网站使用虚拟机(ubuntu): http : //code.google.com/p/csipsimple/wiki/HowToBuild那里已经下载了ffmpeg,包括libx264。 Also an instruction is included how to build the whole thing. 此外,还包括如何构建整体的说明。 You can edit the build_ffmpeg.sh and change "features" you want to enable or disable. 您可以编辑build_ffmpeg.sh并更改要启用或禁用的“功能”。 In the end it was the cleaner, better and faster solution than to search for one. 最后,它是比搜索解决方案更干净,更好,更快的解决方案。 ;) ;)

good luck anyways! 反正祝你好运!

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

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