2011-02-04 115 views
0

嘿,我有以下问题将amr文件转换为mp3文件。当我尝试做converstion我得到如下:FFMPEG amr到mp3转换问题

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 --enable-libxvid --enable-x11grab 
    libavutil  50.36. 0/50.36. 0 
    libavcore  0.16. 1/0.16. 1 
    libavcodec 52.108. 0/52.108. 0 
    libavformat 52.93. 0/52.93. 0 
    libavdevice 52. 2. 3/52. 2. 3 
    libavfilter 1.74. 0/1.74. 0 
    libswscale  0.12. 0/0.12. 0 
    libpostproc 51. 2. 0/51. 2. 0 

Test.amr:发现无效的数据处理输入

当它实际上是奇怪的考虑我还有一个文件先前记录和转换工作,你可以看到这里:

[email protected]:~/share$ ffmpeg -i 1-aloalodwd.amr 1-aloalodwd.mp3 
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 --enable-libxvid --enable-x11grab 
    libavutil  50.36. 0/50.36. 0 
    libavcore  0.16. 1/0.16. 1 
    libavcodec 52.108. 0/52.108. 0 
    libavformat 52.93. 0/52.93. 0 
    libavdevice 52. 2. 3/52. 2. 3 
    libavfilter 1.74. 0/1.74. 0 
    libswscale  0.12. 0/0.12. 0 
    libpostproc 51. 2. 0/51. 2. 0 
[amr @ 0x9c0c4e0] Estimating duration from bitrate, this may be inaccurate 
Input #0, amr, from '1-aloalodwd.amr': 
    Duration: N/A, bitrate: N/A 
    Stream #0.0: Audio: amrnb, 8000 Hz, 1 channels, flt 
Output #0, mp3, to '1-aloalodwd.mp3': 
    Metadata: 
    TSSE   : Lavf52.93.0 
    Stream #0.0: Audio: libmp3lame, 8000 Hz, 1 channels, s16, 64 kb/s 
Stream mapping: 
    Stream #0.0 -> #0.0 
Press [q] to stop encoding 
size=  26kB time=3.38 bitrate= 64.1kbits/s  
video:0kB audio:26kB global headers:0kB muxing overhead 0.121897% 

任何想法可能会发生什么?

+0

属于http://superuser.com – 2011-02-04 14:44:04

+0

抱歉,从来没有听说过该网站,thx转介我 – 8vius 2011-02-07 13:51:18

回答

0

您的测试文件可能已损坏,或者只包含ffmpeg的解码器无法处理的内容。尝试在播放器上播放test.amr以查看该文件是否被破坏。如果问题出现在ffmpeg中,你可以尝试更新到最新版本,看看他们是否修复了它,你可以从http://www.ffmpeg.org/download.html下载源代码(你必须编译它)。