Encoder/Decoder PCM to AMR Android

半世苍凉 提交于 2019-12-13 01:24:15

问题


I've been looking for a while now for any java library that allows me to encode and decode a PCM-AMR audio stream that is sent through a TCP socket connection. Without having to use Android's JNI.

Is there anything that can help me?

In the worst case scenario. How can I do it using any C++ library with JNI? (any reference of how to use ffmpeg with JNI will be appreciated)

Hope you can help me.


回答1:


Note that pcm usually means RAW and note encoded downstream of the microphone (hardware ) that generated the signal. amr-nb, amr-wb are encoded. So, i suggest that you resolve exactly what type of bytestream that you have on the socket..

Then, IMO , on android, ffmpeg libs provide robust , wide choice of TO/FROM Codecs and the way to convert.

See any of the main github [android-ffmpeg] projects, acouple of which are below:

guardian

halfninja

Its a bit of learn curve to sort thru all the JNI/Android stuff. IMO if you are doing low-level media stuff like this , you have little alternate to mastering JNI.



来源:https://stackoverflow.com/questions/15167663/encoder-decoder-pcm-to-amr-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!