如何使ffmpeg写入16位ALAC?


0

MacOS Sierra,ffmpeg 3.0.2版。

尝试以ALAC编码更改文件的音量(Apple Lossless 16 bit):

ffmpeg -i input.m4a -af“volume = 0.5”-acodec alac output.m4a

我遵循Wiki https://trac.ffmpeg.org/wiki/How%20to%20change%20audio%20volume%20up-down%20with%20FFmpeg中给出的建议,我已经指定了“-acodec alac”,因为扩展名“m4a” - 默认情况下 - 与AAC相关,而不是ALAC。

问题:ffmpeg会写一个24位的ALAC文件,而不是通常的16位ALAC。

问题:如何使ffmpeg写入16位ALAC?

Answers:


0

使用

ffmpeg -i input.m4a -af "volume=0.5" -acodec alac -sample_fmt s16p output.m4a
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.