Vitamio libffmpeg.so

戏子无情 提交于 2019-12-06 09:55:30

问题


I am playing around with the Vitamio demo, and like what I see. However, I need to slightly customise the ffmpeg source code (modifying http.c so the default is set for http streams to be non-seekable). I have followed the steps HERE in order to rebuild libffmpeg.so. All compiled fine, so far, so good...

However, I don't see where libffmpeg.so resides in the Vitamio bundle. I see a library called libarm.so. Does it live inside here? If so, how does one go about repacking it with the modified libffmpeg.so included?

Thanks

Dan


回答1:


libarm.so you see in a raw folder is actually a 7z with folders in it. Folders correspond to:

  • 60 - armv6
  • 61 - armv6 with vfp support
  • 70 - arm v7 with vfpv3-D16
  • 71 - arm v7 with neon optimizations

Vitamio will unpack the one that matches your system at runtime and will use it.

You have to change libffmpeg.so in each of these folders and compress it again.




回答2:


Author of Vitamio updated FFMpeg-Android project and write "How to" article http://www.vitamio.org/en/2013/Tutorial_0509/13.html

Since this update, all works fine.




回答3:


Maybe I should check that I'm doing that right. Firstly I download ffmpeg source like so:

git clone git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg

I then:

cd ffmpeg

...and lastly:

git checkout 5e99df019a850e9ffa96d73e72b8a47a93a61de8 

The 'version' file in the ffmpeg folder now reads as '0.11.1', which I assume is right?

The individual libffmpeg.so files all build without an issue. I then copy these into the folders you described and repack them as libarm.so using 7z command line. I am using NDK r8c for the builds. No matter what I do, I keep getting this irritating crash on both my device and the emulator. On occasion it works, but very rarely. I have tried hundreds of different things now, and it's driving me absolutely mad :)



来源:https://stackoverflow.com/questions/14687059/vitamio-libffmpeg-so

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!