convert-directory-to-ogv 216 B

1234567891011
  1. #!/bin/zsh -f
  2. for VIDEO in *.mp4 ;
  3. do
  4. NEW=`basename -- "${VIDEO}" .mp4`.ogv
  5. if [[ -e "${NEW}" ]] ; then
  6. echo "Skipping ${NEW}, already converted."
  7. else
  8. ffmpeg -i "${VIDEO}" "${NEW}"
  9. fi
  10. done