Ffplay2 Android version officially released

Source: Internet
Author: User

Project Address: https://github.com/DeYangLiu/AndroidPlayer/

Highlights :

A simple file browser implemented with the ListView.

Start another activity with intent.

NDK Debugging.

Transplant FFmpeg 2.5 and sdl2 into various pits of Android.


compile multiple libraries at the same time
====
Ln-s/mnt/opensource/sdl_image jni/
Ln-s/mnt/opensource/sdl_image/showimage.c jni/src/
Gvim jni/src/android.mk
Local_src_files = ... showimage.c
Local_shared_libraries + = Sdl2_image

Test cannot locate symbol Atof
Forget the Sdlactivity.java inside and add Sdl2_image.
Then comes the cannot locate symbol "signal"

Q. How to judge Android phone 64bit or?
A:ADB PULL/SYSTEM/BIN/DALVIKVM && File DALVIKVM
Of course, my cell phone is 32bit, online someone needs to use the 32bit ndk, I tried also useless.
Confused, in the afternoon again search, encountered [1] After, things appear a turnaround.

ffmpeg4android
====
[1] Download down don't know where to start,
Carefully read the inside of the shell script, understand to download FFmpeg source code,
Then buildtest.sh. [1] The original plan was and Android source
The tree is compiled below, but it can't be downloaded in the mainland, and U Pelya can be compiled separately.
I failed when I first tried the newest ffmpeg2.5. [2] When I saw that the script was only supported to 1.1, I downloaded it.
Makefiles the following three files:
ANDROID_CONFIGURE.MK--Setting the configuration parameter string
ANDROID_.MK--The compilation parameters that are used by subdirectories such as Libavutils Libavcodec.
ANDROID.MK--Contains the above two documents; Set App_modules compilation parameters according to Config.mak.
Then extract the FFmpeg source code to $ffmpegdir, makefiles the following files to copy the past.
Generate two files:
Jni/android.mk
Jni/application.mk
Ln-s $ffmpegdir Jni/ffmpeg
Then you can make it up:
Ndk-build-j8 2>&1 | Tee Build.log

Because the SDL2 itself comes with a MK, directly
Ln-s $sdldir jni/sdl
In Jni/application.mk plus SDL2.

There is also a JNI test entry to be left:
CP-RF android-ndk-r10d/samples/hello-jni/jni/src Jni/adapter
UI entry:
CP-RF android-ndk-r10d/samples/two-libs/src src
Project file:
Cp-rf android-ndk-r10d/samples/two-libs/{res, Androidmanifest.xml default.properties}


Git code already uses static links. Thanks [1] for the guidelines.

Ref

====
[1] Git://git.code.sf.net/u/pelya/ffmpeg4android
[2] http://ffmpeg.org/releases/ffmpeg-1.1.tar.bz2

Ffplay2 Android version officially released

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.