转换的音频文件,使用MP3的ffmpeg [英] Convert audio files to mp3 using ffmpeg
本文介绍了转换的音频文件,使用MP3的ffmpeg的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要使用ffmpeg的音频文件转换成MP3。
I need to convert audio files to mp3 using ffmpeg.
在我写的命令,如的ffmpeg -i audio.ogg -a codeC MP3 newfile.mp3
,我得到的错误:
When i write the command as ffmpeg -i audio.ogg -acodec mp3 newfile.mp3
, I get the error:
FFmpeg version 0.5.2, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration:
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 1 / 52.20. 1
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
built on Jun 24 2010 14:56:20, gcc: 4.4.1
Input #0, mp3, from 'ZHRE.mp3':
Duration: 00:04:12.52, start: 0.000000, bitrate: 208 kb/s
Stream #0.0: Audio: mp3, 44100 Hz, stereo, s16, 256 kb/s
Output #0, mp3, to 'audio.mp3':
Stream #0.0: Audio: 0x0000, 44100 Hz, stereo, s16, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Unsupported codec for output stream #0.0
我也跑这个命令:
I also ran this command :
ffmpeg -formats | grep mp3
和响应得到这个:
FFmpeg version 0.5.2, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration:
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 1 / 52.20. 1
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
built on Jun 24 2010 14:56:20, gcc: 4.4.1
DE mp3 MPEG audio layer 3
D A mp3 MP3 (MPEG audio layer 3)
D A mp3adu ADU (Application Data Unit) MP3 (MPEG audio layer 3)
D A mp3on4 MP3onMP4
text2movsub remove_extra noise mov2textsub mp3decomp mp3comp mjpegadump imxdump h264_mp4toannexb dump_extra
我想这安装了MP3 codeC心不是。我说得对吗?有人可以帮助我在这里?
I guess that the mp3 codec isnt installed. Am I right here ? Can anyone help me out here ?
推荐答案
没关系,
我转换我的音频文件,MP2使用命令:
I am converting my audio files to mp2 by using the command:
ffmpeg -i input.wav -f mp2 output.mp3
此命令完美的作品。
我知道,这实际上转换文件格式,MP2,但生成的文件大小是一样的。
I know that this actually converts the files to mp2 format, but then the resulting file sizes are the same..
这篇关于转换的音频文件,使用MP3的ffmpeg的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文