星期四, 10月 20, 2016

For FFMPEG it will be 3.1.1 & NDK it will be r12b.(How to Build FFmpeg for Android)

ref:
http://stackoverflow.com/questions/36277628/android-how-to-configure-ffmpeg-latest-version-in-android-studio



For FFMPEG it will be 3.1.1 & NDK it will be r12b.

Building FFMPEG with NDK r12b:

Download Android NDK : The latest version of Android NDK can be downloaded at Android NDK website. At the time of writing this answer, the newest version is NDK r12. simply decompress the archive
Download ffmpeg source code : FFMPEG source code can be downloaded from the ffmpeg website. The latest stable release is 3.1.1 (at the time of writing). Download the source code and decompress it to $NDK/sources folder.
Update configure file : Open ffmpeg-3.1.1/configure file with a text editor, and locate the following lines.

SLIBNAME_WITH_MAJOR='$(SLIBNAME).$(LIBMAJOR)'
LIB_INSTALL_EXTRA_CMD='$$(RANLIB) "$(LIBDIR)/$(LIBNAME)"'
SLIB_INSTALL_NAME='$(SLIBNAME_WITH_VERSION)'
SLIB_INSTALL_LINKS='$(SLIBNAME_WITH_MAJOR) $(SLIBNAME)'
This cause ffmpeg shared libraries to be compiled to libavcodec.so. (e.g. libavcodec.so.55), which is not compatible with Android build system. Therefore we’ll need to replace the above lines with the following lines.
SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME)-$(LIBMAJOR)$(SLIBSUF)'
LIB_INSTALL_EXTRA_CMD='$$(RANLIB) "$(LIBDIR)/$(LIBNAME)"'
SLIB_INSTALL_NAME='$(SLIBNAME_WITH_MAJOR)'
SLIB_INSTALL_LINKS='$(SLIBNAME)
Build ffmpeg : Copy the following text to a text editor and save it as build_android.sh in ffmpeg_3.1.1 folder.

#!/bin/bash
NDK=$HOME/Desktop/adt/android-ndk-r9
SYSROOT=$NDK/platforms/android-9/arch-arm/
TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64
function build_one
{
./configure
--prefix=$PREFIX
--enable-shared
--disable-static
--disable-doc
--disable-ffmpeg
--disable-ffplay
--disable-ffprobe
--disable-ffserver
--disable-avdevice
--disable-doc
--disable-symver
--cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi-
--target-os=linux
--arch=arm
--enable-cross-compile
--sysroot=$SYSROOT
--extra-cflags="-Os -fpic $ADDI_CFLAGS"
--extra-ldflags="$ADDI_LDFLAGS"
$ADDITIONAL_CONFIGURE_FLAG
make clean
make
make install
}
CPU=arm
PREFIX=$(pwd)/android/$CPU
ADDI_CFLAGS="-marm"
build_one
Once the file is saved, go to the directory where this file lies & execute the command below,

sudo chmod +x build_android.sh
Then execute the script by the command,
./build_android.sh
Build Output : The build can take a while to finish depending on your computer speed. Once it’s done, you should be able to find a folder $NDK/sources/ffmpeg-3.1.1/android, which contains arm/lib and arm/include folders.
Make ffmpeg Libraries available for Your Projects
Steps above are fully tested and i performed them on my machine and the build was successful. For writing this answer i have took the reference from this article How to Build ffmpeg with NDK r9 but as it was for older version i have made some corrections on my own.
Open for asking any doubts.

星期四, 10月 06, 2016



https://en.wikipedia.org/wiki/Image_segmentation#cite_note-computervision-1

http://esp8266.github.io/Arduino/versions/2.0.0/doc/ota_updates/ota_updates.html

http://bbs.ngacn.cc/read.php?tid=7407463

月球的位置 - 臺北市立天文科學教育館

月球位置計算

如何對正赤道儀的極軸望遠鏡?

天文計算實驗室

