We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ffmpeg 在window下将MP3转换为wav文件 1)ffmpeg -i input.mp3 output.wav 例如:ffmpeg -i F:\test.mp3 F:\test.wav 2)ffmpeg -i INPUT -ac CHANNELS -ar FREQUENCY -acodec PCMFORMAT OUTPUT INPUT : mp3文件 CHANNELS :值得选项为1和2 PCMFORMAT :值得选项为pcm_u8,pcm_s16le ,pcm_s16be,pcm_u16le,pcm_u16be FREQUENCY :8000,11025 ,22050,44100 例如:ffmpeg -i F:\test\dizi.mp3 -ar 44100 -ac 1 -acodec pcm_u8 F:\test\dizi.wav 输出44100采样率,1个声道,8bits的wav文件 3)批处理mp3文件到wav转化 for %i in (F:/*.mp3) do ffmpeg -i "%i" -acodec pcm_s16le -ac 1 -ar 44100 "%i~nf.wav" (F:/*.mp3):存放mp3文件的目录 "%i" :加引号是因为MP3文件名为中文格式 pcm_s16le :16bit大小的wav 1 :单声道 44100 :采样率 "%i~nf.wav" :输出的wav文件 实现的功能:把F目录下所有mp3格式的音频文件转成44100 16bit 单声道的wav文件
ffmpeg 在window下将MP3转换为wav文件
1)ffmpeg -i input.mp3 output.wav
例如:ffmpeg -i F:\test.mp3 F:\test.wav
2)ffmpeg -i INPUT -ac CHANNELS -ar FREQUENCY -acodec PCMFORMAT OUTPUT
INPUT : mp3文件
CHANNELS :值得选项为1和2
PCMFORMAT :值得选项为pcm_u8,pcm_s16le ,pcm_s16be,pcm_u16le,pcm_u16be
FREQUENCY :8000,11025 ,22050,44100
例如:ffmpeg -i F:\test\dizi.mp3 -ar 44100 -ac 1 -acodec pcm_u8 F:\test\dizi.wav
输出44100采样率,1个声道,8bits的wav文件
3)批处理mp3文件到wav转化
for %i in (F:/*.mp3) do ffmpeg -i "%i" -acodec pcm_s16le -ac 1 -ar 44100 "%i~nf.wav"
(F:/*.mp3):存放mp3文件的目录
"%i" :加引号是因为MP3文件名为中文格式
pcm_s16le :16bit大小的wav
1 :单声道
44100 :采样率
"%i~nf.wav" :输出的wav文件
实现的功能:把F目录下所有mp3格式的音频文件转成44100 16bit 单声道的wav文件
https://blog.csdn.net/Jum_Summer/article/details/81148948
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://blog.csdn.net/Jum_Summer/article/details/81148948
The text was updated successfully, but these errors were encountered: