问题
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