for f in *.spc; do set -x; ffmpeg -hide_banner -loglevel error -y -i "$f" -t "$(espctag -gnL "$f")" "${f%.spc}.wav"; set +x; done
整形後 / formatted
for f in *.spc; do # *.spc ファイル全てに対してループ / Loop for all * .spc files
set -x # デバッグ用(無くても良い) / debugging (not required)
ffmpeg \
-hide_banner \
-loglevel error \
-y \
-i "$f" \
-t "$(espctag -gnL "$f")" \
"${f%.spc}.wav"
set +x # デバッグ用(無くても良い) / debugging (not required)
done
spcファイルの冒頭6秒のみmp3に変換、最後の1秒はフェードアウト(exponentialカーブ)、2並列で処理
command ls *.spc | sed 's/....$//' | xargs -P2 -tI@ ffmpeg -hide_banner -y -t 6 -i @.spc @.wav
command ls *.wav | sed 's/....$//' | xargs -P2 -tI@ ffmpeg -hide_banner -y -i @.wav -af 'afade=t=out:st=5:d=1:curve=exp' @.mp3
rm *.wav