Linux aac-eld decoding

I was in Vietnam and tried to study Vietnamese.

It's hard to learn pronunciation, and I made an Android app for recording voices. The Vietnamese people are very nice, and I have collected more than 500 sound files.

Now I am trying to make a language learning application. To do this, I try to reduce noise and normalize volume.

I selected the following settings:

this.recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
this.recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC_ELD);
this.recorder.setAudioEncodingBitRate(96000);
this.recorder.setAudioSamplingRate(44100);

(cordova AudioPlayer.java - default settings - shit)

Now I have a problem. I can not open files with Audacity or FFmpeg.

./ffmpeg -i /tmp/speaker__ualp__x%E1%BA%A5u.mp4 /tmp/uu.wav
ffmpeg version 1.1.2 Copyright (c) 2000-2013 the FFmpeg developers
  built on Feb 20 2013 10:50:54 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  configuration: --enable-libfdk-aac
  libavutil      52. 13.100 / 52. 13.100
  libavcodec     54. 86.100 / 54. 86.100
  libavformat    54. 59.106 / 54. 59.106
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 32.100 /  3. 32.100
  libswscale      2.  1.103 /  2.  1.103
  libswresample   0. 17.102 /  0. 17.102
[aac @ 0xaada980] Audio object type 39 is not supported.
    Last message repeated 1 times
Guessed Channel Layout for  Input Stream #0.0 : mono
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/speaker__ualp__x%E1%BA%A5u.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 0
    compatible_brands: isom3gp4
    creation_time   : 2013-01-29 15:53:11
  Duration: 00:00:01.21, start: 0.000000, bitrate: 116 kb/s
    Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 96 kb/s
    Metadata:
      creation_time   : 2013-01-29 15:53:11
      handler_name    : SoundHandle
[aac @ 0xaada980] Audio object type 39 is not supported.
Output #0, wav, to '/tmp/uu.wav':
  Metadata:
    major_brand     : isom
    minor_version   : 0
    compatible_brands: isom3gp4
    Stream #0:0(eng): Audio: pcm_s16le, 44100 Hz, mono, s16, 705 kb/s
    Metadata:
      creation_time   : 2013-01-29 15:53:11
      handler_name    : SoundHandle
Stream mapping:
  Stream #0:0 -> #0:0 (aac -> pcm_s16le)
Error while opening decoder for input stream #0:0

What can I do?

+5
source share
1 answer

Use the SOX audio toolkit to set BitRate and SamplingRate.

Sox can be used directly from your shell.

, .

# man sox 

# sox input.mp3 -r 8000 output.wav
0

All Articles