MP3 encoder가 필요해서 작업중이엇는데 누가 아주 잘 설명을 해두었네요.
필요하신 분들을 step by step으로 따라하심 됩니다.
http://blog.libertadtech.com/2011/02/porting-lame-encoder-to-android-arm.html
porting compiling lame encoder to Android ARM arch using Android NDK
I was looking for a mp3 encoding application in Android Market, and found very few, the reason I think Android doesn't support mp3 encoding is because mp3 is patented technology. Another reason is I guess people prefer Java programming and Android SDK rather than Android native development kit.
Nevertheless compiling libmp3lame library for Android using Android NDK is very easy actually.
1. download Android NDK(also you need Android SDK and Eclipse with ADT plugin) and create simple project.
2. create directory called "jni" in your project's directory.
3. download lame sources, extract, copy all sources from directory libmp3lame to jni directory. Also copy lame.h which is located in include directory of lame sources.
4. create jni/Android.mk file. it should look like this:
6. edit file jni/utils.h, and replace definition extern ieee754_float32_t fast_log2(ieee754_float32_t x);
with this extern float fast_log2(float x);
Nevertheless compiling libmp3lame library for Android using Android NDK is very easy actually.
1. download Android NDK(also you need Android SDK and Eclipse with ADT plugin) and create simple project.
2. create directory called "jni" in your project's directory.
3. download lame sources, extract, copy all sources from directory libmp3lame to jni directory. Also copy lame.h which is located in include directory of lame sources.
4. create jni/Android.mk file. it should look like this:
5. clean lame sources, remove what's left from GNU autotools, Makefile.am Makefile.in libmp3lame_vc8.vcproj logoe.ico depcomp, folders i386 vector.LOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)LOCAL_MODULE := mp3lameLOCAL_SRC_FILES := bitstream.c fft.c id3tag.c mpglib_interface.c presets.c quantize.c reservoir.c tables.c util.c VbrTag.c encoder.c gain_analysis.c lame.c newmdct.c psymodel.c quantize_pvt.c set_get.c takehiro.c vbrquantize.c version.cinclude $(BUILD_SHARED_LIBRARY)
6. edit file jni/utils.h, and replace definition extern ieee754_float32_t fast_log2(ieee754_float32_t x);
with this extern float fast_log2(float x);
댓글을 달아 주세요
안녕하세요. encode , decode 자료를 찾다가 님이 걸어두신 링크가 사라져서 그런데요.
2011.11.29 12:20 [ ADDR : EDIT/ DEL : REPLY ]libmp3lame 파일을 공유 받을수 있을까요 ? ^^;; 혹시 가지고 계시거나
어디서 받아야 하는지 알려주시면 감사하겠습니다.
귀를 기울여봐 가슴이 뛰는 소리가 들리면 네가 사랑하는 그 사람 널 사랑하고 있는거야.
2013.07.11 19:24 [ ADDR : EDIT/ DEL : REPLY ]귀를 기울여봐 가슴이 뛰는 소리가 들리면 네가 사랑하는 그 사람 널 사랑하고 있는거야.
2013.07.12 10:32 [ ADDR : EDIT/ DEL : REPLY ]다른 남자 부르면서 울거면 나한테 이쁘지나 말던지
2013.07.12 10:33 [ ADDR : EDIT/ DEL : REPLY ]창밖을 봐 바람에 나뭇가지가 살며시 흔들리면 네가 사랑하는 사람이 널 사랑하고 있는거야.
2013.07.12 16:52 [ ADDR : EDIT/ DEL : REPLY ]슬퍼서 우는거 아니야..바람이 불어서 그래..눈이 셔서..
2013.07.14 06:39 [ ADDR : EDIT/ DEL : REPLY ]슬퍼서 우는거 아니야..바람이 불어서 그래..눈이 셔서..
2013.07.17 05:25 [ ADDR : EDIT/ DEL : REPLY ]사람들은 죽을걸 알면서도 살잖아 .사랑은 원래 유치한거에요
2013.07.17 06:54 [ ADDR : EDIT/ DEL : REPLY ]눈을 감아봐 입가에 미소가 떠오르면 네가 사랑하는 그 사람이 널 사랑하고 있는거야.
2013.07.18 13:59 [ ADDR : EDIT/ DEL : REPLY ]e
2020.06.17 18:46 [ ADDR : EDIT/ DEL : REPLY ]