我知道这里有一些与此相关的其他问题,但提供的答案似乎不起作用。
我正在尝试使用avconv将webm转换为mp3。以下是我的尝试方法:
我正在尝试使用avconv将webm转换为mp3。以下是我的尝试方法:
$ ls
test.webm
$ avconv -acodec libmp3lame -i test.webm test.mp3
avconv version 9.18-6:9.18-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav developers
built on Mar 16 2015 13:19:10 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
test.webm: End of file
$ ls -l
total 4
-rw-rw-r-- 1 user user 439 Apr 28 09:16 test.webm
如你所见,我似乎没有出现错误,但我的文件并未创建。请注意,我确实安装了 ubuntu-restricted-extras
。
编辑:
$ avprobe test.webm
avprobe version 9.18-6:9.18-0ubuntu0.14.04.1, Copyright (c) 2007-2014 the Libav developers
built on Mar 16 2015 13:19:10 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
test.webm: End of file
# avprobe output
$ avprobe -encoders|grep mp3
avprobe version 9.18-6:9.18-0ubuntu0.14.04.1, Copyright (c) 2007-2014 the Libav developers
built on Mar 16 2015 13:19:10 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
A... libmp3lame libmp3lame MP3 (MPEG audio layer 3) (codec mp3)
mp3
文件。 - Juicyavprobe test.webm
和avprobe -encoders|grep mp3
的输出结果。 - EdiDavprobe
的输出编辑了我的问题。这真奇怪 :-/ - Juicyavconv
将webm转换为mp3在14.04上。如果还是不行,你可以从以下网址下载和编译最新的ffmpeg
版本:https://ffmpeg.org/download.html - EdiDavconv
替换为ffmpeg
。 - Rudy Vissers