How to record ".amr" audio?

cancel
Showing results for 
Search instead for 
Did you mean: 

How to record ".amr" audio?

479 Views
lqw39
Contributor III

Hi,

I found no amr muxer in FSL OpenMAX implement on android 4.2.2; and no related lib file in /device/fsl_proprietary/codes/lib/.

Mp4 muxer is still used although I have specified the output format (AMR_NB or AMR_WB).

How to record ".amr" audio?

Thanks.

Qingwei

Labels (3)
Tags (3)
0 Kudos
2 Replies

180 Views
igorpadykov
NXP TechSupport
NXP TechSupport
0 Kudos

180 Views
lqw39
Contributor III

FSL OpenMAXIL does not implement amr muxer, so cannot create correct AMR file although OutputFormat.AMR_NB is set in MediaRecorder API.

In function GMRecorder::LoadMuxerComponent(), file: external/fsl_imx_omx/OpenMAXIL/src/client/GMRecorder.cpp,

gm_of (OutputFormat) is hard coded as default (muxer.mp4), so the record file content is always mp4.

However, the AMR file header should be "#!AMR\n" or "#!AMR-WB\n".

Thanks,

Qingwei

0 Kudos