OpenH264
OpenH264 is a codec library which supports H.264 encoding and decoding.
The source code repository is hosted on github at https://github.com/cisco/openh264.
See http://www.openh264.org/ for more details.
Compile OpenH264 for Android (using Windows)
OpenH264 is a codec library which supports H.264 encoding and decoding.
The source code repository is hosted on github at https://github.com/cisco/openh264.
See http://www.openh264.org/ for more details.
Compile OpenH264 for Android (using Windows)
- In order to compile the openh264 the GNU Make (http://www.gnu.org/software/make/)utilityis required. Hence to provide make tool available on Windows, MSYS needs to be installed.
- To compile openh264 for Android (using Windows) the following are required –
- MSYS (http://www.mingw.org/wiki/MSYS)
- Android NDK (https://developer.android.com/tools/sdk/ndk/index.html)
- The openh264 source from github (https://github.com/cisco/openh264)
- Post installations, ensure that everything is installed correctly, try building sample projects available with Android NDK.
- Once everything successfully installed, go to the project directory and locate README.md file (https://github.com/cisco/openh264/blob/master/README.md) which explains parameters to compile openh264.
- The makefile (https://github.com/cisco/openh264/blob/master/Makefile) that is used to compile, is available in the project directory.
- After installing MSYS you should have a cyan "M" link on the Desktop. When you double-click on it, a terminal should be launched.
- Navigate to project directory (using UNIX style commands)
- Finally to compile use the following command make OS=android NDKROOT=/unix/path/to/ndk TARGET=9 libopenh264.so
- NDKROOT=/d/Softwares/android-ndk-r10 (in my case)
- All the libraries should be compiled post this command.
- Once all the libs are compiled, then these can be used to run the sample apps for encoding and decoding.
- The sample apps are available in codec/build/android folder (https://github.com/cisco/openh264/tree/master/codec/build/android)
hi
ReplyDeleteI'm finding solution for view h264 video on android.
On desktop, I can view h264 video from WebRTC server on lasted Chrome (version 53). Because Chrome enabled enable-webrtc-h264-with-openh264-ffmpeg for dec/enc h264.
Now I want to use webview to browse to WebRTC server for view h264 video. Webview is based on Chromium which only support hardware for dec/enc. If I compile OpenH264 for Android, Can I view h264 video via webview?
Thanks,
ThaiSon
Hi, please contact me ngoctruongtan@gmail.com
ReplyDeletehi i am getting error
ReplyDeleteopenh264 build-local.mk no such file or directory