ffmpeg FLAC 24 bit 96khz to 16 bit 48khz

余生长醉 提交于 2019-11-27 18:54:41

问题


Trying to figure out ffmpeg, currently working on getting 24bit/96khz FLAC files into 16bit/48khz.


回答1:


ffmpeg -i input.flac -sample_fmt s16 -ar 48000 output.flac

  • List sample formats: ffmpeg -sample_fmts
  • List additional flac options: ffmpeg -h encoder=flac
  • See FFmpeg Resampler Documentation for additional resampling options including available dithering methods.



回答2:


As a bash script, that produces new files with -16 appended to their names; one could rename then delete the original files easily in the script but I'm a little too paranoid for that.

#!/bin/sh
# requires: ffmpeg
for f in *.flac;
do
echo "Processing $f"
ffmpeg -i "$f" -sample_fmt s16 -ar 48000 "${f%.flac}-16.flac"
done


来源:https://stackoverflow.com/questions/41420391/ffmpeg-flac-24-bit-96khz-to-16-bit-48khz

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!