2013-02-20 102 views
5

我在越南并试图学习越南语。在Linux中的aac-eld解码

困难的是学习发音,我做了一个Android应用程序来录制声音。越南人非常好,我收集了超过500个声音文件。

现在我正在试着做一个语言学习应用程序。为此,我尝试减少噪音并使音量正常化。

我选择了以下设置:

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

(科尔多瓦AudioPlayer.java - 默认设置是废话)

现在我有一个问题。我无法用Audacity或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 

我该怎么办?

+0

这里的示例音效档:http://datenkueche.com/viet/sounds/audio.mp4 – bernard 2013-02-20 17:59:13

+0

我能够从大胆回放audio.mp4 - 结帐mediainfo探测文件并显示格式相关信息 – 2013-02-20 20:19:12

+0

你在Linux上使用audacity吗? 的MediaInfo示出: 格式:ER AAC ELD 格式/信息:高级音频编解码 编解码器ID:40 位速率方式:恒 比特率:96.0 Kbps的 信道(S):1点通道 频道的位置:正面:C 采样率:44.1 KHz 压缩模式:有损 码流大小:29.4 KiB(91%) – bernard 2013-02-21 02:39:37

回答

0

使用SOX音频工具包来设置BitRate和SamplingRate。

Sox可以直接在你的shell中使用。

请在下面使用以查看转换的语法和选项。

# man sox 

例如更改采样率

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

我没有问题打开mp3,mp4,aac文件。 问题在于现在。 – bernard 2013-03-12 07:10:37