LoginSignup
28
29

More than 5 years have passed since last update.

ffmpegで動画から音声やサムネイルを取得

Last updated at Posted at 2014-01-14
音声を抽出
for VIDEO in $(ls *.mp4 | sed 's/.mp4//')
do
    ffmpeg -i ${VIDEO}.mp4 -acodec copy ${VIDEO}.aac
done
6秒の位置で320x240のサムネイルを取得
ffmpeg -i ${VIDEO}.mp4 -ss 6 -vframes 1 -f image2 -s 320x240 ${VIDEO}.jpg
28
29
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
28
29