✿零失敗甜點✿杏仁瓦片

星期三, 10月 05, 2016

MB


Shell Helix Ultra Profession AF-L 5W30 NTD240

Shell Helix Ultra Professional AF-L 5W-30:

Is designed to meet the demanding requirements of particular high-performance engines, including Ford, Jaguar and Mazda, and those requiring ACEA C1
Shell and Ford have local relationships in many countries, and Shell is a major supplier to Ford in India and the USA
Passes an extensive range of performance tests to meet engine oil specification WSSM2C934-B
Specifications: Ford WSS-M2C934-B; ACEA C1. Meets the requirements of Jaguar Land Rover STJLR.03.5005.



http://bevo.mercedes-benz.com/bevolisten/229.52_en.html

MB229.52

Fuchs TITAN GT1 PRO B-TEC SAE 5W-30 x Fuchs Petrolub AG, Mannheim/Deutschland
Fuchs TITAN GT1 PRO FLEX SAE 5W-30 x Fuchs Petrolub AG, Mannheim/Deutschland
Fuchs TITAN Supersyn 229.52 SAE 5W-30

Total Quartz INEO MC3 5W-30 x Total Lubrifiants, PARIS la Defense Cedex/FRANCE
Total Quartz INEO MDC 5W-30 x Total Lubrifiants, PARIS la Defense Cedex/FRANCE

Shell Helix Ultra ECT C2 C3 x Shell International Petroleum Company, LONDON/UNITED KINGDOM
Shell Helix Ultra Professional AB-L x Shell International Petroleum Company, LONDON/UNITED KINGDOM

Mobil 1 ESP 0W-30 x Exxon Mobil Corporation, FAIRFAX, Virginia/USA
Mobil 1 ESP Formula B 0W-30 x Exxon Mobil Corporation, FAIRFAX, Virginia/USA
Mobil 1 ESP X1 0W-30 x Exxon Mobil Corporation, FAIRFAX, Virginia/USA

星期一, 9月 26, 2016

鐵氟龍(TEFLON)、P.T.F.E

http://www.baking104.com.tw/V2/articles/1174574459.php

5
毛毛蟲手指餅乾,三種材料真簡單!小烤箱和電鍋都能完成哦!

http://www.chimei.com.tw/Upload/ArticleModule/Attachments/2016-01/201601051059347500001.pdf

星期二, 8月 09, 2016

星期三, 8月 03, 2016

與海拔高度

CJMCU-10DOF MPU9250 + BMP280 加速度 陀螺仪 9轴姿态传感器模块 https://world.taobao.com/item/523261623694.htm?fromSite=main&spm=a312a.7700824.w4002-2963708284.31.vPPGem 37RMB CJMCU-3080 ADNS-3080 光流傳感器 APM2.52 APM2.6 檢測水平移動 https://world.taobao.com/item/37911482900.htm?fromSite=main&spm=a312a.7700824.w4002-2963708284.47.LsG489 85RMB 如何使用 Borch BMP180 數位氣壓感測器模組計算溫度、大氣壓力與海拔高度 ? http://ruten-proteus.blogspot.tw/2014/06/how-to-use-borch-bmp180-to-caculate-TPA.html ㄆㄜ ㄊㄧㄡ ㄙˋ http://ruten-proteus.blogspot.tw/ 2493689302 圓通 Handler mHandler = new Handler() { @Override public void handleMessage(Message msg) { if(msg.what == 1) { tv.setText("update UI is success!"); btn.setText("update UI is success!"); } super.handleMessage(msg); } }; 分三段, 每一個分五六個步驟 1. ISDM 2. flashlight 3. 整合

星期一, 5月 09, 2016

ffmpeg Android source souce w/ studio

先看這個
http://appfiiser.gounboxing.com/posts/information/FFmpeg%204%20Android/27070

他的 open source code 含 android import 流程
http://androidwarzone.blogspot.tw/2011/12/ffmpeg4android.html