adamsgaard.dk

my academic webpage
git clone git://src.adamsgaard.dk/adamsgaard.dk # fast
git clone https://src.adamsgaard.dk/adamsgaard.dk.git # slow
Log | Files | Refs | README | LICENSE Back to index

convert_all_mp4.sh (217B)


      1 #!/bin/sh
      2 for f in *.mp4; do
      3 	ffmpeg -n -i "$f" -vframes 1 -f image2 "${f%.mp4}.jpg"
      4 	ffmpeg -n -i "$f" "${f%.mp4}.webm"
      5 	ffmpeg -n -i "$f" "${f%.mp4}.ogv"
      6 done
      7 
      8 for f in *.jpg; do
      9 	convert "$f" -resize 300 "$f"
     10 done