Reputation: 171
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
Upvotes: 2
Views: 4736
Reputation: 96
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.
Upvotes: 2
Reputation: 171
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 :)
Upvotes: 0
Reputation: 4436
libarm.so you see in a raw folder is actually a 7z with folders in it. Folders correspond to:
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.
Upvotes: 3