2
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【ffmpeg】シェルスクリプトで一括変換

Posted at

一括でファイルをmp4からwav変換にできないのものか?

できました。
ShellScript万歳!

ffmpeg_all_change
for FILE in *.mp4
do
    FILENAME=`echo ${FILE} | sed 's/\.[^\.]*$//'`
    ffmpeg -i ${FILENAME}.mp4 -map 0:1 ${FILENAME}.wav
done

というファイルを用意した後

chmod 755 ffmpeg_all_change.sh
で実行権限を与えてあげて

./ffmpeg_all_change.sh
を実行してあげれば、一括で変換できます。

よかったよかった。

2
5
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
2
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?