Build libxcoder
libxcoder is required for NETINT’s decoders/encoders and filters in FFmpeg. It must be build based on AOSP.
For when Quadra and Logan co-existence is required libxcoder and libxcoder_logan should be built separately.
- Change directory to the AOSP folder and copy the libxcoder folder to the external folder under the AOSP folder.
cd ~/android_work
cp ~/FFmpegXcoder/libxcoder external/ -r
For Logan copy libxcoder_logan:
cp ~/FFmpegXcoder/libxcoder_logan external/ -r
- Build the libxcoder
source build/envsetup.sh
lunch aosp_x86_64-eng
mmm ./external/libxcoder/source/
For Logan we should build libxcoder_logan:
mmm ./external/libxcoder_logan/source/
If the build is successful there will be the following generated files in the AOSP out directory
out/target/product/generic_x86_64/system/lib64/libxcoder.so
out/target/product/generic_x86_64/vendor/bin/ni_rsrc_mon
For Logan there are following generated files under AOSP out directory:
out/target/product/generic_x86_64/system/lib64/libxcoder_logan.so
out/target/product/generic_x86_64/vendor/bin/ni_rsrc_mon_logan
We need to push the generated files to the Android run environment. Refer to chapter 11.7 for details.