【问题标题】:FFMPEG amr to mp3 conversion problemFFMPEG amr 到 mp3 的转换问题
【发布时间】:2011-02-05 00:34:44
【问题描述】:

大家好,我在将 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:处理输入时发现无效数据

考虑到我之前记录了另一个文件并且转换工作如您在此处看到的那样,这实际上很奇怪:

octavius@octavius-VirtualBox:~/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%

你知道会发生什么吗?

【问题讨论】:

  • 抱歉,没听说过这个网站,谢谢推荐我

标签: ubuntu ffmpeg mp3 amr


【解决方案1】:

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

【讨论】:

  • 它已损坏,不是文件本身的问题,而是客户端程序没有正确录制并制作了具有适当长度的空白文件
猜你喜欢
  • 2012-03-12
  • 2018-01-21
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-06-28
  • 2014-08-13
  • 2011-08-30
相关资源
最近更新 更多