Changes between Version 42 and Version 43 of Getting-Started/Android
- Timestamp:
- Mar 21, 2015 2:12:41 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Getting-Started/Android
v42 v43 53 53 === Features === 54 54 Video on Android will be supported since PJSIP version 2.4. It has the following features: 55 - native capture (under development)55 - native capture 56 56 - native OpenGL ES 2.0 renderer (requires Android 2.2 (API level 8) or higher). 57 - H.263 codec (via ffmpeg library, see below) 58 - H.264 codec (optional, via OpenH264 library, see below) 57 - H.264 codec (via OpenH264 library, see below) 59 58 60 59 === Requirements === 61 60 62 ==== ffmpeg (required) ==== 63 61 ==== OpenH264 (recommended) ==== 62 Provides video codec H.264, alternatively you can use ffmpeg (together with libx264). 63 1. Follow the instructions in ticket #1758 64 1. Copy all library .so files into your Android application project directory, for example: 65 {{{ 66 cp /Users/me/openh264-1.0.0/android/*.so /Users/me/pjproject-2.0/pjsip-apps/src/swig/java/android/libs/armeabi 67 }}} 68 69 ==== libyuv (recommended) ==== 70 Provides for format conversion and video manipulation, alternatively you can use ffmpeg. 71 1. Follow the instructions in ticket #1776 72 1. Copy all library .so files into your Android application project directory, for example: 73 {{{ 74 cp /Users/me/libyuv-android/*.so /Users/me/pjproject-2.0/pjsip-apps/src/swig/java/android/libs/armeabi 75 }}} 76 77 ==== ffmpeg (optional) ==== 78 Provides format conversion and video manipulation as well as video codecs: H.264 (together with libx264) and H263P/H263-1998. 64 79 1. Follow the instructions from the web on how to build ffmpeg for android. We followed the instructions provided [http://www.roman10.net/how-to-build-ffmpeg-with-ndk-r9/ here] and successfully built with Android NDK !r10. 65 80 1. Copy all library .so files into your Android application project directory, for example: … … 68 83 }}} 69 84 70 ==== OpenH264 (optional) ====71 72 1. Follow the instructions in ticket #175873 1. Copy all library .so files into your Android application project directory, for example:74 {{{75 cp /Users/me/openh264-1.0.0/android/*.so /Users/me/pjproject-2.0/pjsip-apps/src/swig/java/android/libs/armeabi76 }}}77 78 85 === Configuring === 79 86 80 87 Sample invocation of ./configure-android: 81 88 {{{ 82 $ ./configure-android --with-ffmpeg=/Users/me/src/ffmpeg-2.5/android/arm --with-openh264=/Users/me/openh264-1.0.0/android 83 }}} 84 85 Make sure ffmpeg and openh264 are detected by {{{./configure-android}}}: 86 {{{ 87 ... 88 Using ffmpeg prefix... /Users/me/src/ffmpeg-2.5/android/arm 89 checking for pkg-config... pkg-config 90 checking ffmpeg packages... libavformat libavcodec libswscale libavutil 89 $ ./configure-android --with-openh264=/Users/me/openh264-1.0.0/android --with-libyuv=/Users/me/libyuv-android 90 }}} 91 92 Make sure openh264 and libyuv are detected by {{{./configure-android}}}: 93 {{{ 91 94 ... 92 95 Using OpenH264 prefix... /Users/me/openh264-1.0.0/android 93 96 checking OpenH264 availability... ok 97 Using libyuv prefix... /Users/me/libyuv-android 98 checking for I420Scale in -lyuv... yes 94 99 ... 95 100 }}}