试图找出 ffmpeg,目前正在将 24bit/96khz FLAC 文件转换为 16bit/48khz。
最佳答案
基本示例
ffmpeg -i input.flac -sample_fmt s16 -ar 48000 output.flac
ffmpeg -sample_fmts
ffmpeg -h encoder=flac
aresample过滤器示例
ffmpeg -i input.flac -af aresample=out_sample_fmt=s16:out_sample_rate=48000 output.flac
任一示例都将产生相同的输出:您可以使用 hash muxer 进行验证.
更改抖动方法
见
-dither_method
option有关可用抖动方法和其他重采样选项的列表。例子:ffmpeg -i input.flac -dither_method triangular_hp -sample_fmt s16 -ar 48000 output.flac
SoX 重采样器
FFmpeg 支持两个重采样器:默认的 swresample 库和外部的 SoX resampler (索克斯)。
使用 soxr 你的
ffmpeg
必须用 --enable-libsoxr
编译.然后用 -resampler
选择它选项:ffmpeg -i input.flac -resampler soxr -sample_fmt s16 -ar 48000 output.flac
或使用 aresample过滤完成所有操作:
ffmpeg -i input.flac -af aresample=resampler=soxr:out_sample_fmt=s16:out_sample_rate=48000 output.flac
更多信息
关于audio - ffmpeg FLAC 24 位 96khz 到 16 位 48khz,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41420391/