amr

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

FFMPEG amr to mp3 conversion problem

混江龙づ霸主 提交于 2019-12-11 20:34:56
问题 Hey all, I'm having the following issue converting amr files to mp3 files. When I try to do the converstion I get the following: FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers built on Jan 24 2011 12:00:26 with gcc 4.4.5 configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 -

AMR Raw Output from Wireshark not playing in players

无人久伴 提交于 2019-12-11 07:52:34
问题 I have an issue related to the AMR codec in RTP. I have RTP capture in pcap form having the AMR-NB and AMR-WB codecs. Now, using the RTP stream analysis, i have extracted the raw output but I am not able to play that extracted raw output in any of the player. Is there any way i can play that raw output or decode it and it save it raw format or re-encode it to some other format? Regards Nitin 回答1: Wireshark does not do the conversion necessary to convert the RTP AMR payloads into the storage

Can't play .amr file in wp8

邮差的信 提交于 2019-12-11 05:36:19
问题 I use AudioVideoCaptureDevice to record the voice and save it to isolated storage with amr format dev = await AudioVideoCaptureDevice.OpenForAudioOnlyAsync(); dev.AudioEncodingFormat = CameraCaptureAudioFormat.Amr; I can play it by windows media player. But I can't play it with SoundEffect in WP8. using (IsolatedStorageFileStream sourceFile = ISF.OpenFile("\\data\\test.amr", FileMode.Open, FileAccess.Read)) { byte[] b = new byte[sourceFile.Length]; sourceFile.Read(b, 0, b.Length); SoundEffect

How to convert amr files to mp3 using C#

杀马特。学长 韩版系。学妹 提交于 2019-12-11 02:55:18
问题 I am using NAudio MFT to convert different audio formats to MP3. Now i want to convert amr file to MP3 using Naudio MFT. But, when i given amr file as input to MFT, it has thrown following exception "Exception from HRESULT: 0xC00D36C4". Is there any way to achieve this? My C# code: public byte[] ConvertAMRToMP3( ) { var data = new MediaFoundationReader("..\\amr\\test.amr"); MediaFoundationEncoder.EncodeToMP3(data, "..\\test.mp3", 128000); ...... } I am working on windows server 2012 64-bit

Encode/decode AMR

我怕爱的太早我们不能终老 提交于 2019-12-11 02:17:27
问题 I need to create custom classes for PCMtoAMR and AMRtoPCM conversion.(I don't have any framework which I can use for this conversion) Does anyone know of anything already done and available as open source. The language should preferably be java but it is no problem to port something from other language. Or if you don't know please give me guidance what to read in order to implement it myself. Thanks 回答1: This seems to be an implementation worth a look at: http://sourceforge.net/projects

converting PCM-16 to AMR using AmrInputStream

白昼怎懂夜的黑 提交于 2019-12-10 17:35:10
问题 I'm doing a conversion from PCM-16 to AMR using AmrInputStream. The details for the AmrInputStream can be found here http://hi-android.info/src/android/media/AmrInputStream.java.html I'm quite new to programming to while it talks about using JNI and stuff, I have no idea what JNI is and I don't think it is required for this discussion. The AmrInputStream above is also apparently not found in the SDK nor the NDK, but I have been able to use it. I've been searching around the internet for how

Detect supported audio encoders on Android to prevent crash “The given audio encoder 2 is not found”

孤街醉人 提交于 2019-12-10 17:19:38
问题 When an Android device does not support a mandatory audio-encoder, you get: (X=numeric index of the encoder) E/MediaProfiles(4048): The given audio encoder X is not found A/AudioSource(4048): frameworks/base/media/libstagefright/AudioSource.cpp:58 CHECK(channels == 1 || channels == 2) failed. A/libc(4048): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1) In native code. No Exception to react to. App is just force closed. Is there any way to query an Android >3.x device if AAC AMR-NB and AMR

Linux编译ffmpeg并转换MP3到AMR

雨燕双飞 提交于 2019-12-06 15:27:37
AMR格式是智能手机上的常用音频文件格式,比如MP3格式的压缩比大,但是文件比MP3小,所以在移动互联项目中应用比较广泛。去年年底协助联想研究院开发一款预装产品过程中需要使用到MP3格式和AMR格式的互相转换,服务器环境为CentOS 6.0,过程如下。 1. 首先安装系统基础环境 RHEL & CentOS 系列:yum install -y automake autoconf libtool gcc gcc-c++ Debian & Ubuntu 系列:apt-get install automake autoconf libtool gcc gcc-c++ 2. 下载最新的FFMpeg源码包 FFMpeg官方下载地址: http://ffmpeg.org/download.html 。 一般直接使用最新版本,下载完成后解压缩,进入源码文件夹,运行“./configure --help”查看帮助,这里主要是为了确认需要安装的扩展,有些扩展默认是已经开启的,有些是需要单独下载扩展源码包进行编译的。以我的需求为例,需要单独编译yasm、lame、OenCore AMR、AmrNB和AmrWB,其中lame是MP3解码器。 3. 编译所需源码包 从各个官方地址下载上述五种源码包,为了保证兼容最新版本的ffmpeg,请务必也下载最新版本的源码: yasm : http://yasm

Converting 3gp (amr) to mp3 using ffmpeg api calls

怎甘沉沦 提交于 2019-12-06 06:57:13
问题 Converting 3gp (amr) to mp3 using ffmpeg api calls I try to use libavformat (ffmpeg) to build my own function that converts 3gp audio files (recorded with an android mobile device) into mp3 files. I use av_read_frame() to read a frame from the input file and use avcodec_decode_audio3() to decode the data into a buffer and use this buffer to encode the data into mp3 with avcodec_encode_audio. This seems to give me a correct result for converting wav to mp3 and mp3 to wav (Or decode one mp3 and