0

我想通过 ffmpeg 将我的 wma 文件转换为 mp3。为什么这个错误来了我该怎么办?我已经安装libmp3lame了。

当我尝试通过以下命令进行转换时出现错误:

/var/www/yapi$ sudo /usr/local/bin/ffmpeg -i uploads/4e02dc4f197c1.wma uploads/4e02dc4f1b212.mp3
ffmpeg version N-30971-g4b87a08, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jun 23 2011 10:08:49 with gcc 4.4.5
  configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-x11grab
  libavutil    51.  9. 1 / 51.  9. 1
  libavcodec   53.  7. 0 / 53.  7. 0
  libavformat  53.  4. 0 / 53.  4. 0
  libavdevice  53.  1. 1 / 53.  1. 1
  libavfilter   2. 23. 0 /  2. 23. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0
Input #0, asf, from 'uploads/4e02dc4f197c1.wma':
  Metadata:
    title           : "Highway Blues"
    artist          : Marc Seales, composer. New Stories. Ernie Watts, saxophone.
    genre           : Jazz
    album           : Speakin' Out
    track           : 1
    WM/Year         : 1999
    WMFSDKVersion   : 8.00.00.4389
    WMFSDKNeeded    : 0.0.0.0000
  Duration: 00:01:33.71, start: 0.000000, bitrate: 64 kb/s
    Stream #0.0: Audio: wmav2, 44100 Hz, 2 channels, s16, 64 kb/s
File 'uploads/4e02dc4f1b212.mp3' already exists. Overwrite ? [y/N] y

Output #0, mp3, to 'uploads/4e02dc4f1b212.mp3':
    Stream #0.0: Audio: [0][0][0][0] / 0x0000, 44100 Hz, 2 channels, s16, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
Encoder (codec id 86017) not found for output stream #0.0

为什么它不工作?

4

1 回答 1

1

您可能已经安装了 libmp3lame,但根据

configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-x11grab

ffmpeg 不是针对它构建的。重新配置并 -build ffmpeg,确保它知道在哪里可以找到 libmp3lame。

于 2011-11-08T04:41:19.017 回答