ffmpeg FLAC 24 bit 96khz to 16 bit 48khz

后端 未结 2 1462
轻奢々
轻奢々 2021-02-04 11:37

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

2条回答
  •  Happy的楠姐
    2021-02-04 12:34

    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
    

提交回复
热议问题