Skip to content
New issue

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

Batch convert MP3 to wav in ffmpeg window #44

Open
Wenfengcheng opened this issue May 14, 2019 · 0 comments
Open

Batch convert MP3 to wav in ffmpeg window #44

Wenfengcheng opened this issue May 14, 2019 · 0 comments

Comments

@Wenfengcheng
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant