LoginSignup
1
1

More than 5 years have passed since last update.

forコマンド

Posted at

あるフォルダ中のwavファイルをffmpegで変換したいと思った。しかし一個一個コマンドを打つのは面倒だ。
そのようなときforコマンドを使うと便利だ。

for %v in (*.wav) do ffmpeg -i %v -acodec pcm_u8 -ar 8000 .\out\%v

上のコマンドラインはあるフォルダのwavファイル名を1つずつ%vにセットし、do以下のコマンドを呼び出す。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1