Changes between Version 42 and Version 43 of Getting-Started/Android


Ignore:
Timestamp:
Mar 21, 2015 2:12:41 AM (9 years ago)
Author:
nanang
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Getting-Started/Android

    v42 v43  
    5353=== Features === 
    5454Video on Android will be supported since PJSIP version 2.4. It has the following features: 
    55  - native capture (under development) 
     55 - native capture 
    5656 - 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) 
    5958 
    6059=== Requirements === 
    6160 
    62 ==== ffmpeg (required) ==== 
    63  
     61==== OpenH264 (recommended) ==== 
     62Provides 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{{{ 
     66cp /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) ==== 
     70Provides 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{{{ 
     74cp /Users/me/libyuv-android/*.so /Users/me/pjproject-2.0/pjsip-apps/src/swig/java/android/libs/armeabi 
     75}}} 
     76 
     77==== ffmpeg (optional) ==== 
     78Provides format conversion and video manipulation as well as video codecs: H.264 (together with libx264) and H263P/H263-1998. 
    6479       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. 
    6580       1. Copy all library .so files into your Android application project directory, for example: 
     
    6883}}} 
    6984 
    70 ==== OpenH264 (optional) ==== 
    71  
    72        1. Follow the instructions in ticket #1758 
    73        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/armeabi 
    76 }}} 
    77  
    7885=== Configuring === 
    7986 
    8087Sample invocation of ./configure-android: 
    8188{{{ 
    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 
     92Make sure openh264 and libyuv are detected by {{{./configure-android}}}: 
     93{{{ 
    9194... 
    9295Using OpenH264 prefix... /Users/me/openh264-1.0.0/android 
    9396checking OpenH264 availability... ok 
     97Using libyuv prefix... /Users/me/libyuv-android 
     98checking for I420Scale in -lyuv... yes 
    9499... 
    95100}}}