

extra-cflags="-Os -fpic $ADDI_CFLAGS" \Īfter compiling $NDK_DIR/sources/ ffmpeg-2.5.3, there will be one more android directory, which is the compiled library we ls -R android/ cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \ TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64 SYSROOT=$NDK/platforms/android-15/arch-arm/ Note that the first three lines should be configured correctly on their own path. SLIB_INSTALL_NAME='$(SLIBNAME_WITH_MAJOR)'Ĭreate the file build_android.sh in the ffmpeg-2.5.3 directory. SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME)-$(LIBMAJOR)$(SLIBSUF)' SLIB_INSTALL_LINKS='$(SLIBNAME_WITH_MAJOR) $(SLIBNAME)' SLIBNAME_WITH_MAJOR='$(SLIBNAME).$(LIBMAJOR)' Modify Ffmpeg compilation configurationĭrop these lines from the configure file in the ES36en-2.5.3 directory to remove the version number of the last "55" of the default-generated library name libavcodec.so.55. Unzip Ffmpeg to $NDK_DIR/sources/ffmpeg-2.5.3.ĥ. I in the "/ usr/local/bin/android - ndk - r10d" (use $NDK_DIR refer to after this directory). When executed, mv is automatically unzipped and placed where you want it. If my video player is just loading the shared library at runtime can it be treated as its own license, can I can have my video player closed source and have different license? Supposedly anyone can take the library and compile their own shared library and load it into the app.Do not unzip, file permissions will error. I plan to have it as a submodule to my video player project.įor my video player library, I do not planning on open sourcing (for reasons out of my control). I have FFMPEG code released the way I compiled it with the libraries on an open source platform (like Github) which I assume abides to the license.įFMPEG is compiled without the "non-free" and "gpl" flags so everything together (including the other 3rd party libraries compiled with it) should be LGPL 2.1 (not GP元). so file (Android) and then my actual code just imports/dynamic links the library and use its functions. I have a script that compiles FFMPEG and the other libraries as a single. I am currently writing a video project using FFMPEG shared library with other license abiding projects (like libass and freetype2).
