📜  ffmpeg 转换为 wav - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:50.910000             🧑  作者: Mango

代码示例4
# ffmpeg will not change sample rate unless you tell it to 
# (or the output codec does not support it, but then it will most probably fail). 
# So this should be enough:

ffmpeg -i input.flac output.wav

# ffmepg will however not preserve bit depth and default to 16-bit encoding, 
# so if your input is 24 bit, you have to use:

ffmpeg -i input.flac -c:a pcm_s24le output.wav